sbMediacoreFactoryWrapper.h
Go to the documentation of this file.
1 /*
2  *=BEGIN SONGBIRD GPL
3  *
4  * This file is part of the Songbird web player.
5  *
6  * Copyright(c) 2005-2010 POTI, Inc.
7  * http://www.songbirdnest.com
8  *
9  * This file may be licensed under the terms of of the
10  * GNU General Public License Version 2 (the ``GPL'').
11  *
12  * Software distributed under the License is distributed
13  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
14  * express or implied. See the GPL for the specific language
15  * governing rights and limitations.
16  *
17  * You should have received a copy of the GPL along with this
18  * program. If not, go to http://www.gnu.org/licenses/gpl.html
19  * or write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *=END SONGBIRD GPL
23  */
24 
30 #ifndef __SB_MEDIACOREFACTORYWRAPPER_H__
31 #define __SB_MEDIACOREFACTORYWRAPPER_H__
32 
33 #include <sbIMediacoreCapabilities.h>
34 #include <sbIMediacoreFactoryWrapper.h>
35 
36 #include "sbBaseMediacoreFactory.h"
37 
38 #include <nsCOMPtr.h>
39 
42 {
43 public:
44  NS_DECL_ISUPPORTS_INHERITED
45  NS_DECL_SBIMEDIACOREFACTORYWRAPPER
46 
47  NS_FORWARD_SBIMEDIACOREFACTORY(sbBaseMediacoreFactory::)
48 
50 
51  nsresult Init();
52 
53  virtual nsresult OnInitBaseMediacoreFactory();
54  virtual nsresult OnGetCapabilities(sbIMediacoreCapabilities **aCapabilities);
55  virtual nsresult OnCreate(const nsAString &aInstanceName,
56  sbIMediacore **_retval);
57 
58 protected:
60 
61  nsCOMPtr<sbIMediacoreCapabilities> mCapabilities;
62  nsCOMPtr<sbIMediacoreFactoryWrapperListener> mListener;
63 };
64 
65 
66 
67 #endif /* __SB_MEDIACOREFACTORYWRAPPER_H__ */
nsCOMPtr< sbIMediacoreCapabilities > mCapabilities
virtual nsresult OnGetCapabilities(sbIMediacoreCapabilities **aCapabilities)
Songbird Base Mediacore Factory Definition.
Factory Wrapper Interface for use by JavaScript implementations of Mediacores.
virtual nsresult OnCreate(const nsAString &aInstanceName, sbIMediacore **_retval)
nsCOMPtr< sbIMediacoreFactoryWrapperListener > mListener
NS_DECL_ISUPPORTS_INHERITED NS_DECL_SBIMEDIACOREFACTORYWRAPPER sbMediacoreFactoryWrapper()