30 #ifndef __SB_LIBRARYCHANGESET_H__
31 #define __SB_LIBRARYCHANGESET_H__
33 #include <sbILibraryChangeset.h>
36 #include <nsIClassInfo.h>
37 #include <sbIMediaItem.h>
40 #include <nsStringGlue.h>
42 #define SB_PROPERTY_CHANGE_IID \
43 { 0x2cb3d75f, 0xfd37, 0x4ae0, { 0xa7, 0xf1, 0xe8, 0x5c, 0x7b, 0xb9, 0xd1, 0x7b } }
45 #define SB_LIBRARY_CHANGE_IID \
46 { 0x681aebb6, 0xa22c, 0x491f, { 0x9b, 0xc1, 0xc0, 0xa6, 0x2, 0x1d, 0xee, 0xc5 } }
48 #define SB_LIBRARY_CHANGESET_IID \
49 { 0x4597d14e, 0x4130, 0x4438, { 0xb7, 0xbd, 0x5d, 0x9c, 0x1b, 0x8c, 0xb7, 0x7b } }
56 NS_DECL_SBICHANGEOPERATION
57 NS_DECL_SBIPROPERTYCHANGE
65 const nsAString &aOldValue,
66 const nsAString &aNewValue);
70 nsresult
SetID(
const nsAString &aID);
95 NS_DECL_SBICHANGEOPERATION
96 NS_DECL_SBILIBRARYCHANGE
106 nsIArray *aProperties,
107 nsIArray *aListItems);
132 NS_DEFINE_STATIC_IID_ACCESSOR(sbLibraryChange,
141 NS_DECL_SBILIBRARYCHANGESET
144 sbLibraryChangeset();
154 ~sbLibraryChangeset();
164 NS_DEFINE_STATIC_IID_ACCESSOR(sbLibraryChangeset,
nsresult SetOldValue(const nsAString &aOldValue)
nsresult SetOperation(PRUint32 aOperation)
nsCOMPtr< nsIArray > mProperties
nsCOMPtr< nsIArray > mChanges
nsresult SetID(const nsAString &aID)
#define SB_PROPERTY_CHANGE_IID
NS_DECL_ISUPPORTS NS_DECL_SBICHANGEOPERATION NS_DECL_SBIPROPERTYCHANGE NS_DECL_NSICLASSINFO sbPropertyChange()
NS_DEFINE_STATIC_IID_ACCESSOR(sbPropertyChange,{0x2cb3d75f, 0xfd37, 0x4ae0,{0xa7, 0xf1, 0xe8, 0x5c, 0x7b, 0xb9, 0xd1, 0x7b}}) class sbLibraryChange nsresult InitWithValues(PRUint32 aOperation, PRUint64 aTimestamp, sbIMediaItem *aSourceItem, sbIMediaItem *aDestinationItem, nsIArray *aProperties, nsIArray *aListItems)
#define SB_LIBRARY_CHANGESET_IID
nsresult SetItems(sbIMediaItem *aSourceItem, sbIMediaItem *aDestinationItem)
nsCOMPtr< sbIMediaItem > mSourceItem
nsresult SetListItems(nsIArray *aProperties)
nsCOMPtr< nsIArray > mListItems
nsresult SetNewValue(const nsAString &aNewValue)
nsresult SetSourceLists(nsIArray *aSourceLists)
nsCOMPtr< sbIMediaList > mDestinationList
nsCOMPtr< nsIArray > mSourceLists
#define SB_LIBRARY_CHANGE_IID
nsresult InitWithValues(PRUint32 aOperation, const nsAString &aID, const nsAString &aOldValue, const nsAString &aNewValue)
nsresult SetOperation(PRUint32 aOperation)
nsresult SetTimestamp(PRUint64 aTimestamp)
nsresult SetProperties(nsIArray *aProperties)
nsresult SetDestinationList(sbIMediaList *aDestinationList)
nsCOMPtr< sbIMediaItem > mDestinationItem