27 #ifndef SBLOCALDATABASERESOURCEPROPERTYBAG_H_
28 #define SBLOCALDATABASERESOURCEPROPERTYBAG_H_
30 #include <sbILocalDatabaseResourcePropertyBag.h>
32 #include <nsClassHashtable.h>
33 #include <nsDataHashtable.h>
34 #include <nsStringAPI.h>
38 #include <sbIIdentityService.h>
53 NS_DECL_SBILOCALDATABASERESOURCEPROPERTYBAG
56 PRUint32 mMediaItemId,
57 const nsAString& aGuid);
62 nsresult
PutValue(PRUint32 aPropertyID,
75 static PLDHashOperator PR_CALLBACK
76 PropertyBagKeysToArray(
const PRUint32& aPropertyID,
81 nsClassHashtableMT<nsUint32HashKey, sbPropertyData> mValueMap;
83 nsCOMPtr<sbIPropertyManager> mPropertyManager;
84 nsCOMPtr<sbIIdentityService> mIdService;
87 PRUint32 mMediaItemId;
90 nsTHashtable<nsUint32HashKey> mDirty;
92 std::set<PRUint32> mDirtyForInvalidation;
103 const nsAString &aSearchableValue,
104 const nsAString &aSortableValue) :
nsresult EnumerateDirty(nsTHashtable< nsUint32HashKey >::Enumerator aEnumFunc, void *aClosure, PRUint32 *aDirtyCount)
PRBool IsPropertyDirty(PRUint32 aPropertyDBID)
NS_DECL_ISUPPORTS NS_DECL_SBILOCALDATABASERESOURCEPROPERTYBAG sbLocalDatabaseResourcePropertyBag(sbLocalDatabasePropertyCache *aCache, PRUint32 mMediaItemId, const nsAString &aGuid)
function Enumerator(aItemsList)
sbPropertyData(const nsAString &aValue, const nsAString &aSearchableValue, const nsAString &aSortableValue)
[USER CODE SHOULD NOT REFERENCE THIS CLASS]
~sbLocalDatabaseResourcePropertyBag()
Manager for system wide metadata properties.
nsresult PutValue(PRUint32 aPropertyID, const nsAString &aValue)
_updateTextAndScrollDataForFrame aData
nsresult GetDirtyForInvalidation(std::set< PRUint32 > &aDirty)