27 #ifndef __SB_REMOTE_LIBRARYBASE_H__
28 #define __SB_REMOTE_LIBRARYBASE_H__
38 #include <nsISecurityCheckedComponent.h>
39 #include <nsIXPCScriptable.h>
40 #include <sbILibrary.h>
41 #include <sbILibraryResource.h>
42 #include <sbIMediaList.h>
43 #include <sbIMediaListListener.h>
44 #include <sbIMediaListView.h>
45 #include <sbIRemoteLibrary.h>
46 #include <sbIRemoteMediaList.h>
47 #include <sbIScriptableFilterResult.h>
48 #include <sbISecurityMixin.h>
49 #include <sbISecurityAggregator.h>
52 #include <nsAutoPtr.h>
53 #include <nsCOMArray.h>
55 #include <nsCOMArray.h>
57 #include <nsStringGlue.h>
60 extern PRLogModuleInfo *gRemoteLibraryLog;
63 #define LOG_LIB(args) PR_LOG(gRemoteLibraryLog, PR_LOG_WARN, args)
64 #define TRACE_LIB(args) PR_LOG(gRemoteLibraryLog, PR_LOG_DEBUG, args)
85 NS_DECL_SBISCRIPTABLEFILTERRESULT
86 NS_DECL_SBISECURITYAGGREGATOR
87 NS_DECL_SBIREMOTELIBRARY
88 NS_DECL_SBIMEDIALISTENUMERATIONLISTENER
101 NS_IMETHOD SetProperty( const nsAString& aID, const nsAString&
aValue );
106 NS_IMETHOD
NewResolve(nsIXPConnectWrappedNative *wrapper,
113 NS_IMETHOD
GetProperty(nsIXPConnectWrappedNative *wrapper,
126 nsAString &aLibraryGUID );
157 #endif // __SB_REMOTE_LIBRARYBASE_H__
virtual already_AddRefed< sbIMediaItem > GetMediaItem()
already_AddRefed< sbIRemoteMediaList > GetMediaListBySiteID(const nsAString &aSiteID)
sbDeviceFirmwareAutoCheckForUpdate prototype flags
PRBool mIgnoreHiddenPlaylists
nsISecurityCheckedComponent
NS_IMETHOD GetProperty(const nsAString &aName, nsAString &_retval)
static nsresult GetLibraryGUID(const nsAString &aLibraryID, nsAString &aLibraryGUID)
NS_IMETHOD SetProperty(const nsAString &aID, const nsAString &aValue)
NS_IMETHOD GetScriptableFlags(PRUint32 *aScriptableFlags)
NS_IMETHOD NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval id, PRUint32 flags, JSObject **objp, PRBool *_retval)
already_AddRefed< sbIMediaItem > FindMediaItemWithMatchingScope(const nsCOMArray< sbIMediaItem > &aMediaItems)
A marker interface for objects that aggregate the security mixin.
nsRefPtr< sbRemoteMediaListBase > mRemMediaList
nsCOMPtr< nsISecurityCheckedComponent > mSecurityMixin
An interface to control a media library from remote web pages.
The result of a filtering expression in a library.
Media library abstraction.
nsCOMPtr< sbILibrary > mLibrary
NS_IMETHOD GetClassName(char **aClassName)
virtual already_AddRefed< sbIMediaList > GetMediaList()
nsCOMArray< sbIMediaItem > mEnumerationArray
nsRefPtr< sbRemotePlayer > mRemotePlayer
#define NS_FORWARD_SAFE_SBILIBRARYRESOURCE_NO_SETPROPERTY(_to)
virtual nsresult InitInternalMediaList()=0
nsresult mEnumerationResult