Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPresentationDeviceProvider.idl
3 : */
4 :
5 : #ifndef __gen_nsIPresentationDeviceProvider_h__
6 : #define __gen_nsIPresentationDeviceProvider_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 nsIPresentationDevice; /* forward declaration */
18 :
19 : class nsIPresentationControlChannel; /* forward declaration */
20 :
21 : #define PRESENTATION_DEVICE_PROVIDER_CATEGORY "presentation-device-provider"
22 :
23 : /* starting interface: nsIPresentationDeviceListener */
24 : #define NS_IPRESENTATIONDEVICELISTENER_IID_STR "46fd372b-2e40-4179-9b36-0478d141e440"
25 :
26 : #define NS_IPRESENTATIONDEVICELISTENER_IID \
27 : {0x46fd372b, 0x2e40, 0x4179, \
28 : { 0x9b, 0x36, 0x04, 0x78, 0xd1, 0x41, 0xe4, 0x40 }}
29 :
30 1 : class NS_NO_VTABLE nsIPresentationDeviceListener : public nsISupports {
31 : public:
32 :
33 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONDEVICELISTENER_IID)
34 :
35 : /* void addDevice (in nsIPresentationDevice device); */
36 : NS_IMETHOD AddDevice(nsIPresentationDevice *device) = 0;
37 :
38 : /* void removeDevice (in nsIPresentationDevice device); */
39 : NS_IMETHOD RemoveDevice(nsIPresentationDevice *device) = 0;
40 :
41 : /* void updateDevice (in nsIPresentationDevice device); */
42 : NS_IMETHOD UpdateDevice(nsIPresentationDevice *device) = 0;
43 :
44 : /* void onSessionRequest (in nsIPresentationDevice device, in DOMString url, in DOMString presentationId, in nsIPresentationControlChannel controlChannel); */
45 : NS_IMETHOD OnSessionRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel) = 0;
46 :
47 : /* void onTerminateRequest (in nsIPresentationDevice device, in DOMString presentationId, in nsIPresentationControlChannel controlChannel, in boolean aIsFromReceiver); */
48 : NS_IMETHOD OnTerminateRequest(nsIPresentationDevice *device, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel, bool aIsFromReceiver) = 0;
49 :
50 : /* void onReconnectRequest (in nsIPresentationDevice device, in DOMString url, in DOMString presentationId, in nsIPresentationControlChannel controlChannel); */
51 : NS_IMETHOD OnReconnectRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel) = 0;
52 :
53 : };
54 :
55 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationDeviceListener, NS_IPRESENTATIONDEVICELISTENER_IID)
56 :
57 : /* Use this macro when declaring classes that implement this interface. */
58 : #define NS_DECL_NSIPRESENTATIONDEVICELISTENER \
59 : NS_IMETHOD AddDevice(nsIPresentationDevice *device) override; \
60 : NS_IMETHOD RemoveDevice(nsIPresentationDevice *device) override; \
61 : NS_IMETHOD UpdateDevice(nsIPresentationDevice *device) override; \
62 : NS_IMETHOD OnSessionRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel) override; \
63 : NS_IMETHOD OnTerminateRequest(nsIPresentationDevice *device, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel, bool aIsFromReceiver) override; \
64 : NS_IMETHOD OnReconnectRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel) override;
65 :
66 : /* Use this macro when declaring the members of this interface when the
67 : class doesn't implement the interface. This is useful for forwarding. */
68 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONDEVICELISTENER \
69 : nsresult AddDevice(nsIPresentationDevice *device); \
70 : nsresult RemoveDevice(nsIPresentationDevice *device); \
71 : nsresult UpdateDevice(nsIPresentationDevice *device); \
72 : nsresult OnSessionRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel); \
73 : nsresult OnTerminateRequest(nsIPresentationDevice *device, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel, bool aIsFromReceiver); \
74 : nsresult OnReconnectRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel);
75 :
76 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
77 : #define NS_FORWARD_NSIPRESENTATIONDEVICELISTENER(_to) \
78 : NS_IMETHOD AddDevice(nsIPresentationDevice *device) override { return _to AddDevice(device); } \
79 : NS_IMETHOD RemoveDevice(nsIPresentationDevice *device) override { return _to RemoveDevice(device); } \
80 : NS_IMETHOD UpdateDevice(nsIPresentationDevice *device) override { return _to UpdateDevice(device); } \
81 : NS_IMETHOD OnSessionRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel) override { return _to OnSessionRequest(device, url, presentationId, controlChannel); } \
82 : NS_IMETHOD OnTerminateRequest(nsIPresentationDevice *device, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel, bool aIsFromReceiver) override { return _to OnTerminateRequest(device, presentationId, controlChannel, aIsFromReceiver); } \
83 : NS_IMETHOD OnReconnectRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel) override { return _to OnReconnectRequest(device, url, presentationId, controlChannel); }
84 :
85 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
86 : #define NS_FORWARD_SAFE_NSIPRESENTATIONDEVICELISTENER(_to) \
87 : NS_IMETHOD AddDevice(nsIPresentationDevice *device) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddDevice(device); } \
88 : NS_IMETHOD RemoveDevice(nsIPresentationDevice *device) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveDevice(device); } \
89 : NS_IMETHOD UpdateDevice(nsIPresentationDevice *device) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateDevice(device); } \
90 : NS_IMETHOD OnSessionRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSessionRequest(device, url, presentationId, controlChannel); } \
91 : NS_IMETHOD OnTerminateRequest(nsIPresentationDevice *device, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel, bool aIsFromReceiver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTerminateRequest(device, presentationId, controlChannel, aIsFromReceiver); } \
92 : NS_IMETHOD OnReconnectRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnReconnectRequest(device, url, presentationId, controlChannel); }
93 :
94 : #if 0
95 : /* Use the code below as a template for the implementation class for this interface. */
96 :
97 : /* Header file */
98 : class nsPresentationDeviceListener : public nsIPresentationDeviceListener
99 : {
100 : public:
101 : NS_DECL_ISUPPORTS
102 : NS_DECL_NSIPRESENTATIONDEVICELISTENER
103 :
104 : nsPresentationDeviceListener();
105 :
106 : private:
107 : ~nsPresentationDeviceListener();
108 :
109 : protected:
110 : /* additional members */
111 : };
112 :
113 : /* Implementation file */
114 : NS_IMPL_ISUPPORTS(nsPresentationDeviceListener, nsIPresentationDeviceListener)
115 :
116 : nsPresentationDeviceListener::nsPresentationDeviceListener()
117 : {
118 : /* member initializers and constructor code */
119 : }
120 :
121 : nsPresentationDeviceListener::~nsPresentationDeviceListener()
122 : {
123 : /* destructor code */
124 : }
125 :
126 : /* void addDevice (in nsIPresentationDevice device); */
127 : NS_IMETHODIMP nsPresentationDeviceListener::AddDevice(nsIPresentationDevice *device)
128 : {
129 : return NS_ERROR_NOT_IMPLEMENTED;
130 : }
131 :
132 : /* void removeDevice (in nsIPresentationDevice device); */
133 : NS_IMETHODIMP nsPresentationDeviceListener::RemoveDevice(nsIPresentationDevice *device)
134 : {
135 : return NS_ERROR_NOT_IMPLEMENTED;
136 : }
137 :
138 : /* void updateDevice (in nsIPresentationDevice device); */
139 : NS_IMETHODIMP nsPresentationDeviceListener::UpdateDevice(nsIPresentationDevice *device)
140 : {
141 : return NS_ERROR_NOT_IMPLEMENTED;
142 : }
143 :
144 : /* void onSessionRequest (in nsIPresentationDevice device, in DOMString url, in DOMString presentationId, in nsIPresentationControlChannel controlChannel); */
145 : NS_IMETHODIMP nsPresentationDeviceListener::OnSessionRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel)
146 : {
147 : return NS_ERROR_NOT_IMPLEMENTED;
148 : }
149 :
150 : /* void onTerminateRequest (in nsIPresentationDevice device, in DOMString presentationId, in nsIPresentationControlChannel controlChannel, in boolean aIsFromReceiver); */
151 : NS_IMETHODIMP nsPresentationDeviceListener::OnTerminateRequest(nsIPresentationDevice *device, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel, bool aIsFromReceiver)
152 : {
153 : return NS_ERROR_NOT_IMPLEMENTED;
154 : }
155 :
156 : /* void onReconnectRequest (in nsIPresentationDevice device, in DOMString url, in DOMString presentationId, in nsIPresentationControlChannel controlChannel); */
157 : NS_IMETHODIMP nsPresentationDeviceListener::OnReconnectRequest(nsIPresentationDevice *device, const nsAString & url, const nsAString & presentationId, nsIPresentationControlChannel *controlChannel)
158 : {
159 : return NS_ERROR_NOT_IMPLEMENTED;
160 : }
161 :
162 : /* End of implementation class template. */
163 : #endif
164 :
165 :
166 : /* starting interface: nsIPresentationDeviceProvider */
167 : #define NS_IPRESENTATIONDEVICEPROVIDER_IID_STR "3db2578a-0f50-44ad-b01b-28427b71b7bf"
168 :
169 : #define NS_IPRESENTATIONDEVICEPROVIDER_IID \
170 : {0x3db2578a, 0x0f50, 0x44ad, \
171 : { 0xb0, 0x1b, 0x28, 0x42, 0x7b, 0x71, 0xb7, 0xbf }}
172 :
173 0 : class NS_NO_VTABLE nsIPresentationDeviceProvider : public nsISupports {
174 : public:
175 :
176 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONDEVICEPROVIDER_IID)
177 :
178 : /* attribute nsIPresentationDeviceListener listener; */
179 : NS_IMETHOD GetListener(nsIPresentationDeviceListener * *aListener) = 0;
180 : NS_IMETHOD SetListener(nsIPresentationDeviceListener *aListener) = 0;
181 :
182 : /* void forceDiscovery (); */
183 : NS_IMETHOD ForceDiscovery(void) = 0;
184 :
185 : };
186 :
187 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationDeviceProvider, NS_IPRESENTATIONDEVICEPROVIDER_IID)
188 :
189 : /* Use this macro when declaring classes that implement this interface. */
190 : #define NS_DECL_NSIPRESENTATIONDEVICEPROVIDER \
191 : NS_IMETHOD GetListener(nsIPresentationDeviceListener * *aListener) override; \
192 : NS_IMETHOD SetListener(nsIPresentationDeviceListener *aListener) override; \
193 : NS_IMETHOD ForceDiscovery(void) override;
194 :
195 : /* Use this macro when declaring the members of this interface when the
196 : class doesn't implement the interface. This is useful for forwarding. */
197 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONDEVICEPROVIDER \
198 : nsresult GetListener(nsIPresentationDeviceListener * *aListener); \
199 : nsresult SetListener(nsIPresentationDeviceListener *aListener); \
200 : nsresult ForceDiscovery(void);
201 :
202 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
203 : #define NS_FORWARD_NSIPRESENTATIONDEVICEPROVIDER(_to) \
204 : NS_IMETHOD GetListener(nsIPresentationDeviceListener * *aListener) override { return _to GetListener(aListener); } \
205 : NS_IMETHOD SetListener(nsIPresentationDeviceListener *aListener) override { return _to SetListener(aListener); } \
206 : NS_IMETHOD ForceDiscovery(void) override { return _to ForceDiscovery(); }
207 :
208 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
209 : #define NS_FORWARD_SAFE_NSIPRESENTATIONDEVICEPROVIDER(_to) \
210 : NS_IMETHOD GetListener(nsIPresentationDeviceListener * *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
211 : NS_IMETHOD SetListener(nsIPresentationDeviceListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); } \
212 : NS_IMETHOD ForceDiscovery(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceDiscovery(); }
213 :
214 : #if 0
215 : /* Use the code below as a template for the implementation class for this interface. */
216 :
217 : /* Header file */
218 : class nsPresentationDeviceProvider : public nsIPresentationDeviceProvider
219 : {
220 : public:
221 : NS_DECL_ISUPPORTS
222 : NS_DECL_NSIPRESENTATIONDEVICEPROVIDER
223 :
224 : nsPresentationDeviceProvider();
225 :
226 : private:
227 : ~nsPresentationDeviceProvider();
228 :
229 : protected:
230 : /* additional members */
231 : };
232 :
233 : /* Implementation file */
234 : NS_IMPL_ISUPPORTS(nsPresentationDeviceProvider, nsIPresentationDeviceProvider)
235 :
236 : nsPresentationDeviceProvider::nsPresentationDeviceProvider()
237 : {
238 : /* member initializers and constructor code */
239 : }
240 :
241 : nsPresentationDeviceProvider::~nsPresentationDeviceProvider()
242 : {
243 : /* destructor code */
244 : }
245 :
246 : /* attribute nsIPresentationDeviceListener listener; */
247 : NS_IMETHODIMP nsPresentationDeviceProvider::GetListener(nsIPresentationDeviceListener * *aListener)
248 : {
249 : return NS_ERROR_NOT_IMPLEMENTED;
250 : }
251 : NS_IMETHODIMP nsPresentationDeviceProvider::SetListener(nsIPresentationDeviceListener *aListener)
252 : {
253 : return NS_ERROR_NOT_IMPLEMENTED;
254 : }
255 :
256 : /* void forceDiscovery (); */
257 : NS_IMETHODIMP nsPresentationDeviceProvider::ForceDiscovery()
258 : {
259 : return NS_ERROR_NOT_IMPLEMENTED;
260 : }
261 :
262 : /* End of implementation class template. */
263 : #endif
264 :
265 :
266 : #endif /* __gen_nsIPresentationDeviceProvider_h__ */
|