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

Public Member Functions

 SyncImportEnumListener ()
 
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...
 

Protected Member Functions

virtual ~SyncImportEnumListener ()
 
nsresult IsFromMainLibrary (sbIMediaItem *aMediaItem, PRBool *aFromMainLibrary)
 
nsresult GetItemInMainLibrary (sbIMediaItem *aMediaItem, sbIMediaItem **aMainLibraryItem)
 
nsresult GetSimplePlaylistWithSameName (sbILibrary *aLibrary, sbIMediaList *aList, sbIMediaList **aMatchingList)
 
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 }
 
- Public Attributes inherited from SyncEnumListenerBase
nsRefPtr< sbLibraryChangeset > mChangeset
 
- Public Attributes inherited from sbIMediaListEnumerationListener
const unsigned short CONTINUE = 0
 
const unsigned short CANCEL = 1
 
- 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 1188 of file sbDeviceLibrarySyncDiff.cpp.

Constructor & Destructor Documentation

SyncImportEnumListener::SyncImportEnumListener ( )
inline

Definition at line 1192 of file sbDeviceLibrarySyncDiff.cpp.

virtual SyncImportEnumListener::~SyncImportEnumListener ( )
inlineprotectedvirtual

Definition at line 1204 of file sbDeviceLibrarySyncDiff.cpp.

Member Function Documentation

nsresult SyncImportEnumListener::GetItemInMainLibrary ( sbIMediaItem aMediaItem,
sbIMediaItem **  aMainLibraryItem 
)
protected

Definition at line 1306 of file sbDeviceLibrarySyncDiff.cpp.

Here is the caller graph for this function:

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

Implements SyncEnumListenerBase.

Definition at line 1330 of file sbDeviceLibrarySyncDiff.cpp.

Here is the caller graph for this function:

nsresult SyncImportEnumListener::GetSimplePlaylistWithSameName ( sbILibrary aLibrary,
sbIMediaList aList,
sbIMediaList **  aMatchingList 
)
protected

Definition at line 1221 of file sbDeviceLibrarySyncDiff.cpp.

Here is the caller graph for this function:

nsresult SyncImportEnumListener::IsFromMainLibrary ( sbIMediaItem aMediaItem,
PRBool *  aFromMainLibrary 
)
protected

Definition at line 1274 of file sbDeviceLibrarySyncDiff.cpp.

Here is the caller graph for this function:

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

Implements SyncEnumListenerBase.

Definition at line 1570 of file sbDeviceLibrarySyncDiff.cpp.

Here is the call graph for this function:

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

Implements SyncEnumListenerBase.

Definition at line 1470 of file sbDeviceLibrarySyncDiff.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements SyncEnumListenerBase.

Definition at line 1371 of file sbDeviceLibrarySyncDiff.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


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