#include <sbDeviceStatistics.h>
Public Member Functions | |
nsresult | AddLibrary (sbIDeviceLibrary *aLibrary) |
nsresult | RemoveLibrary (sbIDeviceLibrary *aLibrary) |
nsresult | AddItem (sbIMediaItem *aMediaItem) |
nsresult | RemoveItem (sbIMediaItem *aMediaItem) |
nsresult | RemoveAllItems (sbIDeviceLibrary *aLibrary) |
PRUint32 | AudioCount () |
void | SetAudioCount (PRUint32 aAudioCount) |
void | AddAudioCount (PRInt32 aAddAudioCount) |
PRUint64 | AudioUsed () |
void | SetAudioUsed (PRUint64 aAudioUsed) |
void | AddAudioUsed (PRInt64 aAddAudioUsed) |
PRUint64 | AudioPlayTime () |
void | SetAudioPlayTime (PRUint64 aAudioPlayTime) |
void | AddAudioPlayTime (PRInt64 aAddAudioPlayTime) |
PRUint32 | VideoCount () |
void | SetVideoCount (PRUint32 aVideoCount) |
void | AddVideoCount (PRInt32 aAddVideoCount) |
PRUint64 | VideoUsed () |
void | SetVideoUsed (PRUint64 aVideoUsed) |
void | AddVideoUsed (PRInt64 aAddVideoUsed) |
PRUint64 | VideoPlayTime () |
void | SetVideoPlayTime (PRUint64 aVideoPlayTime) |
void | AddVideoPlayTime (PRInt64 aAddVideoPlayTime) |
PRUint32 | ImageCount () |
void | SetImageCount (PRUint32 aImageCount) |
void | AddImageCount (PRInt32 aAddImageCount) |
PRUint64 | ImageUsed () |
void | SetImageUsed (PRUint64 aImageUsed) |
void | AddImageUsed (PRInt64 aAddImageUsed) |
Public Member Functions inherited from sbIMediaListEnumerationListener | |
unsigned short | onEnumerationBegin (in sbIMediaList aMediaList) |
Called when enumeration is about to begin. More... | |
unsigned short | onEnumeratedItem (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem) |
Called once for each item in the enumeration. More... | |
void | onEnumerationEnd (in sbIMediaList aMediaList, in nsresult aStatusCode) |
Called when enumeration has completed. More... | |
Static Public Member Functions | |
NS_DECL_ISUPPORTS static NS_DECL_SBIMEDIALISTENUMERATIONLISTENER nsresult | New (class sbBaseDevice *aDevice, sbDeviceStatistics **aDeviceStatistics) |
Additional Inherited Members | |
Public Attributes inherited from sbIMediaListEnumerationListener | |
const unsigned short | CONTINUE = 0 |
const unsigned short | CANCEL = 1 |
Keeps track of the used statistics on the device.
Definition at line 61 of file sbDeviceStatistics.h.
void sbDeviceStatistics::AddAudioCount | ( | PRInt32 | aAddAudioCount | ) |
Definition at line 319 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::AddAudioPlayTime | ( | PRInt64 | aAddAudioPlayTime | ) |
Definition at line 369 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::AddAudioUsed | ( | PRInt64 | aAddAudioUsed | ) |
Definition at line 344 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::AddImageCount | ( | PRInt32 | aAddImageCount | ) |
void sbDeviceStatistics::AddImageUsed | ( | PRInt64 | aAddImageUsed | ) |
nsresult sbDeviceStatistics::AddItem | ( | sbIMediaItem * | aMediaItem | ) |
Add the media item specified by aMediaItem to the device statistics.
aMediaItem | Media item to add. |
Definition at line 234 of file sbDeviceStatistics.cpp.
nsresult sbDeviceStatistics::AddLibrary | ( | sbIDeviceLibrary * | aLibrary | ) |
Add the device library specified by aLibrary to the device statistics.
aLibrary | Device library to add. |
Definition at line 183 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::AddVideoCount | ( | PRInt32 | aAddVideoCount | ) |
Definition at line 394 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::AddVideoPlayTime | ( | PRInt64 | aAddVideoPlayTime | ) |
Definition at line 444 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::AddVideoUsed | ( | PRInt64 | aAddVideoUsed | ) |
Definition at line 419 of file sbDeviceStatistics.cpp.
PRUint32 sbDeviceStatistics::AudioCount | ( | ) |
Definition at line 307 of file sbDeviceStatistics.cpp.
PRUint64 sbDeviceStatistics::AudioPlayTime | ( | ) |
Definition at line 357 of file sbDeviceStatistics.cpp.
PRUint64 sbDeviceStatistics::AudioUsed | ( | ) |
Definition at line 332 of file sbDeviceStatistics.cpp.
PRUint32 sbDeviceStatistics::ImageCount | ( | ) |
PRUint64 sbDeviceStatistics::ImageUsed | ( | ) |
|
static |
Create and return in aDeviceStatistics a new device statistics instance for the device specified by aDevice.
aDevice | Device for which to create a device statistics instance. |
aDeviceStatistics | Returned created device statistics instance. |
Definition at line 152 of file sbDeviceStatistics.cpp.
nsresult sbDeviceStatistics::RemoveAllItems | ( | sbIDeviceLibrary * | aLibrary | ) |
Remove all media items in the device library specified by aLibrary from the device statistics.
aLibrary | Library for which to remove item statistics. |
Definition at line 281 of file sbDeviceStatistics.cpp.
nsresult sbDeviceStatistics::RemoveItem | ( | sbIMediaItem * | aMediaItem | ) |
Remove the media item specified by aMediaItem to the device statistics.
aMediaItem | Media item to remove. |
Definition at line 257 of file sbDeviceStatistics.cpp.
nsresult sbDeviceStatistics::RemoveLibrary | ( | sbIDeviceLibrary * | aLibrary | ) |
Remove the device library specified by aLibrary from the device statistics.
aLibrary | Device library to remove. |
Definition at line 211 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::SetAudioCount | ( | PRUint32 | aAudioCount | ) |
Definition at line 313 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::SetAudioPlayTime | ( | PRUint64 | aAudioPlayTime | ) |
Definition at line 363 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::SetAudioUsed | ( | PRUint64 | aAudioUsed | ) |
Definition at line 338 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::SetImageCount | ( | PRUint32 | aImageCount | ) |
Definition at line 463 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::SetImageUsed | ( | PRUint64 | aImageUsed | ) |
Definition at line 488 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::SetVideoCount | ( | PRUint32 | aVideoCount | ) |
Definition at line 388 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::SetVideoPlayTime | ( | PRUint64 | aVideoPlayTime | ) |
Definition at line 438 of file sbDeviceStatistics.cpp.
void sbDeviceStatistics::SetVideoUsed | ( | PRUint64 | aVideoUsed | ) |
Definition at line 413 of file sbDeviceStatistics.cpp.
PRUint32 sbDeviceStatistics::VideoCount | ( | ) |
Definition at line 382 of file sbDeviceStatistics.cpp.
PRUint64 sbDeviceStatistics::VideoPlayTime | ( | ) |
Definition at line 432 of file sbDeviceStatistics.cpp.
PRUint64 sbDeviceStatistics::VideoUsed | ( | ) |
Definition at line 407 of file sbDeviceStatistics.cpp.