SyncExportEnumListener Class Reference
Inheritance diagram for SyncExportEnumListener:
[legend]
Collaboration diagram for SyncExportEnumListener:
[legend]

Public Member Functions

 SyncExportEnumListener ()
 
virtual nsresult ProcessItem (sbIMediaList *aMediaList, sbIMediaItem *aMediaItem)
 
virtual nsresult SelectChangeForItem (sbIMediaItem *aMediaItem, ChangeType *aChangeType, sbIMediaItem **aDestMediaItem)
 
virtual nsresult SelectChangeForList (sbIMediaList *aMediaList, ChangeType *aChangeType, sbIMediaList **aDestMediaList)
 
- Public Member Functions inherited from SyncEnumListenerBase
 SyncEnumListenerBase ()
 
virtual nsresult Init (DropAction aDropAction, sbILibrary *aMainLibrary, sbILibrary *aDeviceLibrary)
 
nsresult AddChange (PRUint32 aChangeType, sbIMediaItem *aSrcItem, sbIMediaItem *aDstItem, nsIArray *aListItems=NULL)
 
nsresult AddListChange (PRUint32 aChangeType, sbIMediaList *aSrcList, sbIMediaList *aDstList)
 
void SetMediaTypes (PRUint32 aMediaTypes)
 
void SetHandleMode (HandleMode aMode)
 
nsresult Finish ()
 
- 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...
 

Public Attributes

nsTArray< nsCOMPtr
< sbIMediaList > > 
mMixedContentPlaylists
 
- Public Attributes inherited from SyncEnumListenerBase
nsRefPtr< sbLibraryChangeset > mChangeset
 
- Public Attributes inherited from sbIMediaListEnumerationListener
const unsigned short CONTINUE = 0
 
const unsigned short CANCEL = 1
 

Protected Member Functions

nsresult GetItemWithOriginGUID (sbILibrary *aDeviceLibrary, nsString aItemID, sbIMediaItem **aMediaItem)
 
virtual nsresult GetMatchingPlaylist (sbILibrary *aLibrary, sbIMediaList *aList, sbIMediaList **aMatchingList)
 
- Protected Member Functions inherited from SyncEnumListenerBase
virtual ~SyncEnumListenerBase ()
 
nsresult CreatePropertyChangesForItemAdded (sbIMediaItem *aSourceItem, nsIArray **aPropertyChanges)
 
nsresult CreatePropertyChangesForItemModified (sbIMediaItem *aSourceItem, sbIMediaItem *aDestinationItem, nsIArray **aPropertyChanges)
 
nsresult GetTimeProperty (sbIMediaItem *aMediaItem, nsString aPropertyName, PRInt64 *_result)
 
bool HasCorrectContentType (sbIMediaItem *aItem)
 
bool ListIsMixed (sbIMediaList *aList)
 
bool ListHasCorrectContentType (sbIMediaList *aList)
 
bool IsDrop () const
 

Additional Inherited Members

- Public Types inherited from SyncEnumListenerBase
enum  DropAction { NOT_DROP, DROP_TRACKS, DROP_LIST }
 
enum  HandleMode { HANDLE_ALL, HANDLE_ITEMS, HANDLE_LISTS }
 
enum  ChangeType { CHANGE_NONE, CHANGE_ADD, CHANGE_CLOBBER, CHANGE_RETAIN }
 
- Protected Attributes inherited from SyncEnumListenerBase
PRUint32 mMediaTypes
 
DropAction mDropAction
 
HandleMode mHandleMode
 
nsTHashtable< nsStringHashKey > mSeenMediaItems
 
nsCOMPtr< sbILibrarymMainLibrary
 
nsCOMPtr< sbILibrarymDeviceLibrary
 
nsCOMPtr< nsIMutableArray > mLibraryChanges
 

Detailed Description

Definition at line 874 of file sbDeviceLibrarySyncDiff.cpp.

Constructor & Destructor Documentation

SyncExportEnumListener::SyncExportEnumListener ( )
inline

Definition at line 878 of file sbDeviceLibrarySyncDiff.cpp.

Member Function Documentation

nsresult SyncExportEnumListener::GetItemWithOriginGUID ( sbILibrary aDeviceLibrary,
nsString  aItemID,
sbIMediaItem **  aMediaItem 
)
protected

Definition at line 910 of file sbDeviceLibrarySyncDiff.cpp.

Here is the caller graph for this function:

nsresult SyncExportEnumListener::GetMatchingPlaylist ( sbILibrary aLibrary,
sbIMediaList aList,
sbIMediaList **  aMatchingList 
)
protectedvirtual

Implements SyncEnumListenerBase.

Definition at line 944 of file sbDeviceLibrarySyncDiff.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult SyncExportEnumListener::ProcessItem ( sbIMediaList aMediaList,
sbIMediaItem aMediaItem 
)
virtual

Implements SyncEnumListenerBase.

Definition at line 968 of file sbDeviceLibrarySyncDiff.cpp.

Here is the call graph for this function:

nsresult SyncExportEnumListener::SelectChangeForItem ( sbIMediaItem aMediaItem,
ChangeType aChangeType,
sbIMediaItem **  aDestMediaItem 
)
virtual

Implements SyncEnumListenerBase.

Definition at line 1088 of file sbDeviceLibrarySyncDiff.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult SyncExportEnumListener::SelectChangeForList ( sbIMediaList aMediaList,
ChangeType aChangeType,
sbIMediaList **  aDestMediaList 
)
virtual

Implements SyncEnumListenerBase.

Definition at line 1036 of file sbDeviceLibrarySyncDiff.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

nsTArray<nsCOMPtr<sbIMediaList> > SyncExportEnumListener::mMixedContentPlaylists

Definition at line 904 of file sbDeviceLibrarySyncDiff.cpp.


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