sbMockFirmwareHandlerURLService.js
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-2009 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 const Cu = Components.utils;
26 const Ci = Components.interfaces;
27 
28 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
29 
30 
31 //------------------------------------------------------------------------------
32 //
33 // @brief Unit test helper service for setting the URL's of the mock firmware
34 // resource file locations.
35 //
36 //------------------------------------------------------------------------------
37 
39 {
40 }
41 
43 {
44  // sbPIMockFirmwareHandlerURLService
45  firmwareURL: "",
46  resetURL: "",
47  releaseNotesURL: "",
48  supportURL: "",
49  registerURL: "",
50 
51  // XPCOM Stuff:
52  classDescription: "Songbird Mock Firmware Handler URL Service",
53  classID: Components.ID("{c0a0ebce-1dd1-11b2-afed-a5eeb1302690}"),
54  contractID: "@songbirdnest.com/mock-firmware-url-handler;1",
55  QueryInterface: XPCOMUtils.generateQI([Ci.sbPIMockFirmwareHandlerURLService]),
56 };
57 
58 //------------------------------------------------------------------------------
59 
60 function NSGetModule(compMgr, fileSpec)
61 {
62  return XPCOMUtils.generateModule([sbMockDeviceFirmwareHandlerURLService]);
63 }
64 
function NSGetModule(compMgr, fileSpec)
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
function sbMockDeviceFirmwareHandlerURLService()
sbOSDControlService prototype QueryInterface
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
sbDeviceFirmwareAutoCheckForUpdate prototype classID