Back to index

lightning-sunbird  0.9+nobinonly
nsISupportsPrimitives.idl
Go to the documentation of this file.
00001 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1998
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Dan Rosen <dr@netscape.com>
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either of the GNU General Public License Version 2 or later (the "GPL"),
00027  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 /* nsISupports wrappers for single primitive pieces of data. */
00040 
00041 #include "nsISupports.idl"
00042 
00052 [scriptable, uuid(d0d4b136-1dd1-11b2-9371-f0727ef827c0)]
00053 interface nsISupportsPrimitive : nsISupports
00054 {
00055     const unsigned short TYPE_ID                = 1;
00056     const unsigned short TYPE_CSTRING           = 2;
00057     const unsigned short TYPE_STRING            = 3;
00058     const unsigned short TYPE_PRBOOL            = 4;
00059     const unsigned short TYPE_PRUINT8           = 5;
00060     const unsigned short TYPE_PRUINT16          = 6;
00061     const unsigned short TYPE_PRUINT32          = 7;
00062     const unsigned short TYPE_PRUINT64          = 8;
00063     const unsigned short TYPE_PRTIME            = 9;
00064     const unsigned short TYPE_CHAR              = 10;
00065     const unsigned short TYPE_PRINT16           = 11;
00066     const unsigned short TYPE_PRINT32           = 12;
00067     const unsigned short TYPE_PRINT64           = 13;
00068     const unsigned short TYPE_FLOAT             = 14;
00069     const unsigned short TYPE_DOUBLE            = 15;
00070     const unsigned short TYPE_VOID              = 16;
00071     const unsigned short TYPE_INTERFACE_POINTER = 17;
00072 
00073     readonly attribute unsigned short type;
00074 };
00075 
00082 [scriptable, uuid(d18290a0-4a1c-11d3-9890-006008962422)]
00083 interface nsISupportsID : nsISupportsPrimitive
00084 {
00085     attribute nsIDPtr data;
00086     string toString();
00087 };
00088 
00095 [scriptable, uuid(d65ff270-4a1c-11d3-9890-006008962422)]
00096 interface nsISupportsCString : nsISupportsPrimitive
00097 {
00098     attribute ACString data;
00099     string toString();
00100 };
00101 
00108 [scriptable, uuid(d79dc970-4a1c-11d3-9890-006008962422)]
00109 interface nsISupportsString : nsISupportsPrimitive
00110 {
00111     attribute AString data;
00112     wstring toString();
00113 };
00114 
00125 [scriptable, uuid(ddc3b490-4a1c-11d3-9890-006008962422)]
00126 interface nsISupportsPRBool : nsISupportsPrimitive
00127 {
00128     attribute PRBool data;
00129     string toString();
00130 };
00131 
00138 [scriptable, uuid(dec2e4e0-4a1c-11d3-9890-006008962422)]
00139 interface nsISupportsPRUint8 : nsISupportsPrimitive
00140 {
00141     attribute PRUint8 data;
00142     string toString();
00143 };
00144 
00151 [scriptable, uuid(dfacb090-4a1c-11d3-9890-006008962422)]
00152 interface nsISupportsPRUint16 : nsISupportsPrimitive
00153 {
00154     attribute PRUint16 data;
00155     string toString();
00156 };
00157 
00164 [scriptable, uuid(e01dc470-4a1c-11d3-9890-006008962422)]
00165 interface nsISupportsPRUint32 : nsISupportsPrimitive
00166 {
00167     attribute PRUint32 data;
00168     string toString();
00169 };
00170 
00177 [scriptable, uuid(e13567c0-4a1c-11d3-9890-006008962422)]
00178 interface nsISupportsPRUint64 : nsISupportsPrimitive
00179 {
00180     attribute PRUint64 data;
00181     string toString();
00182 };
00183 
00190 [scriptable, uuid(e2563630-4a1c-11d3-9890-006008962422)]
00191 interface nsISupportsPRTime : nsISupportsPrimitive
00192 {
00193     attribute PRTime data;
00194     string toString();
00195 };
00196 
00204 [scriptable, uuid(e2b05e40-4a1c-11d3-9890-006008962422)]
00205 interface nsISupportsChar : nsISupportsPrimitive
00206 {
00207     attribute char data;
00208     string toString();
00209 };
00210 
00217 [scriptable, uuid(e30d94b0-4a1c-11d3-9890-006008962422)]
00218 interface nsISupportsPRInt16 : nsISupportsPrimitive
00219 {
00220     attribute PRInt16 data;
00221     string toString();
00222 };
00223 
00230 [scriptable, uuid(e36c5250-4a1c-11d3-9890-006008962422)]
00231 interface nsISupportsPRInt32 : nsISupportsPrimitive
00232 {
00233     attribute PRInt32 data;
00234     string toString();
00235 };
00236 
00243 [scriptable, uuid(e3cb0ff0-4a1c-11d3-9890-006008962422)]
00244 interface nsISupportsPRInt64 : nsISupportsPrimitive
00245 {
00246     attribute PRInt64 data;
00247     string toString();
00248 };
00249 
00256 [scriptable, uuid(abeaa390-4ac0-11d3-baea-00805f8a5dd7)]
00257 interface nsISupportsFloat : nsISupportsPrimitive
00258 {
00259     attribute float data;
00260     string toString();
00261 };
00262 
00269 [scriptable, uuid(b32523a0-4ac0-11d3-baea-00805f8a5dd7)]
00270 interface nsISupportsDouble : nsISupportsPrimitive
00271 {
00272     attribute double data;
00273     string toString();
00274 };
00275 
00282 [scriptable, uuid(464484f0-568d-11d3-baf8-00805f8a5dd7)]
00283 interface nsISupportsVoid : nsISupportsPrimitive
00284 {
00285     [noscript] attribute voidPtr data;
00286     string toString();
00287 };
00288 
00295 [scriptable, uuid(995ea724-1dd1-11b2-9211-c21bdd3e7ed0)]
00296 interface nsISupportsInterfacePointer : nsISupportsPrimitive
00297 {
00298     attribute nsISupports data;
00299     attribute nsIDPtr dataIID;
00300 
00301     string toString();
00302 };
00303 
00304