|
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 #ifndef nsXPCOMCID_h__ |
|
7 #define nsXPCOMCID_h__ |
|
8 |
|
9 /** |
|
10 * XPCOM Directory Service Contract ID |
|
11 * The directory service provides ways to obtain file system locations. The |
|
12 * directory service is a singleton. |
|
13 * |
|
14 * This contract supports the nsIDirectoryService and the nsIProperties |
|
15 * interfaces. |
|
16 * |
|
17 */ |
|
18 #define NS_DIRECTORY_SERVICE_CONTRACTID "@mozilla.org/file/directory_service;1" |
|
19 |
|
20 /** |
|
21 * XPCOM File |
|
22 * The file abstraction provides ways to obtain and access files and |
|
23 * directories located on the local system. |
|
24 * |
|
25 * This contract supports the nsIFile interface. |
|
26 * This contract may also support platform specific interfaces such as |
|
27 * nsILocalFileMac on platforms where additional interfaces are required. |
|
28 * |
|
29 */ |
|
30 #define NS_LOCAL_FILE_CONTRACTID "@mozilla.org/file/local;1" |
|
31 |
|
32 /** |
|
33 * XPCOM Category Manager Contract ID |
|
34 * The contract supports the nsICategoryManager interface. The |
|
35 * category manager is a singleton. |
|
36 * The "enumerateCategory" method of nsICategoryManager will return an object |
|
37 * that implements nsIUTF8StringEnumerator. In addition, the enumerator will |
|
38 * return the entries in sorted order (sorted by byte comparison). |
|
39 */ |
|
40 #define NS_CATEGORYMANAGER_CONTRACTID "@mozilla.org/categorymanager;1" |
|
41 |
|
42 /** |
|
43 * XPCOM Properties Object Contract ID |
|
44 * Simple mapping object which supports the nsIProperties interface. |
|
45 */ |
|
46 #define NS_PROPERTIES_CONTRACTID "@mozilla.org/properties;1" |
|
47 |
|
48 /** |
|
49 * XPCOM Array Object ContractID |
|
50 * Simple array implementation which supports the nsIArray and |
|
51 * nsIMutableArray interfaces. |
|
52 */ |
|
53 #define NS_ARRAY_CONTRACTID "@mozilla.org/array;1" |
|
54 |
|
55 /** |
|
56 * Observer Service ContractID |
|
57 * The observer service implements the global nsIObserverService object. |
|
58 * It should be used from the main thread only. |
|
59 */ |
|
60 #define NS_OBSERVERSERVICE_CONTRACTID "@mozilla.org/observer-service;1" |
|
61 |
|
62 /** |
|
63 * IO utilities service contract id. |
|
64 * This guarantees implementation of nsIIOUtil. Usable from any thread. |
|
65 */ |
|
66 #define NS_IOUTIL_CONTRACTID "@mozilla.org/io-util;1" |
|
67 |
|
68 /** |
|
69 * Memory reporter service CID |
|
70 */ |
|
71 #define NS_MEMORY_REPORTER_MANAGER_CONTRACTID "@mozilla.org/memory-reporter-manager;1" |
|
72 |
|
73 /** |
|
74 * Memory info dumper service CID |
|
75 */ |
|
76 #define NS_MEMORY_INFO_DUMPER_CONTRACTID "@mozilla.org/memory-info-dumper;1" |
|
77 |
|
78 /** |
|
79 * Status reporter service CID |
|
80 */ |
|
81 #define NS_STATUS_REPORTER_MANAGER_CONTRACTID "@mozilla.org/status-reporter-manager;1" |
|
82 |
|
83 /** |
|
84 * Cycle collector logger contract id |
|
85 */ |
|
86 #define NS_CYCLE_COLLECTOR_LOGGER_CONTRACTID "@mozilla.org/cycle-collector-logger;1" |
|
87 |
|
88 /** |
|
89 * nsMessageLoop contract id |
|
90 */ |
|
91 #define NS_MESSAGE_LOOP_CONTRACTID "@mozilla.org/message-loop;1" |
|
92 |
|
93 /** |
|
94 * The following are the CIDs and Contract IDs of the nsISupports wrappers for |
|
95 * primative types. |
|
96 */ |
|
97 #define NS_SUPPORTS_ID_CID \ |
|
98 { 0xacf8dc40, 0x4a25, 0x11d3, \ |
|
99 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
100 #define NS_SUPPORTS_ID_CONTRACTID "@mozilla.org/supports-id;1" |
|
101 |
|
102 #define NS_SUPPORTS_CSTRING_CID \ |
|
103 { 0xacf8dc41, 0x4a25, 0x11d3, \ |
|
104 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
105 #define NS_SUPPORTS_CSTRING_CONTRACTID "@mozilla.org/supports-cstring;1" |
|
106 |
|
107 #define NS_SUPPORTS_STRING_CID \ |
|
108 { 0xacf8dc42, 0x4a25, 0x11d3, \ |
|
109 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
110 #define NS_SUPPORTS_STRING_CONTRACTID "@mozilla.org/supports-string;1" |
|
111 |
|
112 #define NS_SUPPORTS_PRBOOL_CID \ |
|
113 { 0xacf8dc43, 0x4a25, 0x11d3, \ |
|
114 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
115 #define NS_SUPPORTS_PRBOOL_CONTRACTID "@mozilla.org/supports-PRBool;1" |
|
116 |
|
117 #define NS_SUPPORTS_PRUINT8_CID \ |
|
118 { 0xacf8dc44, 0x4a25, 0x11d3, \ |
|
119 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
120 #define NS_SUPPORTS_PRUINT8_CONTRACTID "@mozilla.org/supports-PRUint8;1" |
|
121 |
|
122 #define NS_SUPPORTS_PRUINT16_CID \ |
|
123 { 0xacf8dc46, 0x4a25, 0x11d3, \ |
|
124 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
125 #define NS_SUPPORTS_PRUINT16_CONTRACTID "@mozilla.org/supports-PRUint16;1" |
|
126 |
|
127 #define NS_SUPPORTS_PRUINT32_CID \ |
|
128 { 0xacf8dc47, 0x4a25, 0x11d3, \ |
|
129 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
130 #define NS_SUPPORTS_PRUINT32_CONTRACTID "@mozilla.org/supports-PRUint32;1" |
|
131 |
|
132 #define NS_SUPPORTS_PRUINT64_CID \ |
|
133 { 0xacf8dc48, 0x4a25, 0x11d3, \ |
|
134 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
135 #define NS_SUPPORTS_PRUINT64_CONTRACTID "@mozilla.org/supports-PRUint64;1" |
|
136 |
|
137 #define NS_SUPPORTS_PRTIME_CID \ |
|
138 { 0xacf8dc49, 0x4a25, 0x11d3, \ |
|
139 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
140 #define NS_SUPPORTS_PRTIME_CONTRACTID "@mozilla.org/supports-PRTime;1" |
|
141 |
|
142 #define NS_SUPPORTS_CHAR_CID \ |
|
143 { 0xacf8dc4a, 0x4a25, 0x11d3, \ |
|
144 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
145 #define NS_SUPPORTS_CHAR_CONTRACTID "@mozilla.org/supports-char;1" |
|
146 |
|
147 #define NS_SUPPORTS_PRINT16_CID \ |
|
148 { 0xacf8dc4b, 0x4a25, 0x11d3, \ |
|
149 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
150 #define NS_SUPPORTS_PRINT16_CONTRACTID "@mozilla.org/supports-PRInt16;1" |
|
151 |
|
152 #define NS_SUPPORTS_PRINT32_CID \ |
|
153 { 0xacf8dc4c, 0x4a25, 0x11d3, \ |
|
154 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
155 #define NS_SUPPORTS_PRINT32_CONTRACTID "@mozilla.org/supports-PRInt32;1" |
|
156 |
|
157 #define NS_SUPPORTS_PRINT64_CID \ |
|
158 { 0xacf8dc4d, 0x4a25, 0x11d3, \ |
|
159 { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } |
|
160 #define NS_SUPPORTS_PRINT64_CONTRACTID "@mozilla.org/supports-PRInt64;1" |
|
161 |
|
162 #define NS_SUPPORTS_FLOAT_CID \ |
|
163 { 0xcbf86870, 0x4ac0, 0x11d3, \ |
|
164 { 0xba, 0xea, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } } |
|
165 #define NS_SUPPORTS_FLOAT_CONTRACTID "@mozilla.org/supports-float;1" |
|
166 |
|
167 #define NS_SUPPORTS_DOUBLE_CID \ |
|
168 { 0xcbf86871, 0x4ac0, 0x11d3, \ |
|
169 { 0xba, 0xea, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } } |
|
170 #define NS_SUPPORTS_DOUBLE_CONTRACTID "@mozilla.org/supports-double;1" |
|
171 |
|
172 #define NS_SUPPORTS_VOID_CID \ |
|
173 { 0xaf10f3e0, 0x568d, 0x11d3, \ |
|
174 { 0xba, 0xf8, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } } |
|
175 #define NS_SUPPORTS_VOID_CONTRACTID "@mozilla.org/supports-void;1" |
|
176 |
|
177 #define NS_SUPPORTS_INTERFACE_POINTER_CID \ |
|
178 { 0xA99FEBBA, 0x1DD1, 0x11B2, \ |
|
179 { 0xA9, 0x43, 0xB0, 0x23, 0x34, 0xA6, 0xD0, 0x83 } } |
|
180 #define NS_SUPPORTS_INTERFACE_POINTER_CONTRACTID "@mozilla.org/supports-interface-pointer;1" |
|
181 |
|
182 #endif |