|
NS_DECL_ISUPPORTS
NS_DECL_SBISCRIPTABLEFILTERRESULT
NS_DECL_SBISECURITYAGGREGATOR
NS_DECL_SBIREMOTELIBRARY
NS_DECL_SBIMEDIALISTENUMERATIONLISTENER
NS_IMETHOD | GetGuid (nsAString &aGuid) |
|
NS_IMETHOD | GetCreated (PRInt64 *aCreated) |
|
NS_IMETHOD | GetUpdated (PRInt64 *aUpdated) |
|
NS_IMETHOD | GetUserEditable (PRBool *aUserEditable) |
|
NS_IMETHOD | GetPropertyIDs (nsIStringEnumerator **aPropertyIDs) |
|
NS_IMETHOD | GetProperties (sbIPropertyArray *aPropertyIDs, sbIPropertyArray **_retval) |
|
NS_IMETHOD | Equals (sbILibraryResource *aOtherLibraryResource, PRBool *_retval) |
|
NS_IMETHOD | GetProperty (const nsAString &aName, nsAString &_retval) |
|
NS_IMETHOD | SetProperties (sbIPropertyArray *aProperties) |
|
| sbRemoteLibraryBase (sbRemotePlayer *aRemotePlayer) |
|
NS_IMETHOD | SetProperty (const nsAString &aID, const nsAString &aValue) |
|
NS_IMETHOD | GetClassName (char **aClassName) |
|
NS_IMETHOD | GetScriptableFlags (PRUint32 *aScriptableFlags) |
|
NS_IMETHOD | NewResolve (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval id, PRUint32 flags, JSObject **objp, PRBool *_retval) |
|
NS_IMETHOD | GetProperty (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval id, jsval *vp, PRBool *_retval) |
|
virtual already_AddRefed
< sbIMediaItem > | GetMediaItem () |
|
virtual already_AddRefed
< sbIMediaList > | GetMediaList () |
|
sbIMediaItem | createMediaItem (in AString aURL) |
| Create a media item from a URL. More...
|
|
sbIRemoteMediaList | createSimpleMediaList (in AString aName, [optional] in AString aSiteID) |
| Create a simple media list. More...
|
|
void | createMediaListFromURL (in AString aName, in AString aURL, [optional] in sbICreateMediaListCallback aCallback, [optional] in AString aSiteID) |
| Create a media list from an exising playlist file. More...
|
|
void | connectToDefaultLibrary (in AString aLibName) |
| Connect the remote library to the main or web library. More...
|
|
sbIRemoteMediaList | getMediaListBySiteID (in AString aSiteID) |
| Get the media list with the given siteID. More...
|
|
sbIMediaListView | getView () |
|
sbIMediaItem | getItemByGuid (in AString aGuid) |
| Get a media item in the list by guid. More...
|
|
sbIMediaItem | getItemByIndex (in unsigned long aIndex) |
| Get a media item in the list by index. More...
|
|
unsigned short | getListContentType () |
| Get the content type of the media list. More...
|
|
void | enumerateAllItems (in sbIMediaListEnumerationListener aEnumerationListener, [optional] in unsigned short aEnumerationType) |
| Enumerate all items in the list. More...
|
|
void | enumerateItemsByProperty (in AString aPropertyID, in AString aPropertyValue, in sbIMediaListEnumerationListener aEnumerationListener, [optional] in unsigned short aEnumerationType) |
| Enumerate the media items in the list that match a given property ID and value. More...
|
|
void | enumerateItemsByProperties (in sbIPropertyArray aProperties, in sbIMediaListEnumerationListener aEnumerationListener, [optional] in unsigned short aEnumerationType) |
| Enumerate the media items that match a list of property IDs and values. More...
|
|
nsIArray | getItemsByProperty (in AString aPropertyID, in AString aPropertyValue) |
|
PRUint32 | getItemCountByProperty (in AString aPropertyID, in AString aPropertyValue) |
|
nsIArray | getItemsByProperties (in sbIPropertyArray aProperties) |
|
unsigned long | indexOf (in sbIMediaItem aMediaItem, [optional] in unsigned long aStartFrom) |
| Get the first index of a media item in the list. More...
|
|
unsigned long | lastIndexOf (in sbIMediaItem aMediaItem, in unsigned long aStartFrom) |
| Get the last index of a media item int he list. More...
|
|
boolean | contains (in sbIMediaItem aMediaItem) |
| Check if the list contains a media item. More...
|
|
void | add (in sbIMediaItem aMediaItem) |
| Add a media item to this list. More...
|
|
sbIMediaItem | addItem (in sbIMediaItem aMediaItem) |
| addItem a media item to this list More...
|
|
void | addAll (in sbIMediaList aMediaList) |
| Add the contents of a media list to this list. More...
|
|
void | addSome (in nsISimpleEnumerator aMediaItems) |
| Adds media items suppled by the provided enumerator NOTE: This method is now deprecated. More...
|
|
void | addMediaItems (in nsISimpleEnumerator aMediaItems, in sbIAddMediaItemsListener aListener, in boolean aAsync) |
| Adds media items suppled by the provided enumerator. More...
|
|
void | remove (in sbIMediaItem aMediaItem) |
| Remove the first occurrence of the given media item from the list. More...
|
|
void | removeByIndex (in unsigned long aIndex) |
| Remove a media item from the list by index. More...
|
|
void | removeSome (in nsISimpleEnumerator aMediaItems) |
| Removed media items suppled by the provided enumerator. More...
|
|
void | clear () |
| Clear the list. More...
|
|
void | addListener (in sbIMediaListListener aListener, [optional] in boolean aOwnsWeak, [optional] in unsigned long aFlags, [optional] in sbIPropertyArray aPropertyFilter) |
| Add a listener to this media list. More...
|
|
void | removeListener (in sbIMediaListListener aListener) |
| Remove a listener from this media list. More...
|
|
sbIMediaListView | createView ([optional] in sbIMediaListViewState aState) |
| Create a new, raw view for this list. This is generally not the function that you want to use for making views as it will create a completely raw view, for example lacking any filterConstraint. Please consider using sbLibraryUtils.createStandardMediaListView and proceed carefully if you use this method instead. More...
|
|
void | runInBatchMode (in sbIMediaListBatchCallback aCallback, [optional] in nsISupports aUserData) |
| Runs the given callback with the given user data in batch mode. More...
|
|
nsIStringEnumerator | getDistinctValuesForProperty (in AString aPropertyID) |
|
void | testIsURIAvailable (in nsIObserver aObserver) |
| Test if this media item is available for playback. More...
|
|
nsIChannel | openInputStreamAsync (in nsIStreamListener aListener, in nsISupports aContext) |
| Asynchronously get an input stream to the content of the media item. More...
|
|
nsIInputStream | openInputStream () |
| Synchronously get an input stream to the content of the media item. More...
|
|
nsIOutputStream | openOutputStream () |
| Get an output stream to the content of the media item. More...
|
|
AString | toString () |
| Get a string representation of the media item, useful for debugging. More...
|
|
AString | getProperty (in AString aID) |
| Get the value of a property of this resource. More...
|
|
void | setProperty (in AString aID, in AString aValue) |
| Set the value of a property on this resource. More...
|
|
sbIPropertyArray | getProperties ([optional] in sbIPropertyArray aPropertyIDs) |
| Get properties from this resource in a property array. More...
|
|
void | setProperties (in sbIPropertyArray aProperties) |
| Sets the properties and values in the supplied property array to this resource. This works as if you called setProperty on each property in the array. More...
|
|
boolean | equals (in sbILibraryResource aOtherLibraryResource) |
| Tests the equality of two library resources. More...
|
|
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...
|
|
virtual | ~sbXPCScriptableStub () |
|
NS_IMETHOD | PreCreate (nsISupports *nativeObj, JSContext *cx, JSObject *globalObj, JSObject **parentObj) |
|
NS_IMETHOD | Create (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj) |
|
NS_IMETHOD | PostCreate (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj) |
|
NS_IMETHOD | AddProperty (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval id, jsval *vp, PRBool *_retval) |
|
NS_IMETHOD | DelProperty (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval id, jsval *vp, PRBool *_retval) |
|
NS_IMETHOD | GetProperty (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval id, jsval *vp, PRBool *_retval) |
|
NS_IMETHOD | SetProperty (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval id, jsval *vp, PRBool *_retval) |
|
NS_IMETHOD | Enumerate (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, PRBool *_retval) |
|
NS_IMETHOD | NewEnumerate (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, PRUint32 enum_op, jsval *statep, jsid *idp, PRBool *_retval) |
|
NS_IMETHOD | NewResolve (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval id, PRUint32 flags, JSObject **objp, PRBool *_retval) |
|
NS_IMETHOD | Convert (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, PRUint32 type, jsval *vp, PRBool *_retval) |
|
NS_IMETHOD | Finalize (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj) |
|
NS_IMETHOD | CheckAccess (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval id, PRUint32 mode, jsval *vp, PRBool *_retval) |
|
NS_IMETHOD | Call (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, PRUint32 argc, jsval *argv, jsval *vp, PRBool *_retval) |
|
NS_IMETHOD | Construct (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, PRUint32 argc, jsval *argv, jsval *vp, PRBool *_retval) |
|
NS_IMETHOD | HasInstance (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval val, PRBool *bp, PRBool *_retval) |
|
NS_IMETHOD | Trace (nsIXPConnectWrappedNative *wrapper, JSTracer *trc, JSObject *obj) |
|
NS_IMETHOD | Equality (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval val, PRBool *_retval) |
|
NS_IMETHOD | OuterObject (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, JSObject **_retval) |
|
NS_IMETHOD | InnerObject (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, JSObject **_retval) |
|
NS_IMETHOD | PostCreatePrototype (JSContext *cx, JSObject *proto) |
|