28 #ifndef SBDEVICESTATISTICS_H_
29 #define SBDEVICESTATISTICS_H_
43 #include <sbIDeviceLibrary.h>
44 #include <sbIMediaListListener.h>
47 #include <nsAutoLock.h>
76 NS_DECL_SBIMEDIALISTENUMERATIONLISTENER
185 PRUint32 mAudioCount;
187 PRUint64 mAudioPlayTime;
188 PRUint32 mVideoCount;
190 PRUint64 mVideoPlayTime;
191 PRUint32 mImageCount;
nsresult RemoveLibrary(sbIDeviceLibrary *aLibrary)
nsresult RemoveAllItems(sbIDeviceLibrary *aLibrary)
void SetVideoCount(PRUint32 aVideoCount)
void AddImageUsed(PRInt64 aAddImageUsed)
void AddVideoCount(PRInt32 aAddVideoCount)
NS_DECL_ISUPPORTS static NS_DECL_SBIMEDIALISTENUMERATIONLISTENER nsresult New(class sbBaseDevice *aDevice, sbDeviceStatistics **aDeviceStatistics)
void AddAudioUsed(PRInt64 aAddAudioUsed)
nsresult AddLibrary(sbIDeviceLibrary *aLibrary)
void AddImageCount(PRInt32 aAddImageCount)
void SetVideoPlayTime(PRUint64 aVideoPlayTime)
void AddAudioPlayTime(PRInt64 aAddAudioPlayTime)
void SetAudioCount(PRUint32 aAudioCount)
void AddAudioCount(PRInt32 aAddAudioCount)
nsresult AddItem(sbIMediaItem *aMediaItem)
void AddVideoUsed(PRInt64 aAddVideoUsed)
friend class sbDeviceStatistics
nsresult RemoveItem(sbIMediaItem *aMediaItem)
void SetImageUsed(PRUint64 aImageUsed)
void SetVideoUsed(PRUint64 aVideoUsed)
void AddVideoPlayTime(PRInt64 aAddVideoPlayTime)
void SetImageCount(PRUint32 aImageCount)
void SetAudioUsed(PRUint64 aAudioUsed)
void SetAudioPlayTime(PRUint64 aAudioPlayTime)