sbScriptableFilterResult.h
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25  */
26 
27 #ifndef __SB_SCRIPTABLE_FILTER_RESULTS_H__
28 #define __SB_SCRIPTABLE_FILTER_RESULTS_H__
29 
30 #include "sbXPCScriptableStub.h"
31 
32 #include <sbIScriptableFilterResult.h>
33 
34 #include <nsAutoPtr.h>
35 #include <nsCOMPtr.h>
36 #include <nsIClassInfo.h>
37 #include <nsISecurityCheckedComponent.h>
38 
40 class sbRemotePlayer;
41 
48  public nsIClassInfo,
49  public sbXPCScriptableStub
50 {
51 public:
53  NS_DECL_NSICLASSINFO
54  NS_DECL_NSISECURITYCHECKEDCOMPONENT
55  NS_DECL_SBISCRIPTABLEFILTERRESULT
56 
57  /* nsIXPCScriptable */
58  NS_IMETHOD GetClassName(char * *aClassName);
59  NS_IMETHOD GetScriptableFlags(PRUint32 *aScriptableFlags);
60  NS_IMETHOD Equality( nsIXPConnectWrappedNative *wrapper,
61  JSContext * cx,
62  JSObject * obj,
63  jsval val,
64  PRBool *_retval );
65 
67  sbRemotePlayer* aRemotePlayer );
68 
69 private:
71 
72 protected:
73  nsCOMPtr<sbIFilterableMediaListView> mListView;
74  nsRefPtr<sbRemotePlayer> mPlayer;
75 
76 };
77 
78 #endif // __SB_SCRIPTABLE_FILTER_RESULTS_H__
NS_DECL_ISUPPORTS NS_DECL_NSICLASSINFO NS_DECL_NSISECURITYCHECKEDCOMPONENT NS_DECL_SBISCRIPTABLEFILTERRESULT NS_IMETHOD GetClassName(char **aClassName)
sbScriptableFilterResult(sbIFilterableMediaListView *aMediaListView, sbRemotePlayer *aRemotePlayer)
nsISecurityCheckedComponent
NS_IMETHOD GetScriptableFlags(PRUint32 *aScriptableFlags)
nsRefPtr< sbRemotePlayer > mPlayer
Control the filter settings on a media list.
this _dialogInput val(dateText)
The result of a filtering expression in a library.
NS_IMETHOD Equality(nsIXPConnectWrappedNative *wrapper, JSContext *cx, JSObject *obj, jsval val, PRBool *_retval)
nsCOMPtr< sbIFilterableMediaListView > mListView