nsICategoryManager.h
上传用户:goldcmy89
上传日期:2017-12-03
资源大小:2246k
文件大小:8k
源码类别:
PlugIns编程
开发平台:
Visual C++
- /*
- * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/xpcom/components/nsICategoryManager.idl
- */
- #ifndef __gen_nsICategoryManager_h__
- #define __gen_nsICategoryManager_h__
- #ifndef __gen_nsISupports_h__
- #include "nsISupports.h"
- #endif
- #ifndef __gen_nsISimpleEnumerator_h__
- #include "nsISimpleEnumerator.h"
- #endif
- /* For IDL files that don't want to include root IDL files. */
- #ifndef NS_NO_VTABLE
- #define NS_NO_VTABLE
- #endif
- /* starting interface: nsICategoryManager */
- #define NS_ICATEGORYMANAGER_IID_STR "3275b2cd-af6d-429a-80d7-f0c5120342ac"
- #define NS_ICATEGORYMANAGER_IID
- {0x3275b2cd, 0xaf6d, 0x429a,
- { 0x80, 0xd7, 0xf0, 0xc5, 0x12, 0x03, 0x42, 0xac }}
- class NS_NO_VTABLE nsICategoryManager : public nsISupports {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICATEGORYMANAGER_IID)
- /**
- * Get the value for the given category's entry.
- * @param aCategory The name of the category ("protocol")
- * @param aEntry The entry you're looking for ("http")
- * @return The value.
- */
- /* string getCategoryEntry (in string aCategory, in string aEntry); */
- NS_IMETHOD GetCategoryEntry(const char *aCategory, const char *aEntry, char **_retval) = 0;
- /**
- * Add an entry to a category.
- * @param aCategory The name of the category ("protocol")
- * @param aEntry The entry to be added ("http")
- * @param aValue The value for the entry ("moz.httprulez.1")
- * @param aPersist Should this data persist between invocations?
- * @param aReplace Should we replace an existing entry?
- * @return Previous entry, if any
- */
- /* string addCategoryEntry (in string aCategory, in string aEntry, in string aValue, in boolean aPersist, in boolean aReplace); */
- NS_IMETHOD AddCategoryEntry(const char *aCategory, const char *aEntry, const char *aValue, PRBool aPersist, PRBool aReplace, char **_retval) = 0;
- /**
- * Delete an entry from the category.
- * @param aCategory The name of the category ("protocol")
- * @param aEntry The entry to be added ("http")
- * @param aPersist Delete persistent data from registry, if present?
- */
- /* void deleteCategoryEntry (in string aCategory, in string aEntry, in boolean aPersist); */
- NS_IMETHOD DeleteCategoryEntry(const char *aCategory, const char *aEntry, PRBool aPersist) = 0;
- /**
- * Delete a category and all entries.
- * @param aCategory The category to be deleted.
- */
- /* void deleteCategory (in string aCategory); */
- NS_IMETHOD DeleteCategory(const char *aCategory) = 0;
- /**
- * Enumerate the entries in a category.
- * @param aCategory The category to be enumerated.
- * @return a simple enumerator, each result QIs to
- * nsISupportsCString.
- */
- /* nsISimpleEnumerator enumerateCategory (in string aCategory); */
- NS_IMETHOD EnumerateCategory(const char *aCategory, nsISimpleEnumerator **_retval) = 0;
- /**
- * Enumerate all existing categories
- * @param aCategory The category to be enumerated.
- * @return a simple enumerator, each result QIs to
- * nsISupportsCString.
- */
- /* nsISimpleEnumerator enumerateCategories (); */
- NS_IMETHOD EnumerateCategories(nsISimpleEnumerator **_retval) = 0;
- };
- /* Use this macro when declaring classes that implement this interface. */
- #define NS_DECL_NSICATEGORYMANAGER
- NS_IMETHOD GetCategoryEntry(const char *aCategory, const char *aEntry, char **_retval);
- NS_IMETHOD AddCategoryEntry(const char *aCategory, const char *aEntry, const char *aValue, PRBool aPersist, PRBool aReplace, char **_retval);
- NS_IMETHOD DeleteCategoryEntry(const char *aCategory, const char *aEntry, PRBool aPersist);
- NS_IMETHOD DeleteCategory(const char *aCategory);
- NS_IMETHOD EnumerateCategory(const char *aCategory, nsISimpleEnumerator **_retval);
- NS_IMETHOD EnumerateCategories(nsISimpleEnumerator **_retval);
- /* Use this macro to declare functions that forward the behavior of this interface to another object. */
- #define NS_FORWARD_NSICATEGORYMANAGER(_to)
- NS_IMETHOD GetCategoryEntry(const char *aCategory, const char *aEntry, char **_retval) { return _to GetCategoryEntry(aCategory, aEntry, _retval); }
- NS_IMETHOD AddCategoryEntry(const char *aCategory, const char *aEntry, const char *aValue, PRBool aPersist, PRBool aReplace, char **_retval) { return _to AddCategoryEntry(aCategory, aEntry, aValue, aPersist, aReplace, _retval); }
- NS_IMETHOD DeleteCategoryEntry(const char *aCategory, const char *aEntry, PRBool aPersist) { return _to DeleteCategoryEntry(aCategory, aEntry, aPersist); }
- NS_IMETHOD DeleteCategory(const char *aCategory) { return _to DeleteCategory(aCategory); }
- NS_IMETHOD EnumerateCategory(const char *aCategory, nsISimpleEnumerator **_retval) { return _to EnumerateCategory(aCategory, _retval); }
- NS_IMETHOD EnumerateCategories(nsISimpleEnumerator **_retval) { return _to EnumerateCategories(_retval); }
- /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
- #define NS_FORWARD_SAFE_NSICATEGORYMANAGER(_to)
- NS_IMETHOD GetCategoryEntry(const char *aCategory, const char *aEntry, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCategoryEntry(aCategory, aEntry, _retval); }
- NS_IMETHOD AddCategoryEntry(const char *aCategory, const char *aEntry, const char *aValue, PRBool aPersist, PRBool aReplace, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCategoryEntry(aCategory, aEntry, aValue, aPersist, aReplace, _retval); }
- NS_IMETHOD DeleteCategoryEntry(const char *aCategory, const char *aEntry, PRBool aPersist) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCategoryEntry(aCategory, aEntry, aPersist); }
- NS_IMETHOD DeleteCategory(const char *aCategory) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCategory(aCategory); }
- NS_IMETHOD EnumerateCategory(const char *aCategory, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateCategory(aCategory, _retval); }
- NS_IMETHOD EnumerateCategories(nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateCategories(_retval); }
- #if 0
- /* Use the code below as a template for the implementation class for this interface. */
- /* Header file */
- class nsCategoryManager : public nsICategoryManager
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSICATEGORYMANAGER
- nsCategoryManager();
- private:
- ~nsCategoryManager();
- protected:
- /* additional members */
- };
- /* Implementation file */
- NS_IMPL_ISUPPORTS1(nsCategoryManager, nsICategoryManager)
- nsCategoryManager::nsCategoryManager()
- {
- /* member initializers and constructor code */
- }
- nsCategoryManager::~nsCategoryManager()
- {
- /* destructor code */
- }
- /* string getCategoryEntry (in string aCategory, in string aEntry); */
- NS_IMETHODIMP nsCategoryManager::GetCategoryEntry(const char *aCategory, const char *aEntry, char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* string addCategoryEntry (in string aCategory, in string aEntry, in string aValue, in boolean aPersist, in boolean aReplace); */
- NS_IMETHODIMP nsCategoryManager::AddCategoryEntry(const char *aCategory, const char *aEntry, const char *aValue, PRBool aPersist, PRBool aReplace, char **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* void deleteCategoryEntry (in string aCategory, in string aEntry, in boolean aPersist); */
- NS_IMETHODIMP nsCategoryManager::DeleteCategoryEntry(const char *aCategory, const char *aEntry, PRBool aPersist)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* void deleteCategory (in string aCategory); */
- NS_IMETHODIMP nsCategoryManager::DeleteCategory(const char *aCategory)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* nsISimpleEnumerator enumerateCategory (in string aCategory); */
- NS_IMETHODIMP nsCategoryManager::EnumerateCategory(const char *aCategory, nsISimpleEnumerator **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* nsISimpleEnumerator enumerateCategories (); */
- NS_IMETHODIMP nsCategoryManager::EnumerateCategories(nsISimpleEnumerator **_retval)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- /* End of implementation class template. */
- #endif
- #endif /* __gen_nsICategoryManager_h__ */