Manager for system wide metadata properties. More...
import"sbIPropertyManager.idl";
Public Member Functions | |
| sbIPropertyInfo | getPropertyInfo (in AString aID) |
| Get a property object from its id. More... | |
| void | addPropertyInfo (in sbIPropertyInfo aPropertyInfo) |
| Add a property into the system. More... | |
| boolean | hasProperty (in AString aID) |
| Check for a property in the system by ID. More... | |
| nsIStringBundle | createBundle (in string aURLSpec) |
| Helper to get a string bundle. More... | |
| AString | getStringFromName (in nsIStringBundle aBundle, in AString aName) |
| Helper to get a display value, using a string name, from a bundle. More... | |
| sbIPropertyArray | getDependentProperties (in AString aID) |
| Get all the properties that in any way depend on the given property. For example, the secondary sort of property A may include property B. More... | |
Public Attributes | |
| readonly attribute nsIStringEnumerator | propertyIDs |
| An enumerator containing the ids of all registered properties. More... | |
Manager for system wide metadata properties.
Components should register properties with this service at startup.
Definition at line 52 of file sbIPropertyManager.idl.
| void sbIPropertyManager::addPropertyInfo | ( | in sbIPropertyInfo | aPropertyInfo | ) |
Add a property into the system.
| aPropertyInfo | Property to add into the system. An exception is thrown if the property's ID is not unique |
| nsIStringBundle sbIPropertyManager::createBundle | ( | in string | aURLSpec | ) |
Helper to get a string bundle.
| sbIPropertyArray sbIPropertyManager::getDependentProperties | ( | in AString | aID | ) |
Get all the properties that in any way depend on the given property. For example, the secondary sort of property A may include property B.
| sbIPropertyInfo sbIPropertyManager::getPropertyInfo | ( | in AString | aID | ) |
Get a property object from its id.
| aID | ID of the property |
| AString sbIPropertyManager::getStringFromName | ( | in nsIStringBundle | aBundle, |
| in AString | aName | ||
| ) |
Helper to get a display value, using a string name, from a bundle.
| boolean sbIPropertyManager::hasProperty | ( | in AString | aID | ) |
Check for a property in the system by ID.
| aID | ID of the property |
| readonly attribute nsIStringEnumerator sbIPropertyManager::propertyIDs |
An enumerator containing the ids of all registered properties.
Definition at line 58 of file sbIPropertyManager.idl.