Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPresentationSessionTransport.idl
3 : */
4 :
5 : #ifndef __gen_nsIPresentationSessionTransport_h__
6 : #define __gen_nsIPresentationSessionTransport_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 : class nsIDOMBlob; /* forward declaration */
18 :
19 : class nsIInputStream; /* forward declaration */
20 :
21 : class nsINetAddr; /* forward declaration */
22 :
23 : #define PRESENTATION_TCP_SESSION_TRANSPORT_CONTRACTID \
24 : "@mozilla.org/presentation/presentationtcpsessiontransport;1"
25 :
26 : /* starting interface: nsIPresentationSessionTransportCallback */
27 : #define NS_IPRESENTATIONSESSIONTRANSPORTCALLBACK_IID_STR "9f158786-41a6-4a10-b29b-9497f25d4b67"
28 :
29 : #define NS_IPRESENTATIONSESSIONTRANSPORTCALLBACK_IID \
30 : {0x9f158786, 0x41a6, 0x4a10, \
31 : { 0xb2, 0x9b, 0x94, 0x97, 0xf2, 0x5d, 0x4b, 0x67 }}
32 :
33 0 : class NS_NO_VTABLE nsIPresentationSessionTransportCallback : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONSESSIONTRANSPORTCALLBACK_IID)
37 :
38 : /* void notifyTransportReady (); */
39 : NS_IMETHOD NotifyTransportReady(void) = 0;
40 :
41 : /* void notifyTransportClosed (in nsresult reason); */
42 : NS_IMETHOD NotifyTransportClosed(nsresult reason) = 0;
43 :
44 : /* void notifyData (in ACString data, in boolean isBinary); */
45 : NS_IMETHOD NotifyData(const nsACString & data, bool isBinary) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationSessionTransportCallback, NS_IPRESENTATIONSESSIONTRANSPORTCALLBACK_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSIPRESENTATIONSESSIONTRANSPORTCALLBACK \
53 : NS_IMETHOD NotifyTransportReady(void) override; \
54 : NS_IMETHOD NotifyTransportClosed(nsresult reason) override; \
55 : NS_IMETHOD NotifyData(const nsACString & data, bool isBinary) override;
56 :
57 : /* Use this macro when declaring the members of this interface when the
58 : class doesn't implement the interface. This is useful for forwarding. */
59 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONSESSIONTRANSPORTCALLBACK \
60 : nsresult NotifyTransportReady(void); \
61 : nsresult NotifyTransportClosed(nsresult reason); \
62 : nsresult NotifyData(const nsACString & data, bool isBinary);
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
65 : #define NS_FORWARD_NSIPRESENTATIONSESSIONTRANSPORTCALLBACK(_to) \
66 : NS_IMETHOD NotifyTransportReady(void) override { return _to NotifyTransportReady(); } \
67 : NS_IMETHOD NotifyTransportClosed(nsresult reason) override { return _to NotifyTransportClosed(reason); } \
68 : NS_IMETHOD NotifyData(const nsACString & data, bool isBinary) override { return _to NotifyData(data, isBinary); }
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
71 : #define NS_FORWARD_SAFE_NSIPRESENTATIONSESSIONTRANSPORTCALLBACK(_to) \
72 : NS_IMETHOD NotifyTransportReady(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyTransportReady(); } \
73 : NS_IMETHOD NotifyTransportClosed(nsresult reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyTransportClosed(reason); } \
74 : NS_IMETHOD NotifyData(const nsACString & data, bool isBinary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyData(data, isBinary); }
75 :
76 : #if 0
77 : /* Use the code below as a template for the implementation class for this interface. */
78 :
79 : /* Header file */
80 : class nsPresentationSessionTransportCallback : public nsIPresentationSessionTransportCallback
81 : {
82 : public:
83 : NS_DECL_ISUPPORTS
84 : NS_DECL_NSIPRESENTATIONSESSIONTRANSPORTCALLBACK
85 :
86 : nsPresentationSessionTransportCallback();
87 :
88 : private:
89 : ~nsPresentationSessionTransportCallback();
90 :
91 : protected:
92 : /* additional members */
93 : };
94 :
95 : /* Implementation file */
96 : NS_IMPL_ISUPPORTS(nsPresentationSessionTransportCallback, nsIPresentationSessionTransportCallback)
97 :
98 : nsPresentationSessionTransportCallback::nsPresentationSessionTransportCallback()
99 : {
100 : /* member initializers and constructor code */
101 : }
102 :
103 : nsPresentationSessionTransportCallback::~nsPresentationSessionTransportCallback()
104 : {
105 : /* destructor code */
106 : }
107 :
108 : /* void notifyTransportReady (); */
109 : NS_IMETHODIMP nsPresentationSessionTransportCallback::NotifyTransportReady()
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* void notifyTransportClosed (in nsresult reason); */
115 : NS_IMETHODIMP nsPresentationSessionTransportCallback::NotifyTransportClosed(nsresult reason)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* void notifyData (in ACString data, in boolean isBinary); */
121 : NS_IMETHODIMP nsPresentationSessionTransportCallback::NotifyData(const nsACString & data, bool isBinary)
122 : {
123 : return NS_ERROR_NOT_IMPLEMENTED;
124 : }
125 :
126 : /* End of implementation class template. */
127 : #endif
128 :
129 :
130 : /* starting interface: nsIPresentationSessionTransport */
131 : #define NS_IPRESENTATIONSESSIONTRANSPORT_IID_STR "670b7e1b-65be-42b6-a596-be571907fa18"
132 :
133 : #define NS_IPRESENTATIONSESSIONTRANSPORT_IID \
134 : {0x670b7e1b, 0x65be, 0x42b6, \
135 : { 0xa5, 0x96, 0xbe, 0x57, 0x19, 0x07, 0xfa, 0x18 }}
136 :
137 0 : class NS_NO_VTABLE nsIPresentationSessionTransport : public nsISupports {
138 : public:
139 :
140 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONSESSIONTRANSPORT_IID)
141 :
142 : /* attribute nsIPresentationSessionTransportCallback callback; */
143 : NS_IMETHOD GetCallback(nsIPresentationSessionTransportCallback * *aCallback) = 0;
144 : NS_IMETHOD SetCallback(nsIPresentationSessionTransportCallback *aCallback) = 0;
145 :
146 : /* readonly attribute nsINetAddr selfAddress; */
147 : NS_IMETHOD GetSelfAddress(nsINetAddr * *aSelfAddress) = 0;
148 :
149 : /* void enableDataNotification (); */
150 : NS_IMETHOD EnableDataNotification(void) = 0;
151 :
152 : /* void send (in DOMString data); */
153 : NS_IMETHOD Send(const nsAString & data) = 0;
154 :
155 : /* void sendBinaryMsg (in ACString data); */
156 : NS_IMETHOD SendBinaryMsg(const nsACString & data) = 0;
157 :
158 : /* void sendBlob (in nsIDOMBlob blob); */
159 : NS_IMETHOD SendBlob(nsIDOMBlob *blob) = 0;
160 :
161 : /* void close (in nsresult reason); */
162 : NS_IMETHOD Close(nsresult reason) = 0;
163 :
164 : };
165 :
166 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationSessionTransport, NS_IPRESENTATIONSESSIONTRANSPORT_IID)
167 :
168 : /* Use this macro when declaring classes that implement this interface. */
169 : #define NS_DECL_NSIPRESENTATIONSESSIONTRANSPORT \
170 : NS_IMETHOD GetCallback(nsIPresentationSessionTransportCallback * *aCallback) override; \
171 : NS_IMETHOD SetCallback(nsIPresentationSessionTransportCallback *aCallback) override; \
172 : NS_IMETHOD GetSelfAddress(nsINetAddr * *aSelfAddress) override; \
173 : NS_IMETHOD EnableDataNotification(void) override; \
174 : NS_IMETHOD Send(const nsAString & data) override; \
175 : NS_IMETHOD SendBinaryMsg(const nsACString & data) override; \
176 : NS_IMETHOD SendBlob(nsIDOMBlob *blob) override; \
177 : NS_IMETHOD Close(nsresult reason) override;
178 :
179 : /* Use this macro when declaring the members of this interface when the
180 : class doesn't implement the interface. This is useful for forwarding. */
181 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONSESSIONTRANSPORT \
182 : nsresult GetCallback(nsIPresentationSessionTransportCallback * *aCallback); \
183 : nsresult SetCallback(nsIPresentationSessionTransportCallback *aCallback); \
184 : nsresult GetSelfAddress(nsINetAddr * *aSelfAddress); \
185 : nsresult EnableDataNotification(void); \
186 : nsresult Send(const nsAString & data); \
187 : nsresult SendBinaryMsg(const nsACString & data); \
188 : nsresult SendBlob(nsIDOMBlob *blob); \
189 : nsresult Close(nsresult reason);
190 :
191 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
192 : #define NS_FORWARD_NSIPRESENTATIONSESSIONTRANSPORT(_to) \
193 : NS_IMETHOD GetCallback(nsIPresentationSessionTransportCallback * *aCallback) override { return _to GetCallback(aCallback); } \
194 : NS_IMETHOD SetCallback(nsIPresentationSessionTransportCallback *aCallback) override { return _to SetCallback(aCallback); } \
195 : NS_IMETHOD GetSelfAddress(nsINetAddr * *aSelfAddress) override { return _to GetSelfAddress(aSelfAddress); } \
196 : NS_IMETHOD EnableDataNotification(void) override { return _to EnableDataNotification(); } \
197 : NS_IMETHOD Send(const nsAString & data) override { return _to Send(data); } \
198 : NS_IMETHOD SendBinaryMsg(const nsACString & data) override { return _to SendBinaryMsg(data); } \
199 : NS_IMETHOD SendBlob(nsIDOMBlob *blob) override { return _to SendBlob(blob); } \
200 : NS_IMETHOD Close(nsresult reason) override { return _to Close(reason); }
201 :
202 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
203 : #define NS_FORWARD_SAFE_NSIPRESENTATIONSESSIONTRANSPORT(_to) \
204 : NS_IMETHOD GetCallback(nsIPresentationSessionTransportCallback * *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallback(aCallback); } \
205 : NS_IMETHOD SetCallback(nsIPresentationSessionTransportCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); } \
206 : NS_IMETHOD GetSelfAddress(nsINetAddr * *aSelfAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelfAddress(aSelfAddress); } \
207 : NS_IMETHOD EnableDataNotification(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableDataNotification(); } \
208 : NS_IMETHOD Send(const nsAString & data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Send(data); } \
209 : NS_IMETHOD SendBinaryMsg(const nsACString & data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendBinaryMsg(data); } \
210 : NS_IMETHOD SendBlob(nsIDOMBlob *blob) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendBlob(blob); } \
211 : NS_IMETHOD Close(nsresult reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(reason); }
212 :
213 : #if 0
214 : /* Use the code below as a template for the implementation class for this interface. */
215 :
216 : /* Header file */
217 : class nsPresentationSessionTransport : public nsIPresentationSessionTransport
218 : {
219 : public:
220 : NS_DECL_ISUPPORTS
221 : NS_DECL_NSIPRESENTATIONSESSIONTRANSPORT
222 :
223 : nsPresentationSessionTransport();
224 :
225 : private:
226 : ~nsPresentationSessionTransport();
227 :
228 : protected:
229 : /* additional members */
230 : };
231 :
232 : /* Implementation file */
233 : NS_IMPL_ISUPPORTS(nsPresentationSessionTransport, nsIPresentationSessionTransport)
234 :
235 : nsPresentationSessionTransport::nsPresentationSessionTransport()
236 : {
237 : /* member initializers and constructor code */
238 : }
239 :
240 : nsPresentationSessionTransport::~nsPresentationSessionTransport()
241 : {
242 : /* destructor code */
243 : }
244 :
245 : /* attribute nsIPresentationSessionTransportCallback callback; */
246 : NS_IMETHODIMP nsPresentationSessionTransport::GetCallback(nsIPresentationSessionTransportCallback * *aCallback)
247 : {
248 : return NS_ERROR_NOT_IMPLEMENTED;
249 : }
250 : NS_IMETHODIMP nsPresentationSessionTransport::SetCallback(nsIPresentationSessionTransportCallback *aCallback)
251 : {
252 : return NS_ERROR_NOT_IMPLEMENTED;
253 : }
254 :
255 : /* readonly attribute nsINetAddr selfAddress; */
256 : NS_IMETHODIMP nsPresentationSessionTransport::GetSelfAddress(nsINetAddr * *aSelfAddress)
257 : {
258 : return NS_ERROR_NOT_IMPLEMENTED;
259 : }
260 :
261 : /* void enableDataNotification (); */
262 : NS_IMETHODIMP nsPresentationSessionTransport::EnableDataNotification()
263 : {
264 : return NS_ERROR_NOT_IMPLEMENTED;
265 : }
266 :
267 : /* void send (in DOMString data); */
268 : NS_IMETHODIMP nsPresentationSessionTransport::Send(const nsAString & data)
269 : {
270 : return NS_ERROR_NOT_IMPLEMENTED;
271 : }
272 :
273 : /* void sendBinaryMsg (in ACString data); */
274 : NS_IMETHODIMP nsPresentationSessionTransport::SendBinaryMsg(const nsACString & data)
275 : {
276 : return NS_ERROR_NOT_IMPLEMENTED;
277 : }
278 :
279 : /* void sendBlob (in nsIDOMBlob blob); */
280 : NS_IMETHODIMP nsPresentationSessionTransport::SendBlob(nsIDOMBlob *blob)
281 : {
282 : return NS_ERROR_NOT_IMPLEMENTED;
283 : }
284 :
285 : /* void close (in nsresult reason); */
286 : NS_IMETHODIMP nsPresentationSessionTransport::Close(nsresult reason)
287 : {
288 : return NS_ERROR_NOT_IMPLEMENTED;
289 : }
290 :
291 : /* End of implementation class template. */
292 : #endif
293 :
294 :
295 : #endif /* __gen_nsIPresentationSessionTransport_h__ */
|