sbPlaybackHistoryService Class Reference

#include <sbPlaybackHistoryService.h>

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

Public Member Functions

 sbPlaybackHistoryService ()
 
NS_METHOD Init ()
 
nsresult CreateQueries ()
 
nsresult CreateDefaultQuery (sbIDatabaseQuery **aQuery)
 
nsresult CreateAnnotationsFromEntryId (PRInt64 aEntryId, sbIPropertyArray **aAnnotations)
 
nsresult CreateEntryFromResultSet (sbIDatabaseResult *aResult, PRUint32 aRow, sbIPlaybackHistoryEntry **aEntry)
 
nsresult CreateEntriesFromResultSet (sbIDatabaseResult *aResult, nsIArray **aEntries)
 
nsresult EnsureHistoryDatabaseAvailable ()
 
nsresult FillAddQueryParameters (sbIDatabaseQuery *aQuery, sbIPlaybackHistoryEntry *aEntry)
 
nsresult FillAddAnnotationsQueryParameters (sbIDatabaseQuery *aQuery, sbIPlaybackHistoryEntry *aEntry)
 
nsresult FillRemoveEntryQueryParameters (sbIDatabaseQuery *aQuery, sbIPlaybackHistoryEntry *aEntry)
 
nsresult GetItem (const nsAString &aLibraryGuid, const nsAString &aItemGuid, sbIMediaItem **aItem)
 
nsresult GetPropertyDBID (const nsAString &aPropertyID, PRUint32 *aPropertyDBID)
 
nsresult InsertPropertyID (const nsAString &aPropertyID, PRUint32 *aPropertyDBID)
 
nsresult LoadPropertyIDs ()
 
nsresult DoEntryAddedCallback (sbIPlaybackHistoryEntry *aEntry)
 
nsresult DoEntriesAddedCallback (nsIArray *aEntries)
 
nsresult DoEntryUpdatedCallback (sbIPlaybackHistoryEntry *aEntry)
 
nsresult DoEntriesUpdatedCallback (nsIArray *aEntry)
 
nsresult DoEntryRemovedCallback (sbIPlaybackHistoryEntry *aEntry)
 
nsresult DoEntriesRemovedCallback (nsIArray *aEntry)
 
nsresult DoEntriesClearedCallback ()
 
nsresult UpdateTrackingDataFromEvent (sbIMediacoreEvent *aEvent)
 
nsresult UpdateCurrentViewFromEvent (sbIMediacoreEvent *aEvent)
 
nsresult VerifyDataAndCreateNewEntry ()
 
nsresult ResetTrackingData ()
 
- Public Member Functions inherited from sbIPlaybackHistoryService
sbIPlaybackHistoryEntry createEntry (in sbIMediaItem aItem, in long long aTimestamp, in long long aDuration, in sbIPropertyArray aAnnotations)
 Create a playback history entry from a media item and a timestamp. More...
 
void addEntry (in sbIPlaybackHistoryEntry aEntry)
 Add an entry to the playback history service. More...
 
void addEntries (in nsIArray aEntries)
 Add entries to the playback history service. More...
 
sbIPlaybackHistoryEntry getEntryByIndex (in long long aIndex)
 Get an entry by index. Negative indexes wrap from the last entry. More...
 
nsIArray getEntriesByIndex (in long long aStartIndex, in unsigned long long aCount)
 Get entries from the playback history service using a start index. Negative indexes wrap from the last entry. More...
 
nsIArray getEntriesByTimestamp (in long long aStartTimestamp, in long long aEndTimestamp)
 Get entries between start timestamp and end timestamp. The range is inclusive. More...
 
void removeEntry (in sbIPlaybackHistoryEntry aEntry)
 Remove an entry from the playback history service. More...
 
void removeEntryByIndex (in long long aIndex)
 Remove an entry from the playback history service using the entry's index. Negative indexes wrap from the last entry. More...
 
void removeEntriesByIndex (in long long aStartIndex, in unsigned long long aCount)
 Remove entries from the playback history service using a start index. Negative indexes wrap from the last entry. More...
 
void removeEntries (in nsIArray aEntries)
 Remove entries from the playback history service. More...
 
nsIArray getEntriesByAnnotation (in AString aAnnotationId, in AString aAnnotationValue, [optional] in unsigned long aCount)
 Get entries by their annotation value. More...
 
nsIArray getEntriesByAnnotations (in sbIPropertyArray aAnnotations, [optional] in unsigned long aCount)
 
void clear ()
 Clear all entries from the playback history service. More...
 
void addListener (in sbIPlaybackHistoryListener aListener)
 Add a listener. More...
 
void removeListener (in sbIPlaybackHistoryListener aListener)
 Remove a listener. More...
 
nsresult addOrUpdateAnnotation (in long long aEntryId, in AString aAnnotationId, in AString aAnnotationValue)
 
nsresult removeAnnotation (in long long aEntryId, in AString aAnnotationId)
 
- Public Member Functions inherited from sbIMediacoreEventListener
void onMediacoreEvent (in sbIMediacoreEvent aEvent)
 

Static Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER
NS_DECL_SBIMEDIACOREEVENTLISTENER
static
NS_DECL_SBIPLAYBACKHISTORYSERVICE
NS_METHOD 
RegisterSelf (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo)
 
static PLDHashOperator PR_CALLBACK AddListenersToCOMArrayCallback (nsISupportsHashKey::KeyType aKey, sbIPlaybackHistoryListener *aEntry, void *aUserData)
 

Protected Member Functions

 ~sbPlaybackHistoryService ()
 

Additional Inherited Members

- Public Attributes inherited from sbIPlaybackHistoryService
readonly attribute
nsISimpleEnumerator 
entries
 Enumerator of all entries in the playback history service. More...
 
readonly attribute unsigned
long long 
entryCount
 Total number of entries in the playback history service. More...
 

Detailed Description

Definition at line 59 of file sbPlaybackHistoryService.h.

Constructor & Destructor Documentation

sbPlaybackHistoryService::sbPlaybackHistoryService ( )
sbPlaybackHistoryService::~sbPlaybackHistoryService ( )
protected

Definition at line 145 of file sbPlaybackHistoryService.cpp.

Member Function Documentation

PLDHashOperator PR_CALLBACK sbPlaybackHistoryService::AddListenersToCOMArrayCallback ( nsISupportsHashKey::KeyType  aKey,
sbIPlaybackHistoryListener aEntry,
void *  aUserData 
)
static

Definition at line 179 of file sbPlaybackHistoryService.cpp.

Here is the caller graph for this function:

nsresult sbPlaybackHistoryService::CreateAnnotationsFromEntryId ( PRInt64  aEntryId,
sbIPropertyArray **  aAnnotations 
)

Definition at line 779 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbPlaybackHistoryService::CreateDefaultQuery ( sbIDatabaseQuery **  aQuery)

Definition at line 755 of file sbPlaybackHistoryService.cpp.

Here is the caller graph for this function:

nsresult sbPlaybackHistoryService::CreateEntriesFromResultSet ( sbIDatabaseResult aResult,
nsIArray **  aEntries 
)

Definition at line 904 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::CreateEntryFromResultSet ( sbIDatabaseResult aResult,
PRUint32  aRow,
sbIPlaybackHistoryEntry **  aEntry 
)

Definition at line 844 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbPlaybackHistoryService::CreateQueries ( )

Definition at line 256 of file sbPlaybackHistoryService.cpp.

Here is the caller graph for this function:

nsresult sbPlaybackHistoryService::DoEntriesAddedCallback ( nsIArray *  aEntries)

Definition at line 1406 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::DoEntriesClearedCallback ( )

Definition at line 1535 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::DoEntriesRemovedCallback ( nsIArray *  aEntry)

Definition at line 1512 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::DoEntriesUpdatedCallback ( nsIArray *  aEntry)

Definition at line 1459 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::DoEntryAddedCallback ( sbIPlaybackHistoryEntry aEntry)

Definition at line 1376 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::DoEntryRemovedCallback ( sbIPlaybackHistoryEntry aEntry)

Definition at line 1482 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::DoEntryUpdatedCallback ( sbIPlaybackHistoryEntry aEntry)

Definition at line 1429 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::EnsureHistoryDatabaseAvailable ( )

Definition at line 941 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::FillAddAnnotationsQueryParameters ( sbIDatabaseQuery aQuery,
sbIPlaybackHistoryEntry aEntry 
)

Definition at line 1083 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::FillAddQueryParameters ( sbIDatabaseQuery aQuery,
sbIPlaybackHistoryEntry aEntry 
)

Definition at line 1021 of file sbPlaybackHistoryService.cpp.

nsresult sbPlaybackHistoryService::FillRemoveEntryQueryParameters ( sbIDatabaseQuery aQuery,
sbIPlaybackHistoryEntry aEntry 
)

Definition at line 1181 of file sbPlaybackHistoryService.cpp.

nsresult sbPlaybackHistoryService::GetItem ( const nsAString &  aLibraryGuid,
const nsAString &  aItemGuid,
sbIMediaItem **  aItem 
)

Definition at line 1224 of file sbPlaybackHistoryService.cpp.

Here is the caller graph for this function:

nsresult sbPlaybackHistoryService::GetPropertyDBID ( const nsAString &  aPropertyID,
PRUint32 *  aPropertyDBID 
)

Definition at line 1254 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

NS_METHOD sbPlaybackHistoryService::Init ( )

Definition at line 196 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

nsresult sbPlaybackHistoryService::InsertPropertyID ( const nsAString &  aPropertyID,
PRUint32 *  aPropertyDBID 
)

Definition at line 1269 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbPlaybackHistoryService::LoadPropertyIDs ( )

Definition at line 1312 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:

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

Definition at line 151 of file sbPlaybackHistoryService.cpp.

nsresult sbPlaybackHistoryService::ResetTrackingData ( )

Definition at line 1722 of file sbPlaybackHistoryService.cpp.

nsresult sbPlaybackHistoryService::UpdateCurrentViewFromEvent ( sbIMediacoreEvent aEvent)

Definition at line 1583 of file sbPlaybackHistoryService.cpp.

nsresult sbPlaybackHistoryService::UpdateTrackingDataFromEvent ( sbIMediacoreEvent aEvent)

Definition at line 1558 of file sbPlaybackHistoryService.cpp.

nsresult sbPlaybackHistoryService::VerifyDataAndCreateNewEntry ( )

Definition at line 1604 of file sbPlaybackHistoryService.cpp.

Here is the call graph for this function:


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