Public Member Functions

nsICategoryManager Interface Reference

import "nsICategoryManager.idl";

List of all members.

Public Member Functions

string getCategoryEntry (in string aCategory, in string aEntry)
 Get the value for the given category's entry.
string addCategoryEntry (in string aCategory, in string aEntry, in string aValue, in boolean aPersist, in boolean aReplace)
 Add an entry to a category.
void deleteCategoryEntry (in string aCategory, in string aEntry, in boolean aPersist)
 Delete an entry from the category.
void deleteCategory (in string aCategory)
 Delete a category and all entries.
nsISimpleEnumerator enumerateCategory (in string aCategory)
 Enumerate the entries in a category.
nsISimpleEnumerator enumerateCategories ()
 Enumerate all existing categories.

Member Function Documentation

string nsICategoryManager::addCategoryEntry ( in string  aCategory,
in string  aEntry,
in string  aValue,
in boolean  aPersist,
in boolean  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:
Previous entry, if any
void nsICategoryManager::deleteCategory ( in string  aCategory  ) 

Delete a category and all entries.

Parameters:
aCategory The category to be deleted.
void nsICategoryManager::deleteCategoryEntry ( in string  aCategory,
in string  aEntry,
in boolean  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?
nsISimpleEnumerator nsICategoryManager::enumerateCategories (  ) 

Enumerate all existing categories.

Parameters:
aCategory The category to be enumerated.
Returns:
a simple enumerator, each result QIs to nsISupportsCString.
nsISimpleEnumerator nsICategoryManager::enumerateCategory ( in string  aCategory  ) 

Enumerate the entries in a category.

Parameters:
aCategory The category to be enumerated.
Returns:
a simple enumerator, each result QIs to nsISupportsCString.
string nsICategoryManager::getCategoryEntry ( in string  aCategory,
in string  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:
The value.

The documentation for this interface was generated from the following file: