#include <sbLocalDatabaseResourcePropertyBag.h>
Public Member Functions | |
NS_DECL_ISUPPORTS NS_DECL_SBILOCALDATABASERESOURCEPROPERTYBAG | sbLocalDatabaseResourcePropertyBag (sbLocalDatabasePropertyCache *aCache, PRUint32 mMediaItemId, const nsAString &aGuid) |
~sbLocalDatabaseResourcePropertyBag () | |
nsresult | Init () |
nsresult | PutValue (PRUint32 aPropertyID, const nsAString &aValue) |
PRBool | IsPropertyDirty (PRUint32 aPropertyDBID) |
nsresult | EnumerateDirty (nsTHashtable< nsUint32HashKey >::Enumerator aEnumFunc, void *aClosure, PRUint32 *aDirtyCount) |
nsresult | ClearDirty () |
nsresult | GetDirtyForInvalidation (std::set< PRUint32 > &aDirty) |
Public Member Functions inherited from sbILocalDatabaseResourcePropertyBag | |
AString | getProperty (in AString aPropertyID) |
Returns a property value by key. More... | |
AString | getPropertyByID (in unsigned long aPropertyDBID) |
Returns a property value by property database id. More... | |
AString | getSortablePropertyByID (in unsigned long aPropertyDBID) |
AString | getSearchablePropertyByID (in unsigned long aPropertyDBID) |
void | setProperty (in AString aPropertyID, in AString aValue) |
void | write () |
Additional Inherited Members | |
Public Attributes inherited from sbILocalDatabaseResourcePropertyBag | |
readonly attribute AString | guid |
readonly attribute unsigned long | mediaItemId |
readonly attribute nsIStringEnumerator | ids |
This holds the collection of properties usually related to a media item. It is generally by sbLocalDatabasePropertyCache, sbLocalDatabaseMediaItem, sbLocalDatabaseTreeView
Definition at line 49 of file sbLocalDatabaseResourcePropertyBag.h.
NS_DECL_ISUPPORTS NS_DECL_SBILOCALDATABASERESOURCEPROPERTYBAG sbLocalDatabaseResourcePropertyBag::sbLocalDatabaseResourcePropertyBag | ( | sbLocalDatabasePropertyCache * | aCache, |
PRUint32 | mMediaItemId, | ||
const nsAString & | aGuid | ||
) |
sbLocalDatabaseResourcePropertyBag::~sbLocalDatabaseResourcePropertyBag | ( | ) |
Definition at line 70 of file sbLocalDatabaseResourcePropertyBag.cpp.
nsresult sbLocalDatabaseResourcePropertyBag::ClearDirty | ( | ) |
Definition at line 430 of file sbLocalDatabaseResourcePropertyBag.cpp.
nsresult sbLocalDatabaseResourcePropertyBag::EnumerateDirty | ( | nsTHashtable< nsUint32HashKey >::Enumerator | aEnumFunc, |
void * | aClosure, | ||
PRUint32 * | aDirtyCount | ||
) |
Definition at line 418 of file sbLocalDatabaseResourcePropertyBag.cpp.
nsresult sbLocalDatabaseResourcePropertyBag::GetDirtyForInvalidation | ( | std::set< PRUint32 > & | aDirty | ) |
Definition at line 438 of file sbLocalDatabaseResourcePropertyBag.cpp.
nsresult sbLocalDatabaseResourcePropertyBag::Init | ( | ) |
Definition at line 75 of file sbLocalDatabaseResourcePropertyBag.cpp.
PRBool sbLocalDatabaseResourcePropertyBag::IsPropertyDirty | ( | PRUint32 | aPropertyDBID | ) |
Definition at line 408 of file sbLocalDatabaseResourcePropertyBag.cpp.
nsresult sbLocalDatabaseResourcePropertyBag::PutValue | ( | PRUint32 | aPropertyID, |
const nsAString & | aValue | ||
) |
Definition at line 393 of file sbLocalDatabaseResourcePropertyBag.cpp.