nsICategoryManager
Methods
getCategoryEntry(aCategory, aEntry)
Get the value for the given category’s entry.
Parameters
aCategory |
The name of the category ("protocol")
|
aEntry |
The entry you're looking for ("http")
|
Returns
addCategoryEntry(aCategory, aEntry, aValue, aPersist, aReplace)
Add an entry to a category.
Parameters
aCategory |
The name of the category ("protocol")
|
aEntry |
The entry to be added ("http")
|
aValue |
The value for the entry ("moz.httprulez.1")
|
aPersist |
Should this data persist between invocations?
|
aReplace |
Should we replace an existing entry?
|
Returns
deleteCategoryEntry(aCategory, aEntry, aPersist)
Delete an entry from the category.
Parameters
aCategory |
The name of the category ("protocol")
|
aEntry |
The entry to be added ("http")
|
aPersist |
Delete persistent data from registry, if present?
|
deleteCategory(aCategory)
Delete a category and all entries.
Parameters
aCategory |
The category to be deleted.
|
enumerateCategory(aCategory)
Enumerate the entries in a category.
Parameters
aCategory |
The category to be enumerated.
|
Returns
a simple enumerator, each result QIs to
nsISupportsCString.
|
enumerateCategories()
Enumerate all existing categories
Parameters
aCategory |
The category to be enumerated.
|
Returns
a simple enumerator, each result QIs to
nsISupportsCString.
|