WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsICategoryManager

IID:3275b2cd-af6d-429a-80d7-f0c5120342ac
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

char* addCategoryEntry ( char* category , char* entry , char* value , PRBool persist , PRBool replace ) void deleteCategory ( char* category ) void deleteCategoryEntry ( char* category , char* entry , PRBool persist ) nsISimpleEnumerator enumerateCategories ( ) nsISimpleEnumerator enumerateCategory ( char* category ) char* getCategoryEntry ( char* category , char* entry )

char* addCategoryEntry ( char* category , char* entry , char* value , PRBool persist , PRBool replace )

Add an entry to a category.

Arguments:
category: The name of the category ("protocol")
entry: The entry to be added ("http")
value: The value for the entry ("moz.httprulez.1")
persist: Should this data persist between invocations?
replace: Should we replace an existing entry?
Returns:
Previous entry, if any

void deleteCategory ( char* category )

Delete a category and all entries.

Arguments:
category: The category to be deleted.

void deleteCategoryEntry ( char* category , char* entry , PRBool persist )

Delete an entry from the category.

Arguments:
category: The name of the category ("protocol")
entry: The entry to be added ("http")
persist: Delete persistent data from registry, if present?

nsISimpleEnumerator enumerateCategories ( )

Enumerate all existing categories

Returns:
nsISupportsCString.

nsISimpleEnumerator enumerateCategory ( char* category )

Enumerate the entries in a category.

Arguments:
category: The category to be enumerated.
Returns:
nsISupportsCString.

char* getCategoryEntry ( char* category , char* entry )

Get the value for the given category's entry.

Arguments:
category: The name of the category ("protocol")
entry: The entry you're looking for ("http")
Returns:
The value.

Reference documentation is generated from Mozilla's source.