sbMediaExportService Class Reference

#include <sbMediaExportService.h>

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

Public Member Functions

 sbMediaExportService ()
 
virtual ~sbMediaExportService ()
 
nsresult Init ()
 
NS_IMETHOD OnBoolPrefChanged (const nsAString &aPrefName, const PRBool aNewPrefValue)
 
- Public Member Functions inherited from sbIMediaExportService
void exportSongbirdData ()
 
- Public Member Functions inherited from sbIMediaListListener
boolean onItemAdded (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
 Called when a media item is added to the list. More...
 
boolean onBeforeItemRemoved (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
 Called before a media item is removed from the list. More...
 
boolean onAfterItemRemoved (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in unsigned long aIndex)
 Called after a media item is removed from the list. More...
 
boolean onItemUpdated (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem, in sbIPropertyArray aProperties)
 Called when a media item is changed. More...
 
boolean onItemMoved (in sbIMediaList aMediaList, in unsigned long aFromIndex, in unsigned long aToIndex)
 Called when a media item is moved. More...
 
boolean onBeforeListCleared (in sbIMediaList aMediaList, in boolean aExcludeLists)
 
boolean onListCleared (in sbIMediaList aMediaList, in boolean aExcludeLists)
 
void onBatchBegin (in sbIMediaList aMediaList)
 Called when the library is about to perform multiple operations at once. More...
 
void onBatchEnd (in sbIMediaList aMediaList)
 Called when the library has finished performing multiple operations at once. More...
 
- Public Member Functions inherited from sbILocalDatabaseSmartMediaListListener
void onRebuild (in sbILocalDatabaseSmartMediaList aSmartMediaList)
 
- Public Member Functions inherited from sbIShutdownJob
void startTask ()
 
- Public Member Functions inherited from sbIJobProgress
nsIStringEnumerator getErrorMessages ()
 Enumerate all the errors encountered during the job. More...
 
void addJobProgressListener (in sbIJobProgressListener aListener)
 Add a listener to be notified when significant job progress has been made. More...
 
void removeJobProgressListener (in sbIJobProgressListener aListener)
 Remove a previously added listener. More...
 

Static Public Member Functions

static NS_METHOD RegisterSelf (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
 

Protected Member Functions

nsresult InitInternal ()
 
nsresult Shutdown ()
 
nsresult StopListeningMediaLists ()
 
nsresult ListenToMediaList (sbIMediaList *aMediaList)
 
nsresult GetShouldWatchMediaList (sbIMediaList *aMediaList, PRBool *aShouldWatch)
 
void WriteExportData ()
 
void ProxyNotifyListeners ()
 
nsresult WriteChangesToTaskFile ()
 
nsresult WriteAddedMediaLists ()
 
nsresult WriteRemovedMediaLists ()
 
nsresult WriteAddedMediaItems ()
 
nsresult WriteUpdatedMediaItems ()
 
nsresult WriteUpdatedSmartPlaylists ()
 
nsresult WriteMediaItemsArray (nsIArray *aItemsArray)
 
nsresult GetMediaListByGuid (const nsAString &aItemGuid, sbIMediaList **aMediaList)
 
nsresult NotifyListeners ()
 
PRBool GetHasRecordedChanges ()
 

Additional Inherited Members

- Public Attributes inherited from sbIMediaExportService
readonly attribute boolean hasPendingChanges
 
- Public Attributes inherited from sbIShutdownJob
readonly attribute boolean needsToRunTask
 
- Public Attributes inherited from sbIJobProgress
const unsigned short STATUS_FAILED = 0x00
 Constant indicating that the job has completed with errors. More...
 
const unsigned short STATUS_SUCCEEDED = 0x10
 Constant indicating that the job has completed. More...
 
const unsigned short STATUS_RUNNING = 0x20
 Constant indicating that the job is active. More...
 
readonly attribute unsigned short status
 Current status of the job. More...
 
readonly attribute boolean blocked
 If true, progress of job is blocked (e.g., due to locked resource). More...
 
readonly attribute AString statusText
 Localized message describing the status of the job. More...
 
readonly attribute AString titleText
 Localized message describing the type or purpose of the job. More...
 
readonly attribute unsigned long progress
 Number of work units completed. More...
 
readonly attribute unsigned long total
 Total number of work units to be completed May be set to 0 if the job length is indeterminate. More...
 
readonly attribute unsigned long errorCount
 Number of errors that have been encountered. More...
 

Detailed Description

Definition at line 59 of file sbMediaExportService.h.

Constructor & Destructor Documentation

sbIShutdownJob sbMediaExportService::sbMediaExportService ( )

Definition at line 133 of file sbMediaExportService.cpp.

sbMediaExportService::~sbMediaExportService ( )
virtual

Definition at line 141 of file sbMediaExportService.cpp.

Member Function Documentation

PRBool sbMediaExportService::GetHasRecordedChanges ( )
protected

Definition at line 1027 of file sbMediaExportService.cpp.

Here is the caller graph for this function:

nsresult sbMediaExportService::GetMediaListByGuid ( const nsAString &  aItemGuid,
sbIMediaList **  aMediaList 
)
protected

Definition at line 962 of file sbMediaExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbMediaExportService::GetShouldWatchMediaList ( sbIMediaList aMediaList,
PRBool *  aShouldWatch 
)
protected

Definition at line 489 of file sbMediaExportService.cpp.

Here is the caller graph for this function:

nsresult sbMediaExportService::Init ( )

Definition at line 146 of file sbMediaExportService.cpp.

nsresult sbMediaExportService::InitInternal ( )
protected

Definition at line 179 of file sbMediaExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbMediaExportService::ListenToMediaList ( sbIMediaList aMediaList)
protected

Definition at line 414 of file sbMediaExportService.cpp.

Here is the caller graph for this function:

nsresult sbMediaExportService::NotifyListeners ( )
protected

Definition at line 998 of file sbMediaExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

NS_IMETHODIMP sbMediaExportService::OnBoolPrefChanged ( const nsAString &  aPrefName,
const PRBool  aNewPrefValue 
)
virtual

Implements sbMediaExportPrefListener.

Definition at line 378 of file sbMediaExportService.cpp.

Here is the call graph for this function:

void sbMediaExportService::ProxyNotifyListeners ( )
protected

Definition at line 566 of file sbMediaExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

NS_METHOD sbMediaExportService::RegisterSelf ( nsIComponentManager *  aCompMgr,
nsIFile *  aPath,
const char *  aLoaderStr,
const char *  aType,
const nsModuleComponentInfo *  aInfo 
)
static

Definition at line 1585 of file sbMediaExportService.cpp.

nsresult sbMediaExportService::Shutdown ( )
protected

Definition at line 236 of file sbMediaExportService.cpp.

Here is the call graph for this function:

nsresult sbMediaExportService::StopListeningMediaLists ( )
protected

Definition at line 312 of file sbMediaExportService.cpp.

Here is the caller graph for this function:

nsresult sbMediaExportService::WriteAddedMediaItems ( )
protected

Definition at line 723 of file sbMediaExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbMediaExportService::WriteAddedMediaLists ( )
protected

Definition at line 656 of file sbMediaExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbMediaExportService::WriteChangesToTaskFile ( )
protected

Definition at line 575 of file sbMediaExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void sbMediaExportService::WriteExportData ( )
protected

Definition at line 558 of file sbMediaExportService.cpp.

Here is the call graph for this function:

nsresult sbMediaExportService::WriteMediaItemsArray ( nsIArray *  aItemsArray)
protected

Definition at line 918 of file sbMediaExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbMediaExportService::WriteRemovedMediaLists ( )
protected

Definition at line 693 of file sbMediaExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbMediaExportService::WriteUpdatedMediaItems ( )
protected

Definition at line 787 of file sbMediaExportService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbMediaExportService::WriteUpdatedSmartPlaylists ( )
protected

Definition at line 857 of file sbMediaExportService.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 files: