sbLocalDatabaseSortInvalidateJob Class Reference

#include <sbLocalDatabasePropertyCache.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSICLASSINFO
NS_DECL_SBIJOBPROGRESS
NS_DECL_NSIRUNNABLE
NS_DECL_SBIMEDIALISTENUMERATIONLISTENER
NS_DECL_NSIOBSERVER 
sbLocalDatabaseSortInvalidateJob ()
 
virtual ~sbLocalDatabaseSortInvalidateJob ()
 
nsresult Init (sbLocalDatabasePropertyCache *aPropCache, sbLocalDatabaseLibrary *aLibrary)
 
nsresult Shutdown ()
 
- 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...
 
- 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...
 

Additional Inherited Members

- 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...
 
- Public Attributes inherited from sbIMediaListEnumerationListener
const unsigned short CONTINUE = 0
 
const unsigned short CANCEL = 1
 

Detailed Description

Used by sbLocalDatabasePropertyCache rebuild the database sortable data for every item in the associated media library. Implements sbIJobProgress so that it is easy to present progress to the user.

Definition at line 257 of file sbLocalDatabasePropertyCache.h.

Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_NSICLASSINFO NS_DECL_SBIJOBPROGRESS NS_DECL_NSIRUNNABLE NS_DECL_SBIMEDIALISTENUMERATIONLISTENER NS_DECL_NSIOBSERVER sbLocalDatabaseSortInvalidateJob::sbLocalDatabaseSortInvalidateJob ( )
sbLocalDatabaseSortInvalidateJob::~sbLocalDatabaseSortInvalidateJob ( )
virtual

Definition at line 1849 of file sbLocalDatabasePropertyCache.cpp.

Here is the call graph for this function:

Member Function Documentation

nsresult sbLocalDatabaseSortInvalidateJob::Init ( sbLocalDatabasePropertyCache aPropCache,
sbLocalDatabaseLibrary aLibrary 
)

Definition at line 1857 of file sbLocalDatabasePropertyCache.cpp.

Here is the call graph for this function:

nsresult sbLocalDatabaseSortInvalidateJob::Shutdown ( )

Definition at line 1903 of file sbLocalDatabasePropertyCache.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: