1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Dan Rosen <dr@netscape.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* nsISupports wrappers for single primitive pieces of data. */
#include "nsISupports.idl"
/**
* Primitive base interface.
*
* These first three are pointer types and do data copying
* using the nsIMemory. Be careful!
*
* @status FROZEN
*/
[scriptable, uuid(d0d4b136-1dd1-11b2-9371-f0727ef827c0)]
interface nsISupportsPrimitive : nsISupports
{
const unsigned short TYPE_ID = 1;
const unsigned short TYPE_CSTRING = 2;
const unsigned short TYPE_STRING = 3;
const unsigned short TYPE_PRBOOL = 4;
const unsigned short TYPE_PRUINT8 = 5;
const unsigned short TYPE_PRUINT16 = 6;
const unsigned short TYPE_PRUINT32 = 7;
const unsigned short TYPE_PRUINT64 = 8;
const unsigned short TYPE_PRTIME = 9;
const unsigned short TYPE_CHAR = 10;
const unsigned short TYPE_PRINT16 = 11;
const unsigned short TYPE_PRINT32 = 12;
const unsigned short TYPE_PRINT64 = 13;
const unsigned short TYPE_FLOAT = 14;
const unsigned short TYPE_DOUBLE = 15;
const unsigned short TYPE_VOID = 16;
const unsigned short TYPE_INTERFACE_POINTER = 17;
readonly attribute unsigned short type;
};
/**
* Scriptable storage for nsID structures
*
* @status FROZEN
*/
[scriptable, uuid(d18290a0-4a1c-11d3-9890-006008962422)]
interface nsISupportsID : nsISupportsPrimitive
{
attribute nsIDPtr data;
string toString();
};
/**
* Scriptable storage for ASCII strings
*
* @status FROZEN
*/
[scriptable, uuid(d65ff270-4a1c-11d3-9890-006008962422)]
interface nsISupportsCString : nsISupportsPrimitive
{
attribute ACString data;
string toString();
};
/**
* Scriptable storage for Unicode strings
*
* @status FROZEN
*/
[scriptable, uuid(d79dc970-4a1c-11d3-9890-006008962422)]
interface nsISupportsString : nsISupportsPrimitive
{
attribute AString data;
wstring toString();
};
/**
* The rest are truly primitive and are passed by value
*/
/**
* Scriptable storage for booleans
*
* @status FROZEN
*/
[scriptable, uuid(ddc3b490-4a1c-11d3-9890-006008962422)]
interface nsISupportsPRBool : nsISupportsPrimitive
{
attribute PRBool data;
string toString();
};
/**
* Scriptable storage for 8-bit integers
*
* @status FROZEN
*/
[scriptable, uuid(dec2e4e0-4a1c-11d3-9890-006008962422)]
interface nsISupportsPRUint8 : nsISupportsPrimitive
{
attribute PRUint8 data;
string toString();
};
/**
* Scriptable storage for unsigned 16-bit integers
*
* @status FROZEN
*/
[scriptable, uuid(dfacb090-4a1c-11d3-9890-006008962422)]
interface nsISupportsPRUint16 : nsISupportsPrimitive
{
attribute PRUint16 data;
string toString();
};
/**
* Scriptable storage for unsigned 32-bit integers
*
* @status FROZEN
*/
[scriptable, uuid(e01dc470-4a1c-11d3-9890-006008962422)]
interface nsISupportsPRUint32 : nsISupportsPrimitive
{
attribute PRUint32 data;
string toString();
};
/**
* Scriptable storage for 64-bit integers
*
* @status FROZEN
*/
[scriptable, uuid(e13567c0-4a1c-11d3-9890-006008962422)]
interface nsISupportsPRUint64 : nsISupportsPrimitive
{
attribute PRUint64 data;
string toString();
};
/**
* Scriptable storage for NSPR date/time values
*
* @status FROZEN
*/
[scriptable, uuid(e2563630-4a1c-11d3-9890-006008962422)]
interface nsISupportsPRTime : nsISupportsPrimitive
{
attribute PRTime data;
string toString();
};
/**
* Scriptable storage for single character values
* (often used to store an ASCII character)
*
* @status FROZEN
*/
[scriptable, uuid(e2b05e40-4a1c-11d3-9890-006008962422)]
interface nsISupportsChar : nsISupportsPrimitive
{
attribute char data;
string toString();
};
/**
* Scriptable storage for 16-bit integers
*
* @status FROZEN
*/
[scriptable, uuid(e30d94b0-4a1c-11d3-9890-006008962422)]
interface nsISupportsPRInt16 : nsISupportsPrimitive
{
attribute PRInt16 data;
string toString();
};
/**
* Scriptable storage for 32-bit integers
*
* @status FROZEN
*/
[scriptable, uuid(e36c5250-4a1c-11d3-9890-006008962422)]
interface nsISupportsPRInt32 : nsISupportsPrimitive
{
attribute PRInt32 data;
string toString();
};
/**
* Scriptable storage for 64-bit integers
*
* @status FROZEN
*/
[scriptable, uuid(e3cb0ff0-4a1c-11d3-9890-006008962422)]
interface nsISupportsPRInt64 : nsISupportsPrimitive
{
attribute PRInt64 data;
string toString();
};
/**
* Scriptable storage for floating point numbers
*
* @status FROZEN
*/
[scriptable, uuid(abeaa390-4ac0-11d3-baea-00805f8a5dd7)]
interface nsISupportsFloat : nsISupportsPrimitive
{
attribute float data;
string toString();
};
/**
* Scriptable storage for doubles
*
* @status FROZEN
*/
[scriptable, uuid(b32523a0-4ac0-11d3-baea-00805f8a5dd7)]
interface nsISupportsDouble : nsISupportsPrimitive
{
attribute double data;
string toString();
};
/**
* Scriptable storage for generic pointers
*
* @status FROZEN
*/
[scriptable, uuid(464484f0-568d-11d3-baf8-00805f8a5dd7)]
interface nsISupportsVoid : nsISupportsPrimitive
{
[noscript] attribute voidPtr data;
string toString();
};
/**
* Scriptable storage for other XPCOM objects
*
* @status FROZEN
*/
[scriptable, uuid(995ea724-1dd1-11b2-9211-c21bdd3e7ed0)]
interface nsISupportsInterfacePointer : nsISupportsPrimitive
{
attribute nsISupports data;
attribute nsIDPtr dataIID;
string toString();
};
|