Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPresentationListener.idl
3 : */
4 :
5 : #ifndef __gen_nsIPresentationListener_h__
6 : #define __gen_nsIPresentationListener_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: nsIPresentationAvailabilityListener */
19 : #define NS_IPRESENTATIONAVAILABILITYLISTENER_IID_STR "0105f837-4279-4715-9d5b-2dc3f8b65353"
20 :
21 : #define NS_IPRESENTATIONAVAILABILITYLISTENER_IID \
22 : {0x0105f837, 0x4279, 0x4715, \
23 : { 0x9d, 0x5b, 0x2d, 0xc3, 0xf8, 0xb6, 0x53, 0x53 }}
24 :
25 0 : class NS_NO_VTABLE nsIPresentationAvailabilityListener : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONAVAILABILITYLISTENER_IID)
29 :
30 : /* [noscript] void notifyAvailableChange (in URLArrayRef urls, in bool available); */
31 : NS_IMETHOD NotifyAvailableChange(const nsTArray<nsString> & urls, bool available) = 0;
32 :
33 : };
34 :
35 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationAvailabilityListener, NS_IPRESENTATIONAVAILABILITYLISTENER_IID)
36 :
37 : /* Use this macro when declaring classes that implement this interface. */
38 : #define NS_DECL_NSIPRESENTATIONAVAILABILITYLISTENER \
39 : NS_IMETHOD NotifyAvailableChange(const nsTArray<nsString> & urls, bool available) override;
40 :
41 : /* Use this macro when declaring the members of this interface when the
42 : class doesn't implement the interface. This is useful for forwarding. */
43 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONAVAILABILITYLISTENER \
44 : nsresult NotifyAvailableChange(const nsTArray<nsString> & urls, bool available);
45 :
46 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
47 : #define NS_FORWARD_NSIPRESENTATIONAVAILABILITYLISTENER(_to) \
48 : NS_IMETHOD NotifyAvailableChange(const nsTArray<nsString> & urls, bool available) override { return _to NotifyAvailableChange(urls, available); }
49 :
50 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
51 : #define NS_FORWARD_SAFE_NSIPRESENTATIONAVAILABILITYLISTENER(_to) \
52 : NS_IMETHOD NotifyAvailableChange(const nsTArray<nsString> & urls, bool available) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyAvailableChange(urls, available); }
53 :
54 : #if 0
55 : /* Use the code below as a template for the implementation class for this interface. */
56 :
57 : /* Header file */
58 : class nsPresentationAvailabilityListener : public nsIPresentationAvailabilityListener
59 : {
60 : public:
61 : NS_DECL_ISUPPORTS
62 : NS_DECL_NSIPRESENTATIONAVAILABILITYLISTENER
63 :
64 : nsPresentationAvailabilityListener();
65 :
66 : private:
67 : ~nsPresentationAvailabilityListener();
68 :
69 : protected:
70 : /* additional members */
71 : };
72 :
73 : /* Implementation file */
74 : NS_IMPL_ISUPPORTS(nsPresentationAvailabilityListener, nsIPresentationAvailabilityListener)
75 :
76 : nsPresentationAvailabilityListener::nsPresentationAvailabilityListener()
77 : {
78 : /* member initializers and constructor code */
79 : }
80 :
81 : nsPresentationAvailabilityListener::~nsPresentationAvailabilityListener()
82 : {
83 : /* destructor code */
84 : }
85 :
86 : /* [noscript] void notifyAvailableChange (in URLArrayRef urls, in bool available); */
87 : NS_IMETHODIMP nsPresentationAvailabilityListener::NotifyAvailableChange(const nsTArray<nsString> & urls, bool available)
88 : {
89 : return NS_ERROR_NOT_IMPLEMENTED;
90 : }
91 :
92 : /* End of implementation class template. */
93 : #endif
94 :
95 :
96 : /* starting interface: nsIPresentationSessionListener */
97 : #define NS_IPRESENTATIONSESSIONLISTENER_IID_STR "7dd48df8-8f8c-48c7-ac37-7b9fd1acf2f8"
98 :
99 : #define NS_IPRESENTATIONSESSIONLISTENER_IID \
100 : {0x7dd48df8, 0x8f8c, 0x48c7, \
101 : { 0xac, 0x37, 0x7b, 0x9f, 0xd1, 0xac, 0xf2, 0xf8 }}
102 :
103 0 : class NS_NO_VTABLE nsIPresentationSessionListener : public nsISupports {
104 : public:
105 :
106 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONSESSIONLISTENER_IID)
107 :
108 : enum {
109 : STATE_CONNECTING = 0U,
110 : STATE_CONNECTED = 1U,
111 : STATE_CLOSED = 2U,
112 : STATE_TERMINATED = 3U
113 : };
114 :
115 : /* void notifyStateChange (in DOMString sessionId, in unsigned short state, in nsresult reason); */
116 : NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason) = 0;
117 :
118 : /* void notifyMessage (in DOMString sessionId, in ACString data, in boolean isBinary); */
119 : NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary) = 0;
120 :
121 : };
122 :
123 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationSessionListener, NS_IPRESENTATIONSESSIONLISTENER_IID)
124 :
125 : /* Use this macro when declaring classes that implement this interface. */
126 : #define NS_DECL_NSIPRESENTATIONSESSIONLISTENER \
127 : NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason) override; \
128 : NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary) override;
129 :
130 : /* Use this macro when declaring the members of this interface when the
131 : class doesn't implement the interface. This is useful for forwarding. */
132 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONSESSIONLISTENER \
133 : nsresult NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason); \
134 : nsresult NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary);
135 :
136 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
137 : #define NS_FORWARD_NSIPRESENTATIONSESSIONLISTENER(_to) \
138 : NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason) override { return _to NotifyStateChange(sessionId, state, reason); } \
139 : NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary) override { return _to NotifyMessage(sessionId, data, isBinary); }
140 :
141 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
142 : #define NS_FORWARD_SAFE_NSIPRESENTATIONSESSIONLISTENER(_to) \
143 : NS_IMETHOD NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyStateChange(sessionId, state, reason); } \
144 : NS_IMETHOD NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyMessage(sessionId, data, isBinary); }
145 :
146 : #if 0
147 : /* Use the code below as a template for the implementation class for this interface. */
148 :
149 : /* Header file */
150 : class nsPresentationSessionListener : public nsIPresentationSessionListener
151 : {
152 : public:
153 : NS_DECL_ISUPPORTS
154 : NS_DECL_NSIPRESENTATIONSESSIONLISTENER
155 :
156 : nsPresentationSessionListener();
157 :
158 : private:
159 : ~nsPresentationSessionListener();
160 :
161 : protected:
162 : /* additional members */
163 : };
164 :
165 : /* Implementation file */
166 : NS_IMPL_ISUPPORTS(nsPresentationSessionListener, nsIPresentationSessionListener)
167 :
168 : nsPresentationSessionListener::nsPresentationSessionListener()
169 : {
170 : /* member initializers and constructor code */
171 : }
172 :
173 : nsPresentationSessionListener::~nsPresentationSessionListener()
174 : {
175 : /* destructor code */
176 : }
177 :
178 : /* void notifyStateChange (in DOMString sessionId, in unsigned short state, in nsresult reason); */
179 : NS_IMETHODIMP nsPresentationSessionListener::NotifyStateChange(const nsAString & sessionId, uint16_t state, nsresult reason)
180 : {
181 : return NS_ERROR_NOT_IMPLEMENTED;
182 : }
183 :
184 : /* void notifyMessage (in DOMString sessionId, in ACString data, in boolean isBinary); */
185 : NS_IMETHODIMP nsPresentationSessionListener::NotifyMessage(const nsAString & sessionId, const nsACString & data, bool isBinary)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 :
190 : /* End of implementation class template. */
191 : #endif
192 :
193 :
194 : /* starting interface: nsIPresentationRespondingListener */
195 : #define NS_IPRESENTATIONRESPONDINGLISTENER_IID_STR "27f101d7-9ed1-429e-b4f8-43b00e8e111c"
196 :
197 : #define NS_IPRESENTATIONRESPONDINGLISTENER_IID \
198 : {0x27f101d7, 0x9ed1, 0x429e, \
199 : { 0xb4, 0xf8, 0x43, 0xb0, 0x0e, 0x8e, 0x11, 0x1c }}
200 :
201 0 : class NS_NO_VTABLE nsIPresentationRespondingListener : public nsISupports {
202 : public:
203 :
204 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONRESPONDINGLISTENER_IID)
205 :
206 : /* void notifySessionConnect (in unsigned long long windowId, in DOMString sessionId); */
207 : NS_IMETHOD NotifySessionConnect(uint64_t windowId, const nsAString & sessionId) = 0;
208 :
209 : };
210 :
211 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationRespondingListener, NS_IPRESENTATIONRESPONDINGLISTENER_IID)
212 :
213 : /* Use this macro when declaring classes that implement this interface. */
214 : #define NS_DECL_NSIPRESENTATIONRESPONDINGLISTENER \
215 : NS_IMETHOD NotifySessionConnect(uint64_t windowId, const nsAString & sessionId) override;
216 :
217 : /* Use this macro when declaring the members of this interface when the
218 : class doesn't implement the interface. This is useful for forwarding. */
219 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONRESPONDINGLISTENER \
220 : nsresult NotifySessionConnect(uint64_t windowId, const nsAString & sessionId);
221 :
222 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
223 : #define NS_FORWARD_NSIPRESENTATIONRESPONDINGLISTENER(_to) \
224 : NS_IMETHOD NotifySessionConnect(uint64_t windowId, const nsAString & sessionId) override { return _to NotifySessionConnect(windowId, sessionId); }
225 :
226 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
227 : #define NS_FORWARD_SAFE_NSIPRESENTATIONRESPONDINGLISTENER(_to) \
228 : NS_IMETHOD NotifySessionConnect(uint64_t windowId, const nsAString & sessionId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifySessionConnect(windowId, sessionId); }
229 :
230 : #if 0
231 : /* Use the code below as a template for the implementation class for this interface. */
232 :
233 : /* Header file */
234 : class nsPresentationRespondingListener : public nsIPresentationRespondingListener
235 : {
236 : public:
237 : NS_DECL_ISUPPORTS
238 : NS_DECL_NSIPRESENTATIONRESPONDINGLISTENER
239 :
240 : nsPresentationRespondingListener();
241 :
242 : private:
243 : ~nsPresentationRespondingListener();
244 :
245 : protected:
246 : /* additional members */
247 : };
248 :
249 : /* Implementation file */
250 : NS_IMPL_ISUPPORTS(nsPresentationRespondingListener, nsIPresentationRespondingListener)
251 :
252 : nsPresentationRespondingListener::nsPresentationRespondingListener()
253 : {
254 : /* member initializers and constructor code */
255 : }
256 :
257 : nsPresentationRespondingListener::~nsPresentationRespondingListener()
258 : {
259 : /* destructor code */
260 : }
261 :
262 : /* void notifySessionConnect (in unsigned long long windowId, in DOMString sessionId); */
263 : NS_IMETHODIMP nsPresentationRespondingListener::NotifySessionConnect(uint64_t windowId, const nsAString & sessionId)
264 : {
265 : return NS_ERROR_NOT_IMPLEMENTED;
266 : }
267 :
268 : /* End of implementation class template. */
269 : #endif
270 :
271 :
272 : #endif /* __gen_nsIPresentationListener_h__ */
|