27 #include "nsISupports.idl"
46 [scriptable,
uuid(c818767c-7474-436c-8bec-a95ad08cf1e5)]
68 in
long long aTimestamp,
69 in
long long aDuration,
100 in
unsigned long long aCount);
112 in
long long aEndTimestamp);
134 in
unsigned long long aCount);
150 in AString aAnnotationValue,
151 [optional] in
unsigned long aCount);
157 [optional] in
unsigned long aCount);
178 in AString aAnnotationId,
179 in AString aAnnotationValue);
185 in AString aAnnotationId);
190 #define SB_PLAYBACKHISTORYSERVICE_DESCRIPTION \
191 "Songbird Playback History Service"
192 #define SB_PLAYBACKHISTORYSERVICE_CONTRACTID \
193 "@songbirdnest.com/Songbird/PlaybackHistoryService;1"
194 #define SB_PLAYBACKHISTORYSERVICE_CLASSNAME \
195 "sbPlaybackHistoryService"
196 #define SB_PLAYBACKHISTORYSERVICE_CID \
201 { 0x81, 0x8d, 0xa0, 0xda, 0x84, 0xe6, 0x43, 0x65 } \
void removeListener(in sbIPlaybackHistoryListener aListener)
Remove a listener.
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 las...
nsIArray getEntriesByTimestamp(in long long aStartTimestamp, in long long aEndTimestamp)
Get entries between start timestamp and end timestamp. The range is inclusive.
void removeEntryByIndex(in long long aIndex)
Remove an entry from the playback history service using the entry's index. Negative indexes wrap from...
nsIArray getEntriesByAnnotation(in AString aAnnotationId, in AString aAnnotationValue, [optional] in unsigned long aCount)
Get entries by their annotation value.
sbIPlaybackHistoryEntry getEntryByIndex(in long long aIndex)
Get an entry by index. Negative indexes wrap from the last entry.
void addEntry(in sbIPlaybackHistoryEntry aEntry)
Add an entry to the playback history service.
readonly attribute unsigned long long entryCount
Total number of entries in the playback history service.
readonly attribute nsISimpleEnumerator entries
Enumerator of all entries in the playback history service.
nsIArray getEntriesByAnnotations(in sbIPropertyArray aAnnotations, [optional] in unsigned long aCount)
void removeEntries(in nsIArray aEntries)
Remove entries from the playback history service.
void clear()
Clear all entries from the playback history service.
void addEntries(in nsIArray aEntries)
Add entries to the playback history service.
nsresult removeAnnotation(in long long aEntryId, in AString aAnnotationId)
restoreHistoryPrecursor aCount
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 ...
void removeEntry(in sbIPlaybackHistoryEntry aEntry)
Remove an entry from the playback history service.
nsresult addOrUpdateAnnotation(in long long aEntryId, in AString aAnnotationId, in AString aAnnotationValue)
An interface to carry around arrays of nsIProperty instances. Users of this interface should only QI ...
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.
void addListener(in sbIPlaybackHistoryListener aListener)
Add a listener.