sbIMockCDDevice.idl
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-2009 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 
32 #include "nsISupports.idl"
33 
35 interface sbICDTOC;
36 
40 [scriptable, uuid(1A6C307B-2C9B-45A7-9849-0B95C2247020)]
42 {
50  void addTocEntry(in long frameOffset,
51  in PRTime length,
52  in long trackNumber,
53  in short aTrackMode);
54 
61  void initialize(in long firstTrackIndex,
62  in long lastTrackIndex,
63  in long leadOutTrackOffset);
64 };
65 
69 [scriptable, uuid(2ab578be-0e26-4747-a53a-096ae38441dc)]
71 {
81  void initialize(in AString aName,
82  in boolean aReadable,
83  in boolean aWritable,
84  in boolean aDiscInserted,
85  in unsigned long aDiscType,
86  in boolean aEjected);
90  attribute boolean ejected;
91 
96  void setDiscTOC(in sbICDTOC aTOC);
97 };
98 
99 %{C++
100 #define SB_MOCK_CDDEVICE_CLASSNAME "sbMockCDDevice"
101 #define SB_MOCK_CDDEVICE_CID {0xcf0c112e, 0xa2f9, 0x4ca2, {0x90, 0x13, 0xa3, 0xde, 0x6b, 0xcc, 0x6b, 0x85}}
102 #define SB_MOCK_CDDEVICE_CONTRACTID "@songbirdnest.com/Songbird/MockCDDevice;1"
103 
104 #define SB_MOCK_CDTOC_CLASSNAME "sbMockCDTOC"
105 #define SB_MOCK_CDTOC_CID {0x136f8b3a, 0x8747, 0x4a2c, {0x9d, 0xb8, 0x74, 0x1a, 0x6c, 0x79, 0x80, 0x34}}
106 #define SB_MOCK_CDTOC_CONTRACTID "@songbirdnest.com/Songbird/MockCDTOC;1"
107 
108 #define SB_MOCK_CDTOCENTRY_CLASSNAME "sbMockCDTOCEntry"
109 #define SB_MOCK_CDTOCENTRY_CID {0x700a16e0, 0xfc80, 0x4760, {0xa9, 0x57, 0x47, 0x36, 0x27, 0xae, 0x33, 0x71}}
110 #define SB_MOCK_CDTOCENTRY_CONTRACTID "@songbirdnest.com/Songbird/MockCDTOCEntry;1"
111 %}
void setDiscTOC(in sbICDTOC aTOC)
attribute boolean ejected
var uuid
function C(H)
void initialize(in long firstTrackIndex, in long lastTrackIndex, in long leadOutTrackOffset)
_updateCookies aName
void initialize(in AString aName, in boolean aReadable, in boolean aWritable, in boolean aDiscInserted, in unsigned long aDiscType, in boolean aEjected)
void addTocEntry(in long frameOffset, in PRTime length, in long trackNumber, in short aTrackMode)