sbDeviceFirmwareUpdate.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 
25 #ifndef __SB_DEVICEFIRMWAREUPDATE_H__
26 #define __SB_DEVICEFIRMWAREUPDATE_H__
27 
28 #include <sbIDeviceFirmwareUpdate.h>
29 
30 #include <nsIClassInfo.h>
31 #include <nsIFile.h>
32 
33 #include <nsCOMPtr.h>
34 #include <nsStringGlue.h>
35 #include <prmon.h>
36 
38  public nsIClassInfo
39 {
40 public:
42  NS_DECL_NSICLASSINFO
43  NS_DECL_SBIDEVICEFIRMWAREUPDATE
44 
46 
47 private:
48  virtual ~sbDeviceFirmwareUpdate();
49 
50 protected:
51  PRMonitor* mMonitor;
52 
53  nsCOMPtr<nsIFile> mFirmwareImageFile;
55  PRUint32 mFirmwareVersion;
56 };
57 
58 #define SB_DEVICEFIRMWAREUPDATE_DESCRIPTION \
59  "Songbird Device Firmware Update"
60 #define SB_DEVICEFIRMWAREUPDATE_CONTRACTID \
61  "@songbirdnest.com/Songbird/Device/Firmware/Update;1"
62 #define SB_DEVICEFIRMWAREUPDATE_CLASSNAME \
63  "Songbird Device Firmware Update"
64 #define SB_DEVICEFIRMWAREUPDATE_CID \
65 { /* {c5dc91bb-1b27-431e-8f93-0112022a9548} */ \
66  0xc5dc91bb, 0x1b27, 0x431e, \
67  { 0x8f, 0x93, 0x1, 0x12, 0x2, 0x2a, 0x95, 0x48 } }
68 
69 #endif /*__SB_DEVICEFIRMWAREUPDATE_H__*/
NS_DECL_ISUPPORTS NS_DECL_NSICLASSINFO NS_DECL_SBIDEVICEFIRMWAREUPDATE sbDeviceFirmwareUpdate()
nsCOMPtr< nsIFile > mFirmwareImageFile