#include <sbMediaListEnumArrayHelper.h>
Public Member Functions | |
sbMediaListEnumArrayHelper () | |
virtual | ~sbMediaListEnumArrayHelper () |
nsresult | Init (nsIArray *aArray=nsnull) |
Resets and clears the media items array. Be sure to call this method before using this class as a enum listener. More... | |
NS_IMETHOD | GetMediaItemsArray (nsIArray **aOutArray) |
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 sbMediaListEnumArrayHelper * | New (nsIArray *aArray=nsnull) |
Creates a enum array helper and initializes it. More... | |
Protected Attributes | |
nsCOMPtr< nsIMutableArray > | mItemsArray |
Additional Inherited Members | |
Public Attributes inherited from sbIMediaListEnumerationListener | |
const unsigned short | CONTINUE = 0 |
const unsigned short | CANCEL = 1 |
Definition at line 39 of file sbMediaListEnumArrayHelper.h.
sbMediaListEnumArrayHelper::sbMediaListEnumArrayHelper | ( | ) |
Definition at line 42 of file sbMediaListEnumArrayHelper.cpp.
|
virtual |
Definition at line 46 of file sbMediaListEnumArrayHelper.cpp.
NS_IMETHODIMP sbMediaListEnumArrayHelper::GetMediaItemsArray | ( | nsIArray ** | aOutArray | ) |
Definition at line 67 of file sbMediaListEnumArrayHelper.cpp.
nsresult sbMediaListEnumArrayHelper::Init | ( | nsIArray * | aArray = nsnull | ) |
Resets and clears the media items array. Be sure to call this method before using this class as a enum listener.
aOutArray | The array to receive the enumerated items, optional |
Definition at line 51 of file sbMediaListEnumArrayHelper.cpp.
|
static |
Creates a enum array helper and initializes it.
aArray | to be populated, optional |
Definition at line 34 of file sbMediaListEnumArrayHelper.cpp.
|
protected |
Definition at line 65 of file sbMediaListEnumArrayHelper.h.