Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIServiceManager.idl
3 : */
4 :
5 : #ifndef __gen_nsIServiceManager_h__
6 : #define __gen_nsIServiceManager_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 :
18 : /* starting interface: nsIServiceManager */
19 : #define NS_ISERVICEMANAGER_IID_STR "8bb35ed9-e332-462d-9155-4a002ab5c958"
20 :
21 : #define NS_ISERVICEMANAGER_IID \
22 : {0x8bb35ed9, 0xe332, 0x462d, \
23 : { 0x91, 0x55, 0x4a, 0x00, 0x2a, 0xb5, 0xc9, 0x58 }}
24 :
25 3 : class NS_NO_VTABLE nsIServiceManager : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISERVICEMANAGER_IID)
29 :
30 : /* void getService (in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
31 : NS_IMETHOD GetService(const nsCID & aClass, const nsIID & aIID, void **result) = 0;
32 :
33 : /* void getServiceByContractID (in string aContractID, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
34 : NS_IMETHOD GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result) = 0;
35 :
36 : /* boolean isServiceInstantiated (in nsCIDRef aClass, in nsIIDRef aIID); */
37 : NS_IMETHOD IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval) = 0;
38 :
39 : /* boolean isServiceInstantiatedByContractID (in string aContractID, in nsIIDRef aIID); */
40 : NS_IMETHOD IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIServiceManager, NS_ISERVICEMANAGER_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSISERVICEMANAGER \
48 : NS_IMETHOD GetService(const nsCID & aClass, const nsIID & aIID, void **result) override; \
49 : NS_IMETHOD GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result) override; \
50 : NS_IMETHOD IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval) override; \
51 : NS_IMETHOD IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval) override;
52 :
53 : /* Use this macro when declaring the members of this interface when the
54 : class doesn't implement the interface. This is useful for forwarding. */
55 : #define NS_DECL_NON_VIRTUAL_NSISERVICEMANAGER \
56 : nsresult GetService(const nsCID & aClass, const nsIID & aIID, void **result); \
57 : nsresult GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result); \
58 : nsresult IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval); \
59 : nsresult IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSISERVICEMANAGER(_to) \
63 : NS_IMETHOD GetService(const nsCID & aClass, const nsIID & aIID, void **result) override { return _to GetService(aClass, aIID, result); } \
64 : NS_IMETHOD GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result) override { return _to GetServiceByContractID(aContractID, aIID, result); } \
65 : NS_IMETHOD IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval) override { return _to IsServiceInstantiated(aClass, aIID, _retval); } \
66 : NS_IMETHOD IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval) override { return _to IsServiceInstantiatedByContractID(aContractID, aIID, _retval); }
67 :
68 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
69 : #define NS_FORWARD_SAFE_NSISERVICEMANAGER(_to) \
70 : NS_IMETHOD GetService(const nsCID & aClass, const nsIID & aIID, void **result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetService(aClass, aIID, result); } \
71 : NS_IMETHOD GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceByContractID(aContractID, aIID, result); } \
72 : NS_IMETHOD IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsServiceInstantiated(aClass, aIID, _retval); } \
73 : NS_IMETHOD IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsServiceInstantiatedByContractID(aContractID, aIID, _retval); }
74 :
75 : #if 0
76 : /* Use the code below as a template for the implementation class for this interface. */
77 :
78 : /* Header file */
79 : class nsServiceManager : public nsIServiceManager
80 : {
81 : public:
82 : NS_DECL_ISUPPORTS
83 : NS_DECL_NSISERVICEMANAGER
84 :
85 : nsServiceManager();
86 :
87 : private:
88 : ~nsServiceManager();
89 :
90 : protected:
91 : /* additional members */
92 : };
93 :
94 : /* Implementation file */
95 : NS_IMPL_ISUPPORTS(nsServiceManager, nsIServiceManager)
96 :
97 : nsServiceManager::nsServiceManager()
98 : {
99 : /* member initializers and constructor code */
100 : }
101 :
102 : nsServiceManager::~nsServiceManager()
103 : {
104 : /* destructor code */
105 : }
106 :
107 : /* void getService (in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
108 : NS_IMETHODIMP nsServiceManager::GetService(const nsCID & aClass, const nsIID & aIID, void **result)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* void getServiceByContractID (in string aContractID, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
114 : NS_IMETHODIMP nsServiceManager::GetServiceByContractID(const char * aContractID, const nsIID & aIID, void **result)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* boolean isServiceInstantiated (in nsCIDRef aClass, in nsIIDRef aIID); */
120 : NS_IMETHODIMP nsServiceManager::IsServiceInstantiated(const nsCID & aClass, const nsIID & aIID, bool *_retval)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* boolean isServiceInstantiatedByContractID (in string aContractID, in nsIIDRef aIID); */
126 : NS_IMETHODIMP nsServiceManager::IsServiceInstantiatedByContractID(const char * aContractID, const nsIID & aIID, bool *_retval)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* End of implementation class template. */
132 : #endif
133 :
134 : // Observing xpcom autoregistration. Topics will be 'start' and 'stop'.
135 : #define NS_XPCOM_AUTOREGISTRATION_OBSERVER_ID "xpcom-autoregistration"
136 : #ifdef MOZILLA_INTERNAL_API
137 : #include "nsXPCOM.h"
138 : #include "nsComponentManagerUtils.h"
139 : #include "nsServiceManagerUtils.h"
140 : #endif
141 :
142 : #endif /* __gen_nsIServiceManager_h__ */
|