sbIMockCDDeviceController.idl
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 #include "nsISupports.idl"
26 interface sbICDDevice;
27 
28 
29 //------------------------------------------------------------------------------
30 //
31 // @interface sbIMockCDDeviceController
32 // @brief This interface provides some methods for controlling the mock CD
33 // device.
34 //
35 //------------------------------------------------------------------------------
36 
37 [scriptable, uuid(B8AA846F-625F-473E-B2B9-F74D5CF448BA)]
39 {
40  //
41  // @brief Mock media disc constants.
42  //
43  const unsigned short MOCK_MEDIA_DISC_MIDNIGHT_ROCK = 0;
44  const unsigned short MOCK_MEDIA_DISC_BABY_ONE_MORE_TIME = 1;
45  const unsigned short MOCK_MEDIA_DISC_U2 = 2;
46  const unsigned short MOCK_MEDIA_DISC_INCREDIBAD = 3;
47  const unsigned short MOCK_MEDIA_DISC_INSTANT_JUNK = 4;
48 
49  //
50  // @brief Call this method to simulate a media inserted event.
51  // @param aMediaDisc The media disc constant defined in this interface.
52  //
53  void insertMedia(in sbICDDevice aCDDevice,
54  in unsigned short aMediaDisc);
55 
56  //
57  // @brief Call this method to simulate a media removed event.
58  //
59  void ejectMedia(in sbICDDevice aCDDevice);
60 
61  //
62  // @brief Notify listeners of eject.
63  //
64  void notifyEject(in sbICDDevice aCDDevice);
65 };
66 
67 
68 %{C++
69 #define SB_MOCK_CDDEVICECONTROLLER_CLASSNAME "Songbird Mock CD Device Service"
70 #define SB_MOCK_CDDEVICECONTROLLER_CID {0x1a0e7b9a, 0x1dd2, 0x11b2, {0x80, 0xa3, 0xdb, 0xd2, 0xc0, 0x47, 0x49, 0x8a}}
71 #define SB_MOCK_CDDEVICECONTROLLER_CONTRACTID "@songbirdnest.com/device/cd/mock-cddevice-service;1"
72 %}
const unsigned short MOCK_MEDIA_DISC_INCREDIBAD
void insertMedia(in sbICDDevice aCDDevice, in unsigned short aMediaDisc)
#define F(a)
var uuid
function E(H, I)
function C(H)
const unsigned short MOCK_MEDIA_DISC_MIDNIGHT_ROCK
const unsigned short MOCK_MEDIA_DISC_INSTANT_JUNK
void notifyEject(in sbICDDevice aCDDevice)
const unsigned short MOCK_MEDIA_DISC_BABY_ONE_MORE_TIME
void ejectMedia(in sbICDDevice aCDDevice)