sbMediaListEnumSingleItemHelper Class Reference

#include <sbMediaListEnumSingleItemHelper.h>

Inheritance diagram for sbMediaListEnumSingleItemHelper:
[legend]
Collaboration diagram for sbMediaListEnumSingleItemHelper:
[legend]

Public Member Functions

already_AddRefed< sbIMediaItemGetItem ()
 
already_AddRefed< sbIMediaListGetList ()
 
- 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

static
sbMediaListEnumSingleItemHelper
New ()
 

Protected Attributes

nsCOMPtr< sbIMediaItemmItem
 
nsCOMPtr< sbIMediaListmList
 

Additional Inherited Members

- Public Attributes inherited from sbIMediaListEnumerationListener
const unsigned short CONTINUE = 0
 
const unsigned short CANCEL = 1
 

Detailed Description

Helper class to fetch the first item (if any) of a list enumeration

Definition at line 41 of file sbMediaListEnumSingleItemHelper.h.

Member Function Documentation

already_AddRefed< sbIMediaItem > sbMediaListEnumSingleItemHelper::GetItem ( )

Definition at line 51 of file sbMediaListEnumSingleItemHelper.cpp.

already_AddRefed< sbIMediaList > sbMediaListEnumSingleItemHelper::GetList ( )

Definition at line 56 of file sbMediaListEnumSingleItemHelper.cpp.

static sbMediaListEnumSingleItemHelper* sbMediaListEnumSingleItemHelper::New ( )
static

Here is the caller graph for this function:

Member Data Documentation

nsCOMPtr<sbIMediaItem> sbMediaListEnumSingleItemHelper::mItem
protected

Definition at line 58 of file sbMediaListEnumSingleItemHelper.h.

nsCOMPtr<sbIMediaList> sbMediaListEnumSingleItemHelper::mList
protected

Definition at line 59 of file sbMediaListEnumSingleItemHelper.h.


The documentation for this class was generated from the following files: