Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDashboard.idl
3 : */
4 :
5 : #ifndef __gen_nsIDashboard_h__
6 : #define __gen_nsIDashboard_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "js/Value.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 :
20 : /* starting interface: NetDashboardCallback */
21 : #define NETDASHBOARDCALLBACK_IID_STR "19d7f24f-a95a-4fd9-87e2-d96e9e4b1f6d"
22 :
23 : #define NETDASHBOARDCALLBACK_IID \
24 : {0x19d7f24f, 0xa95a, 0x4fd9, \
25 : { 0x87, 0xe2, 0xd9, 0x6e, 0x9e, 0x4b, 0x1f, 0x6d }}
26 :
27 : class NS_NO_VTABLE NetDashboardCallback : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NETDASHBOARDCALLBACK_IID)
31 :
32 : /* void onDashboardDataAvailable (in jsval data); */
33 : NS_IMETHOD OnDashboardDataAvailable(JS::HandleValue data) = 0;
34 :
35 : };
36 :
37 : NS_DEFINE_STATIC_IID_ACCESSOR(NetDashboardCallback, NETDASHBOARDCALLBACK_IID)
38 :
39 : /* Use this macro when declaring classes that implement this interface. */
40 : #define NS_DECL_NETDASHBOARDCALLBACK \
41 : NS_IMETHOD OnDashboardDataAvailable(JS::HandleValue data) override;
42 :
43 : /* Use this macro when declaring the members of this interface when the
44 : class doesn't implement the interface. This is useful for forwarding. */
45 : #define NS_DECL_NON_VIRTUAL_NETDASHBOARDCALLBACK \
46 : nsresult OnDashboardDataAvailable(JS::HandleValue data);
47 :
48 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
49 : #define NS_FORWARD_NETDASHBOARDCALLBACK(_to) \
50 : NS_IMETHOD OnDashboardDataAvailable(JS::HandleValue data) override { return _to OnDashboardDataAvailable(data); }
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53 : #define NS_FORWARD_SAFE_NETDASHBOARDCALLBACK(_to) \
54 : NS_IMETHOD OnDashboardDataAvailable(JS::HandleValue data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDashboardDataAvailable(data); }
55 :
56 : #if 0
57 : /* Use the code below as a template for the implementation class for this interface. */
58 :
59 : /* Header file */
60 : class _MYCLASS_ : public NetDashboardCallback
61 : {
62 : public:
63 : NS_DECL_ISUPPORTS
64 : NS_DECL_NETDASHBOARDCALLBACK
65 :
66 : _MYCLASS_();
67 :
68 : private:
69 : ~_MYCLASS_();
70 :
71 : protected:
72 : /* additional members */
73 : };
74 :
75 : /* Implementation file */
76 : NS_IMPL_ISUPPORTS(_MYCLASS_, NetDashboardCallback)
77 :
78 : _MYCLASS_::_MYCLASS_()
79 : {
80 : /* member initializers and constructor code */
81 : }
82 :
83 : _MYCLASS_::~_MYCLASS_()
84 : {
85 : /* destructor code */
86 : }
87 :
88 : /* void onDashboardDataAvailable (in jsval data); */
89 : NS_IMETHODIMP _MYCLASS_::OnDashboardDataAvailable(JS::HandleValue data)
90 : {
91 : return NS_ERROR_NOT_IMPLEMENTED;
92 : }
93 :
94 : /* End of implementation class template. */
95 : #endif
96 :
97 :
98 : /* starting interface: nsIDashboard */
99 : #define NS_IDASHBOARD_IID_STR "c79eb3c6-091a-45a6-8544-5a8d1ab79537"
100 :
101 : #define NS_IDASHBOARD_IID \
102 : {0xc79eb3c6, 0x091a, 0x45a6, \
103 : { 0x85, 0x44, 0x5a, 0x8d, 0x1a, 0xb7, 0x95, 0x37 }}
104 :
105 0 : class NS_NO_VTABLE nsIDashboard : public nsISupports {
106 : public:
107 :
108 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDASHBOARD_IID)
109 :
110 : /* void requestSockets (in NetDashboardCallback cb); */
111 : NS_IMETHOD RequestSockets(NetDashboardCallback *cb) = 0;
112 :
113 : /* void requestHttpConnections (in NetDashboardCallback cb); */
114 : NS_IMETHOD RequestHttpConnections(NetDashboardCallback *cb) = 0;
115 :
116 : /* void requestWebsocketConnections (in NetDashboardCallback cb); */
117 : NS_IMETHOD RequestWebsocketConnections(NetDashboardCallback *cb) = 0;
118 :
119 : /* void requestDNSInfo (in NetDashboardCallback cb); */
120 : NS_IMETHOD RequestDNSInfo(NetDashboardCallback *cb) = 0;
121 :
122 : /* void requestConnection (in ACString aHost, in unsigned long aPort, in string aProtocol, in unsigned long aTimeout, in NetDashboardCallback cb); */
123 : NS_IMETHOD RequestConnection(const nsACString & aHost, uint32_t aPort, const char * aProtocol, uint32_t aTimeout, NetDashboardCallback *cb) = 0;
124 :
125 : /* attribute boolean enableLogging; */
126 : NS_IMETHOD GetEnableLogging(bool *aEnableLogging) = 0;
127 : NS_IMETHOD SetEnableLogging(bool aEnableLogging) = 0;
128 :
129 : /* void requestDNSLookup (in ACString aHost, in NetDashboardCallback cb); */
130 : NS_IMETHOD RequestDNSLookup(const nsACString & aHost, NetDashboardCallback *cb) = 0;
131 :
132 : /* void requestRcwnStats (in NetDashboardCallback cb); */
133 : NS_IMETHOD RequestRcwnStats(NetDashboardCallback *cb) = 0;
134 :
135 : /* AUTF8String getLogPath (); */
136 : NS_IMETHOD GetLogPath(nsACString & _retval) = 0;
137 :
138 : };
139 :
140 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDashboard, NS_IDASHBOARD_IID)
141 :
142 : /* Use this macro when declaring classes that implement this interface. */
143 : #define NS_DECL_NSIDASHBOARD \
144 : NS_IMETHOD RequestSockets(NetDashboardCallback *cb) override; \
145 : NS_IMETHOD RequestHttpConnections(NetDashboardCallback *cb) override; \
146 : NS_IMETHOD RequestWebsocketConnections(NetDashboardCallback *cb) override; \
147 : NS_IMETHOD RequestDNSInfo(NetDashboardCallback *cb) override; \
148 : NS_IMETHOD RequestConnection(const nsACString & aHost, uint32_t aPort, const char * aProtocol, uint32_t aTimeout, NetDashboardCallback *cb) override; \
149 : NS_IMETHOD GetEnableLogging(bool *aEnableLogging) override; \
150 : NS_IMETHOD SetEnableLogging(bool aEnableLogging) override; \
151 : NS_IMETHOD RequestDNSLookup(const nsACString & aHost, NetDashboardCallback *cb) override; \
152 : NS_IMETHOD RequestRcwnStats(NetDashboardCallback *cb) override; \
153 : NS_IMETHOD GetLogPath(nsACString & _retval) override;
154 :
155 : /* Use this macro when declaring the members of this interface when the
156 : class doesn't implement the interface. This is useful for forwarding. */
157 : #define NS_DECL_NON_VIRTUAL_NSIDASHBOARD \
158 : nsresult RequestSockets(NetDashboardCallback *cb); \
159 : nsresult RequestHttpConnections(NetDashboardCallback *cb); \
160 : nsresult RequestWebsocketConnections(NetDashboardCallback *cb); \
161 : nsresult RequestDNSInfo(NetDashboardCallback *cb); \
162 : nsresult RequestConnection(const nsACString & aHost, uint32_t aPort, const char * aProtocol, uint32_t aTimeout, NetDashboardCallback *cb); \
163 : nsresult GetEnableLogging(bool *aEnableLogging); \
164 : nsresult SetEnableLogging(bool aEnableLogging); \
165 : nsresult RequestDNSLookup(const nsACString & aHost, NetDashboardCallback *cb); \
166 : nsresult RequestRcwnStats(NetDashboardCallback *cb); \
167 : nsresult GetLogPath(nsACString & _retval);
168 :
169 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
170 : #define NS_FORWARD_NSIDASHBOARD(_to) \
171 : NS_IMETHOD RequestSockets(NetDashboardCallback *cb) override { return _to RequestSockets(cb); } \
172 : NS_IMETHOD RequestHttpConnections(NetDashboardCallback *cb) override { return _to RequestHttpConnections(cb); } \
173 : NS_IMETHOD RequestWebsocketConnections(NetDashboardCallback *cb) override { return _to RequestWebsocketConnections(cb); } \
174 : NS_IMETHOD RequestDNSInfo(NetDashboardCallback *cb) override { return _to RequestDNSInfo(cb); } \
175 : NS_IMETHOD RequestConnection(const nsACString & aHost, uint32_t aPort, const char * aProtocol, uint32_t aTimeout, NetDashboardCallback *cb) override { return _to RequestConnection(aHost, aPort, aProtocol, aTimeout, cb); } \
176 : NS_IMETHOD GetEnableLogging(bool *aEnableLogging) override { return _to GetEnableLogging(aEnableLogging); } \
177 : NS_IMETHOD SetEnableLogging(bool aEnableLogging) override { return _to SetEnableLogging(aEnableLogging); } \
178 : NS_IMETHOD RequestDNSLookup(const nsACString & aHost, NetDashboardCallback *cb) override { return _to RequestDNSLookup(aHost, cb); } \
179 : NS_IMETHOD RequestRcwnStats(NetDashboardCallback *cb) override { return _to RequestRcwnStats(cb); } \
180 : NS_IMETHOD GetLogPath(nsACString & _retval) override { return _to GetLogPath(_retval); }
181 :
182 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
183 : #define NS_FORWARD_SAFE_NSIDASHBOARD(_to) \
184 : NS_IMETHOD RequestSockets(NetDashboardCallback *cb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestSockets(cb); } \
185 : NS_IMETHOD RequestHttpConnections(NetDashboardCallback *cb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestHttpConnections(cb); } \
186 : NS_IMETHOD RequestWebsocketConnections(NetDashboardCallback *cb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestWebsocketConnections(cb); } \
187 : NS_IMETHOD RequestDNSInfo(NetDashboardCallback *cb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestDNSInfo(cb); } \
188 : NS_IMETHOD RequestConnection(const nsACString & aHost, uint32_t aPort, const char * aProtocol, uint32_t aTimeout, NetDashboardCallback *cb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestConnection(aHost, aPort, aProtocol, aTimeout, cb); } \
189 : NS_IMETHOD GetEnableLogging(bool *aEnableLogging) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnableLogging(aEnableLogging); } \
190 : NS_IMETHOD SetEnableLogging(bool aEnableLogging) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnableLogging(aEnableLogging); } \
191 : NS_IMETHOD RequestDNSLookup(const nsACString & aHost, NetDashboardCallback *cb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestDNSLookup(aHost, cb); } \
192 : NS_IMETHOD RequestRcwnStats(NetDashboardCallback *cb) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestRcwnStats(cb); } \
193 : NS_IMETHOD GetLogPath(nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLogPath(_retval); }
194 :
195 : #if 0
196 : /* Use the code below as a template for the implementation class for this interface. */
197 :
198 : /* Header file */
199 : class nsDashboard : public nsIDashboard
200 : {
201 : public:
202 : NS_DECL_ISUPPORTS
203 : NS_DECL_NSIDASHBOARD
204 :
205 : nsDashboard();
206 :
207 : private:
208 : ~nsDashboard();
209 :
210 : protected:
211 : /* additional members */
212 : };
213 :
214 : /* Implementation file */
215 : NS_IMPL_ISUPPORTS(nsDashboard, nsIDashboard)
216 :
217 : nsDashboard::nsDashboard()
218 : {
219 : /* member initializers and constructor code */
220 : }
221 :
222 : nsDashboard::~nsDashboard()
223 : {
224 : /* destructor code */
225 : }
226 :
227 : /* void requestSockets (in NetDashboardCallback cb); */
228 : NS_IMETHODIMP nsDashboard::RequestSockets(NetDashboardCallback *cb)
229 : {
230 : return NS_ERROR_NOT_IMPLEMENTED;
231 : }
232 :
233 : /* void requestHttpConnections (in NetDashboardCallback cb); */
234 : NS_IMETHODIMP nsDashboard::RequestHttpConnections(NetDashboardCallback *cb)
235 : {
236 : return NS_ERROR_NOT_IMPLEMENTED;
237 : }
238 :
239 : /* void requestWebsocketConnections (in NetDashboardCallback cb); */
240 : NS_IMETHODIMP nsDashboard::RequestWebsocketConnections(NetDashboardCallback *cb)
241 : {
242 : return NS_ERROR_NOT_IMPLEMENTED;
243 : }
244 :
245 : /* void requestDNSInfo (in NetDashboardCallback cb); */
246 : NS_IMETHODIMP nsDashboard::RequestDNSInfo(NetDashboardCallback *cb)
247 : {
248 : return NS_ERROR_NOT_IMPLEMENTED;
249 : }
250 :
251 : /* void requestConnection (in ACString aHost, in unsigned long aPort, in string aProtocol, in unsigned long aTimeout, in NetDashboardCallback cb); */
252 : NS_IMETHODIMP nsDashboard::RequestConnection(const nsACString & aHost, uint32_t aPort, const char * aProtocol, uint32_t aTimeout, NetDashboardCallback *cb)
253 : {
254 : return NS_ERROR_NOT_IMPLEMENTED;
255 : }
256 :
257 : /* attribute boolean enableLogging; */
258 : NS_IMETHODIMP nsDashboard::GetEnableLogging(bool *aEnableLogging)
259 : {
260 : return NS_ERROR_NOT_IMPLEMENTED;
261 : }
262 : NS_IMETHODIMP nsDashboard::SetEnableLogging(bool aEnableLogging)
263 : {
264 : return NS_ERROR_NOT_IMPLEMENTED;
265 : }
266 :
267 : /* void requestDNSLookup (in ACString aHost, in NetDashboardCallback cb); */
268 : NS_IMETHODIMP nsDashboard::RequestDNSLookup(const nsACString & aHost, NetDashboardCallback *cb)
269 : {
270 : return NS_ERROR_NOT_IMPLEMENTED;
271 : }
272 :
273 : /* void requestRcwnStats (in NetDashboardCallback cb); */
274 : NS_IMETHODIMP nsDashboard::RequestRcwnStats(NetDashboardCallback *cb)
275 : {
276 : return NS_ERROR_NOT_IMPLEMENTED;
277 : }
278 :
279 : /* AUTF8String getLogPath (); */
280 : NS_IMETHODIMP nsDashboard::GetLogPath(nsACString & _retval)
281 : {
282 : return NS_ERROR_NOT_IMPLEMENTED;
283 : }
284 :
285 : /* End of implementation class template. */
286 : #endif
287 :
288 :
289 : #endif /* __gen_nsIDashboard_h__ */
|