sbScriptableFilter Class Reference

#include <sbScriptableFilter.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSICLASSINFO
NS_DECL_NSISECURITYCHECKEDCOMPONENT
NS_DECL_NSISTRINGENUMERATOR
NS_IMETHOD 
GetClassName (char **aClassName)
 
NS_IMETHOD GetScriptableFlags (PRUint32 *aScriptableFlags)
 
NS_IMETHOD GetProperty (nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval id, jsval *vp, 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)
 
 sbScriptableFilter (sbIFilterableMediaListView *aMediaListView, const nsAString &aPropertyName, sbRemotePlayer *aPlayer)
 
nsresult AppendProperty (const nsAString &aName, const nsAString &aValue)
 
- Public Member Functions inherited from sbXPCScriptableStub
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)
 

Protected Member Functions

nsresult ReadEnumerator ()
 

Protected Attributes

nsCOMPtr
< sbIFilterableMediaListView
mListView
 
nsString mPropertyName
 
nsStringArray mStrings
 
PRInt32 mEnumeratorIndex
 
PRBool mHasProps
 
nsRefPtr< sbRemotePlayermPlayer
 

Friends

class sbScriptableFilterResult
 

Detailed Description

Class reflected into JavaScript as filters on the library Shows up as library.artists etc. (so the user can do library.artists["Bob"])

Definition at line 48 of file sbScriptableFilter.h.

Constructor & Destructor Documentation

sbScriptableFilter::sbScriptableFilter ( sbIFilterableMediaListView aMediaListView,
const nsAString &  aPropertyName,
sbRemotePlayer aPlayer 
)

Member Function Documentation

nsresult sbScriptableFilter::AppendProperty ( const nsAString &  aName,
const nsAString &  aValue 
)

Add a property to this filter @see sbIPropertyArray::AppendProperty

NS_IMETHODIMP sbScriptableFilter::GetClassName ( char **  aClassName)

Definition at line 181 of file sbScriptableFilter.cpp.

NS_IMETHODIMP sbScriptableFilter::GetProperty ( nsIXPConnectWrappedNative *  wrapper,
JSContext *  cx,
JSObject *  obj,
jsval  id,
jsval *  vp,
PRBool *  _retval 
)

Definition at line 208 of file sbScriptableFilter.cpp.

Here is the call graph for this function:

NS_IMETHODIMP sbScriptableFilter::GetScriptableFlags ( PRUint32 *  aScriptableFlags)

Definition at line 191 of file sbScriptableFilter.cpp.

NS_IMETHODIMP sbScriptableFilter::NewEnumerate ( nsIXPConnectWrappedNative *  wrapper,
JSContext *  cx,
JSObject *  obj,
PRUint32  enum_op,
jsval *  statep,
jsid *  idp,
PRBool *  _retval 
)

Definition at line 309 of file sbScriptableFilter.cpp.

Here is the call graph for this function:

NS_IMETHODIMP sbScriptableFilter::NewResolve ( nsIXPConnectWrappedNative *  wrapper,
JSContext *  cx,
JSObject *  obj,
jsval  id,
PRUint32  flags,
JSObject **  objp,
PRBool *  _retval 
)

Definition at line 401 of file sbScriptableFilter.cpp.

Here is the call graph for this function:

nsresult sbScriptableFilter::ReadEnumerator ( )
protected

Definition at line 88 of file sbScriptableFilter.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class sbScriptableFilterResult
friend

Definition at line 82 of file sbScriptableFilter.h.

Member Data Documentation

PRInt32 sbScriptableFilter::mEnumeratorIndex
protected

Definition at line 92 of file sbScriptableFilter.h.

PRBool sbScriptableFilter::mHasProps
protected

Definition at line 93 of file sbScriptableFilter.h.

nsCOMPtr<sbIFilterableMediaListView> sbScriptableFilter::mListView
protected

Definition at line 89 of file sbScriptableFilter.h.

nsRefPtr<sbRemotePlayer> sbScriptableFilter::mPlayer
protected

Definition at line 94 of file sbScriptableFilter.h.

nsString sbScriptableFilter::mPropertyName
protected

Definition at line 90 of file sbScriptableFilter.h.

nsStringArray sbScriptableFilter::mStrings
protected

Definition at line 91 of file sbScriptableFilter.h.


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