#include <sbPlaybackHistoryService.h>
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... | |
Definition at line 59 of file sbPlaybackHistoryService.h.
| sbPlaybackHistoryService::sbPlaybackHistoryService | ( | ) |
|
protected |
Definition at line 145 of file sbPlaybackHistoryService.cpp.
|
static |
Definition at line 179 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::CreateAnnotationsFromEntryId | ( | PRInt64 | aEntryId, |
| sbIPropertyArray ** | aAnnotations | ||
| ) |
Definition at line 779 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::CreateDefaultQuery | ( | sbIDatabaseQuery ** | aQuery | ) |
Definition at line 755 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::CreateEntriesFromResultSet | ( | sbIDatabaseResult * | aResult, |
| nsIArray ** | aEntries | ||
| ) |
Definition at line 904 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::CreateEntryFromResultSet | ( | sbIDatabaseResult * | aResult, |
| PRUint32 | aRow, | ||
| sbIPlaybackHistoryEntry ** | aEntry | ||
| ) |
Definition at line 844 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::CreateQueries | ( | ) |
Definition at line 256 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::DoEntriesAddedCallback | ( | nsIArray * | aEntries | ) |
Definition at line 1406 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::DoEntriesClearedCallback | ( | ) |
Definition at line 1535 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::DoEntriesRemovedCallback | ( | nsIArray * | aEntry | ) |
Definition at line 1512 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::DoEntriesUpdatedCallback | ( | nsIArray * | aEntry | ) |
Definition at line 1459 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::DoEntryAddedCallback | ( | sbIPlaybackHistoryEntry * | aEntry | ) |
Definition at line 1376 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::DoEntryRemovedCallback | ( | sbIPlaybackHistoryEntry * | aEntry | ) |
Definition at line 1482 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::DoEntryUpdatedCallback | ( | sbIPlaybackHistoryEntry * | aEntry | ) |
Definition at line 1429 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::EnsureHistoryDatabaseAvailable | ( | ) |
Definition at line 941 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::FillAddAnnotationsQueryParameters | ( | sbIDatabaseQuery * | aQuery, |
| sbIPlaybackHistoryEntry * | aEntry | ||
| ) |
Definition at line 1083 of file sbPlaybackHistoryService.cpp.
| 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.
| nsresult sbPlaybackHistoryService::GetPropertyDBID | ( | const nsAString & | aPropertyID, |
| PRUint32 * | aPropertyDBID | ||
| ) |
Definition at line 1254 of file sbPlaybackHistoryService.cpp.
| NS_METHOD sbPlaybackHistoryService::Init | ( | ) |
Definition at line 196 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::InsertPropertyID | ( | const nsAString & | aPropertyID, |
| PRUint32 * | aPropertyDBID | ||
| ) |
Definition at line 1269 of file sbPlaybackHistoryService.cpp.
| nsresult sbPlaybackHistoryService::LoadPropertyIDs | ( | ) |
Definition at line 1312 of file sbPlaybackHistoryService.cpp.
|
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.