Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsINetworkInfoService.idl
3 : */
4 :
5 : #ifndef __gen_nsINetworkInfoService_h__
6 : #define __gen_nsINetworkInfoService_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: nsIListNetworkAddressesListener */
19 : #define NS_ILISTNETWORKADDRESSESLISTENER_IID_STR "c4bdaac1-3ab1-4fdb-9a16-17cbed794603"
20 :
21 : #define NS_ILISTNETWORKADDRESSESLISTENER_IID \
22 : {0xc4bdaac1, 0x3ab1, 0x4fdb, \
23 : { 0x9a, 0x16, 0x17, 0xcb, 0xed, 0x79, 0x46, 0x03 }}
24 :
25 0 : class NS_NO_VTABLE nsIListNetworkAddressesListener : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILISTNETWORKADDRESSESLISTENER_IID)
29 :
30 : /* void onListedNetworkAddresses ([array, size_is (aAddressArraySize)] in string aAddressArray, in unsigned long aAddressArraySize); */
31 : NS_IMETHOD OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize) = 0;
32 :
33 : /* void onListNetworkAddressesFailed (); */
34 : NS_IMETHOD OnListNetworkAddressesFailed(void) = 0;
35 :
36 : };
37 :
38 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIListNetworkAddressesListener, NS_ILISTNETWORKADDRESSESLISTENER_IID)
39 :
40 : /* Use this macro when declaring classes that implement this interface. */
41 : #define NS_DECL_NSILISTNETWORKADDRESSESLISTENER \
42 : NS_IMETHOD OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize) override; \
43 : NS_IMETHOD OnListNetworkAddressesFailed(void) override;
44 :
45 : /* Use this macro when declaring the members of this interface when the
46 : class doesn't implement the interface. This is useful for forwarding. */
47 : #define NS_DECL_NON_VIRTUAL_NSILISTNETWORKADDRESSESLISTENER \
48 : nsresult OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize); \
49 : nsresult OnListNetworkAddressesFailed(void);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSILISTNETWORKADDRESSESLISTENER(_to) \
53 : NS_IMETHOD OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize) override { return _to OnListedNetworkAddresses(aAddressArray, aAddressArraySize); } \
54 : NS_IMETHOD OnListNetworkAddressesFailed(void) override { return _to OnListNetworkAddressesFailed(); }
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
57 : #define NS_FORWARD_SAFE_NSILISTNETWORKADDRESSESLISTENER(_to) \
58 : NS_IMETHOD OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnListedNetworkAddresses(aAddressArray, aAddressArraySize); } \
59 : NS_IMETHOD OnListNetworkAddressesFailed(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnListNetworkAddressesFailed(); }
60 :
61 : #if 0
62 : /* Use the code below as a template for the implementation class for this interface. */
63 :
64 : /* Header file */
65 : class nsListNetworkAddressesListener : public nsIListNetworkAddressesListener
66 : {
67 : public:
68 : NS_DECL_ISUPPORTS
69 : NS_DECL_NSILISTNETWORKADDRESSESLISTENER
70 :
71 : nsListNetworkAddressesListener();
72 :
73 : private:
74 : ~nsListNetworkAddressesListener();
75 :
76 : protected:
77 : /* additional members */
78 : };
79 :
80 : /* Implementation file */
81 : NS_IMPL_ISUPPORTS(nsListNetworkAddressesListener, nsIListNetworkAddressesListener)
82 :
83 : nsListNetworkAddressesListener::nsListNetworkAddressesListener()
84 : {
85 : /* member initializers and constructor code */
86 : }
87 :
88 : nsListNetworkAddressesListener::~nsListNetworkAddressesListener()
89 : {
90 : /* destructor code */
91 : }
92 :
93 : /* void onListedNetworkAddresses ([array, size_is (aAddressArraySize)] in string aAddressArray, in unsigned long aAddressArraySize); */
94 : NS_IMETHODIMP nsListNetworkAddressesListener::OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize)
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* void onListNetworkAddressesFailed (); */
100 : NS_IMETHODIMP nsListNetworkAddressesListener::OnListNetworkAddressesFailed()
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* End of implementation class template. */
106 : #endif
107 :
108 :
109 : /* starting interface: nsIGetHostnameListener */
110 : #define NS_IGETHOSTNAMELISTENER_IID_STR "3ebdcb62-2df4-4042-8864-3fa81abd4693"
111 :
112 : #define NS_IGETHOSTNAMELISTENER_IID \
113 : {0x3ebdcb62, 0x2df4, 0x4042, \
114 : { 0x88, 0x64, 0x3f, 0xa8, 0x1a, 0xbd, 0x46, 0x93 }}
115 :
116 : class NS_NO_VTABLE nsIGetHostnameListener : public nsISupports {
117 : public:
118 :
119 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGETHOSTNAMELISTENER_IID)
120 :
121 : /* void onGotHostname (in AUTF8String aHostname); */
122 : NS_IMETHOD OnGotHostname(const nsACString & aHostname) = 0;
123 :
124 : /* void onGetHostnameFailed (); */
125 : NS_IMETHOD OnGetHostnameFailed(void) = 0;
126 :
127 : };
128 :
129 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIGetHostnameListener, NS_IGETHOSTNAMELISTENER_IID)
130 :
131 : /* Use this macro when declaring classes that implement this interface. */
132 : #define NS_DECL_NSIGETHOSTNAMELISTENER \
133 : NS_IMETHOD OnGotHostname(const nsACString & aHostname) override; \
134 : NS_IMETHOD OnGetHostnameFailed(void) override;
135 :
136 : /* Use this macro when declaring the members of this interface when the
137 : class doesn't implement the interface. This is useful for forwarding. */
138 : #define NS_DECL_NON_VIRTUAL_NSIGETHOSTNAMELISTENER \
139 : nsresult OnGotHostname(const nsACString & aHostname); \
140 : nsresult OnGetHostnameFailed(void);
141 :
142 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
143 : #define NS_FORWARD_NSIGETHOSTNAMELISTENER(_to) \
144 : NS_IMETHOD OnGotHostname(const nsACString & aHostname) override { return _to OnGotHostname(aHostname); } \
145 : NS_IMETHOD OnGetHostnameFailed(void) override { return _to OnGetHostnameFailed(); }
146 :
147 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
148 : #define NS_FORWARD_SAFE_NSIGETHOSTNAMELISTENER(_to) \
149 : NS_IMETHOD OnGotHostname(const nsACString & aHostname) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnGotHostname(aHostname); } \
150 : NS_IMETHOD OnGetHostnameFailed(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnGetHostnameFailed(); }
151 :
152 : #if 0
153 : /* Use the code below as a template for the implementation class for this interface. */
154 :
155 : /* Header file */
156 : class nsGetHostnameListener : public nsIGetHostnameListener
157 : {
158 : public:
159 : NS_DECL_ISUPPORTS
160 : NS_DECL_NSIGETHOSTNAMELISTENER
161 :
162 : nsGetHostnameListener();
163 :
164 : private:
165 : ~nsGetHostnameListener();
166 :
167 : protected:
168 : /* additional members */
169 : };
170 :
171 : /* Implementation file */
172 : NS_IMPL_ISUPPORTS(nsGetHostnameListener, nsIGetHostnameListener)
173 :
174 : nsGetHostnameListener::nsGetHostnameListener()
175 : {
176 : /* member initializers and constructor code */
177 : }
178 :
179 : nsGetHostnameListener::~nsGetHostnameListener()
180 : {
181 : /* destructor code */
182 : }
183 :
184 : /* void onGotHostname (in AUTF8String aHostname); */
185 : NS_IMETHODIMP nsGetHostnameListener::OnGotHostname(const nsACString & aHostname)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 :
190 : /* void onGetHostnameFailed (); */
191 : NS_IMETHODIMP nsGetHostnameListener::OnGetHostnameFailed()
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* End of implementation class template. */
197 : #endif
198 :
199 :
200 : /* starting interface: nsINetworkInfoService */
201 : #define NS_INETWORKINFOSERVICE_IID_STR "55fc8dae-4a58-4e0f-a49b-901cbabae809"
202 :
203 : #define NS_INETWORKINFOSERVICE_IID \
204 : {0x55fc8dae, 0x4a58, 0x4e0f, \
205 : { 0xa4, 0x9b, 0x90, 0x1c, 0xba, 0xba, 0xe8, 0x09 }}
206 :
207 0 : class NS_NO_VTABLE nsINetworkInfoService : public nsISupports {
208 : public:
209 :
210 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INETWORKINFOSERVICE_IID)
211 :
212 : /* void listNetworkAddresses (in nsIListNetworkAddressesListener aListener); */
213 : NS_IMETHOD ListNetworkAddresses(nsIListNetworkAddressesListener *aListener) = 0;
214 :
215 : /* void getHostname (in nsIGetHostnameListener aListener); */
216 : NS_IMETHOD GetHostname(nsIGetHostnameListener *aListener) = 0;
217 :
218 : };
219 :
220 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINetworkInfoService, NS_INETWORKINFOSERVICE_IID)
221 :
222 : /* Use this macro when declaring classes that implement this interface. */
223 : #define NS_DECL_NSINETWORKINFOSERVICE \
224 : NS_IMETHOD ListNetworkAddresses(nsIListNetworkAddressesListener *aListener) override; \
225 : NS_IMETHOD GetHostname(nsIGetHostnameListener *aListener) override;
226 :
227 : /* Use this macro when declaring the members of this interface when the
228 : class doesn't implement the interface. This is useful for forwarding. */
229 : #define NS_DECL_NON_VIRTUAL_NSINETWORKINFOSERVICE \
230 : nsresult ListNetworkAddresses(nsIListNetworkAddressesListener *aListener); \
231 : nsresult GetHostname(nsIGetHostnameListener *aListener);
232 :
233 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
234 : #define NS_FORWARD_NSINETWORKINFOSERVICE(_to) \
235 : NS_IMETHOD ListNetworkAddresses(nsIListNetworkAddressesListener *aListener) override { return _to ListNetworkAddresses(aListener); } \
236 : NS_IMETHOD GetHostname(nsIGetHostnameListener *aListener) override { return _to GetHostname(aListener); }
237 :
238 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
239 : #define NS_FORWARD_SAFE_NSINETWORKINFOSERVICE(_to) \
240 : NS_IMETHOD ListNetworkAddresses(nsIListNetworkAddressesListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ListNetworkAddresses(aListener); } \
241 : NS_IMETHOD GetHostname(nsIGetHostnameListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostname(aListener); }
242 :
243 : #if 0
244 : /* Use the code below as a template for the implementation class for this interface. */
245 :
246 : /* Header file */
247 : class nsNetworkInfoService : public nsINetworkInfoService
248 : {
249 : public:
250 : NS_DECL_ISUPPORTS
251 : NS_DECL_NSINETWORKINFOSERVICE
252 :
253 : nsNetworkInfoService();
254 :
255 : private:
256 : ~nsNetworkInfoService();
257 :
258 : protected:
259 : /* additional members */
260 : };
261 :
262 : /* Implementation file */
263 : NS_IMPL_ISUPPORTS(nsNetworkInfoService, nsINetworkInfoService)
264 :
265 : nsNetworkInfoService::nsNetworkInfoService()
266 : {
267 : /* member initializers and constructor code */
268 : }
269 :
270 : nsNetworkInfoService::~nsNetworkInfoService()
271 : {
272 : /* destructor code */
273 : }
274 :
275 : /* void listNetworkAddresses (in nsIListNetworkAddressesListener aListener); */
276 : NS_IMETHODIMP nsNetworkInfoService::ListNetworkAddresses(nsIListNetworkAddressesListener *aListener)
277 : {
278 : return NS_ERROR_NOT_IMPLEMENTED;
279 : }
280 :
281 : /* void getHostname (in nsIGetHostnameListener aListener); */
282 : NS_IMETHODIMP nsNetworkInfoService::GetHostname(nsIGetHostnameListener *aListener)
283 : {
284 : return NS_ERROR_NOT_IMPLEMENTED;
285 : }
286 :
287 : /* End of implementation class template. */
288 : #endif
289 :
290 : #define NETWORKINFOSERVICE_CONTRACT_ID \
291 : "@mozilla.org/network-info-service;1"
292 :
293 : #endif /* __gen_nsINetworkInfoService_h__ */
|