nsXPCOMCID.h 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4. *
  5. * The contents of this file are subject to the Mozilla Public License Version
  6. * 1.1 (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. * http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. *
  15. * The Original Code is mozilla.org code.
  16. *
  17. * The Initial Developer of the Original Code is
  18. * Netscape Communications Corporation.
  19. * Portions created by the Initial Developer are Copyright (C) 1998
  20. * the Initial Developer. All Rights Reserved.
  21. *
  22. * Contributor(s):
  23. *
  24. * Alternatively, the contents of this file may be used under the terms of
  25. * either of the GNU General Public License Version 2 or later (the "GPL"),
  26. * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27. * in which case the provisions of the GPL or the LGPL are applicable instead
  28. * of those above. If you wish to allow use of your version of this file only
  29. * under the terms of either the GPL or the LGPL, and not to allow others to
  30. * use your version of this file under the terms of the MPL, indicate your
  31. * decision by deleting the provisions above and replace them with the notice
  32. * and other provisions required by the GPL or the LGPL. If you do not delete
  33. * the provisions above, a recipient may use your version of this file under
  34. * the terms of any one of the MPL, the GPL or the LGPL.
  35. *
  36. * ***** END LICENSE BLOCK ***** */
  37. #ifndef nsXPCOMCID_h__
  38. #define nsXPCOMCID_h__
  39. /**
  40. * XPCOM Directory Service Contract ID
  41. * The directory service provides ways to obtain file system locations. The
  42. * directory service is a singleton.
  43. *
  44. * This contract supports the nsIDirectoryService and the nsIProperties
  45. * interfaces.
  46. *
  47. */
  48. #define NS_DIRECTORY_SERVICE_CONTRACTID "@mozilla.org/file/directory_service;1"
  49. /**
  50. * XPCOM File
  51. * The file abstraction provides ways to obtain and access files and
  52. * directories located on the local system.
  53. *
  54. * This contract supports the nsIFile interface and the nsILocalFile interface.
  55. * This contract may also support platform specific interfaces such as
  56. * nsILocalFileMac on platforms where additional interfaces are required.
  57. *
  58. */
  59. #define NS_LOCAL_FILE_CONTRACTID "@mozilla.org/file/local;1"
  60. /**
  61. * XPCOM Category Manager Contract ID
  62. * The contract supports the nsICategoryManager interface. The
  63. * category manager is a singleton.
  64. * The "enumerateCategory" method of nsICategoryManager will return an object
  65. * that implements nsIUTF8StringEnumerator. In addition, the enumerator will
  66. * return the entries in sorted order (sorted by byte comparison).
  67. */
  68. #define NS_CATEGORYMANAGER_CONTRACTID "@mozilla.org/categorymanager;1"
  69. /**
  70. * XPCOM Properties Object Contract ID
  71. * Simple mapping object which supports the nsIProperties interface.
  72. */
  73. #define NS_PROPERTIES_CONTRACTID "@mozilla.org/properties;1"
  74. /**
  75. * XPCOM Array Object ContractID
  76. * Simple array implementation which supports the nsIArray and
  77. * nsIMutableArray interfaces.
  78. */
  79. #define NS_ARRAY_CONTRACTID "@mozilla.org/array;1"
  80. /**
  81. * The following are the CIDs and Contract IDs of the nsISupports wrappers for
  82. * primative types.
  83. */
  84. #define NS_SUPPORTS_ID_CID \
  85. { 0xacf8dc40, 0x4a25, 0x11d3, \
  86. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  87. #define NS_SUPPORTS_ID_CONTRACTID "@mozilla.org/supports-id;1"
  88. #define NS_SUPPORTS_CSTRING_CID \
  89. { 0xacf8dc41, 0x4a25, 0x11d3, \
  90. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  91. #define NS_SUPPORTS_CSTRING_CONTRACTID "@mozilla.org/supports-cstring;1"
  92. #define NS_SUPPORTS_STRING_CID \
  93. { 0xacf8dc42, 0x4a25, 0x11d3, \
  94. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  95. #define NS_SUPPORTS_STRING_CONTRACTID "@mozilla.org/supports-string;1"
  96. #define NS_SUPPORTS_PRBOOL_CID \
  97. { 0xacf8dc43, 0x4a25, 0x11d3, \
  98. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  99. #define NS_SUPPORTS_PRBOOL_CONTRACTID "@mozilla.org/supports-PRBool;1"
  100. #define NS_SUPPORTS_PRUINT8_CID \
  101. { 0xacf8dc44, 0x4a25, 0x11d3, \
  102. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  103. #define NS_SUPPORTS_PRUINT8_CONTRACTID "@mozilla.org/supports-PRUint8;1"
  104. #define NS_SUPPORTS_PRUINT16_CID \
  105. { 0xacf8dc46, 0x4a25, 0x11d3, \
  106. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  107. #define NS_SUPPORTS_PRUINT16_CONTRACTID "@mozilla.org/supports-PRUint16;1"
  108. #define NS_SUPPORTS_PRUINT32_CID \
  109. { 0xacf8dc47, 0x4a25, 0x11d3, \
  110. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  111. #define NS_SUPPORTS_PRUINT32_CONTRACTID "@mozilla.org/supports-PRUint32;1"
  112. #define NS_SUPPORTS_PRUINT64_CID \
  113. { 0xacf8dc48, 0x4a25, 0x11d3, \
  114. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  115. #define NS_SUPPORTS_PRUINT64_CONTRACTID "@mozilla.org/supports-PRUint64;1"
  116. #define NS_SUPPORTS_PRTIME_CID \
  117. { 0xacf8dc49, 0x4a25, 0x11d3, \
  118. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  119. #define NS_SUPPORTS_PRTIME_CONTRACTID "@mozilla.org/supports-PRTime;1"
  120. #define NS_SUPPORTS_CHAR_CID \
  121. { 0xacf8dc4a, 0x4a25, 0x11d3, \
  122. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  123. #define NS_SUPPORTS_CHAR_CONTRACTID "@mozilla.org/supports-char;1"
  124. #define NS_SUPPORTS_PRINT16_CID \
  125. { 0xacf8dc4b, 0x4a25, 0x11d3, \
  126. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  127. #define NS_SUPPORTS_PRINT16_CONTRACTID "@mozilla.org/supports-PRInt16;1"
  128. #define NS_SUPPORTS_PRINT32_CID \
  129. { 0xacf8dc4c, 0x4a25, 0x11d3, \
  130. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  131. #define NS_SUPPORTS_PRINT32_CONTRACTID "@mozilla.org/supports-PRInt32;1"
  132. #define NS_SUPPORTS_PRINT64_CID \
  133. { 0xacf8dc4d, 0x4a25, 0x11d3, \
  134. { 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  135. #define NS_SUPPORTS_PRINT64_CONTRACTID "@mozilla.org/supports-PRInt64;1"
  136. #define NS_SUPPORTS_FLOAT_CID \
  137. { 0xcbf86870, 0x4ac0, 0x11d3, \
  138. { 0xba, 0xea, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } }
  139. #define NS_SUPPORTS_FLOAT_CONTRACTID "@mozilla.org/supports-float;1"
  140. #define NS_SUPPORTS_DOUBLE_CID \
  141. { 0xcbf86871, 0x4ac0, 0x11d3, \
  142. { 0xba, 0xea, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } }
  143. #define NS_SUPPORTS_DOUBLE_CONTRACTID "@mozilla.org/supports-double;1"
  144. #define NS_SUPPORTS_VOID_CID \
  145. { 0xaf10f3e0, 0x568d, 0x11d3, \
  146. { 0xba, 0xf8, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } }
  147. #define NS_SUPPORTS_VOID_CONTRACTID "@mozilla.org/supports-void;1"
  148. #define NS_SUPPORTS_INTERFACE_POINTER_CID \
  149. { 0xA99FEBBA, 0x1DD1, 0x11B2, \
  150. { 0xA9, 0x43, 0xB0, 0x23, 0x34, 0xA6, 0xD0, 0x83 } }
  151. #define NS_SUPPORTS_INTERFACE_POINTER_CONTRACTID "@mozilla.org/supports-interface-pointer;1"
  152. /**
  153. * nsHashPropertyBag impl of nsIWritablePropertyBag
  154. */
  155. #define NS_HASH_PROPERTY_BAG_CID \
  156. { 0x678c50b8, 0x6bcb, 0x4ad0, \
  157. { 0xb9, 0xb8, 0xc8, 0x11, 0x75, 0x95, 0x51, 0x99 } }
  158. #define NS_HASH_PROPERTY_BAG_CONTRACTID "@mozilla.org/hash-property-bag;1"
  159. #endif