/work/obj-fuzz/dist/include/nsIPresentationControlService.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * DO NOT EDIT. THIS FILE IS GENERATED FROM /src/mozilla-central/dom/presentation/interfaces/nsIPresentationControlService.idl |
3 | | */ |
4 | | |
5 | | #ifndef __gen_nsIPresentationControlService_h__ |
6 | | #define __gen_nsIPresentationControlService_h__ |
7 | | |
8 | | |
9 | | #ifndef __gen_nsISupports_h__ |
10 | | #include "nsISupports.h" |
11 | | #endif |
12 | | |
13 | | #include "js/GCAnnotations.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 | | class nsIPresentationControlChannel; /* forward declaration */ |
20 | | |
21 | | #define PRESENTATION_CONTROL_SERVICE_CONTACT_ID \ |
22 | 0 | "@mozilla.org/presentation/control-service;1" |
23 | | |
24 | | /* starting interface: nsITCPDeviceInfo */ |
25 | | #define NS_ITCPDEVICEINFO_IID_STR "296fd171-e4d0-4de0-99ff-ad8ed52ddef3" |
26 | | |
27 | | #define NS_ITCPDEVICEINFO_IID \ |
28 | | {0x296fd171, 0xe4d0, 0x4de0, \ |
29 | | { 0x99, 0xff, 0xad, 0x8e, 0xd5, 0x2d, 0xde, 0xf3 }} |
30 | | |
31 | | class NS_NO_VTABLE nsITCPDeviceInfo : public nsISupports { |
32 | | public: |
33 | | |
34 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITCPDEVICEINFO_IID) |
35 | | |
36 | | /* readonly attribute AUTF8String id; */ |
37 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetId(nsACString& aId) = 0; |
38 | | |
39 | | /* readonly attribute AUTF8String address; */ |
40 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAddress(nsACString& aAddress) = 0; |
41 | | |
42 | | /* readonly attribute uint16_t port; */ |
43 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPort(uint16_t *aPort) = 0; |
44 | | |
45 | | /* readonly attribute AUTF8String certFingerprint; */ |
46 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCertFingerprint(nsACString& aCertFingerprint) = 0; |
47 | | |
48 | | }; |
49 | | |
50 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsITCPDeviceInfo, NS_ITCPDEVICEINFO_IID) |
51 | | |
52 | | /* Use this macro when declaring classes that implement this interface. */ |
53 | | #define NS_DECL_NSITCPDEVICEINFO \ |
54 | | NS_IMETHOD GetId(nsACString& aId) override; \ |
55 | | NS_IMETHOD GetAddress(nsACString& aAddress) override; \ |
56 | | NS_IMETHOD GetPort(uint16_t *aPort) override; \ |
57 | | NS_IMETHOD GetCertFingerprint(nsACString& aCertFingerprint) override; |
58 | | |
59 | | /* Use this macro when declaring the members of this interface when the |
60 | | class doesn't implement the interface. This is useful for forwarding. */ |
61 | | #define NS_DECL_NON_VIRTUAL_NSITCPDEVICEINFO \ |
62 | | nsresult GetId(nsACString& aId); \ |
63 | | nsresult GetAddress(nsACString& aAddress); \ |
64 | | nsresult GetPort(uint16_t *aPort); \ |
65 | | nsresult GetCertFingerprint(nsACString& aCertFingerprint); |
66 | | |
67 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
68 | | #define NS_FORWARD_NSITCPDEVICEINFO(_to) \ |
69 | | NS_IMETHOD GetId(nsACString& aId) override { return _to GetId(aId); } \ |
70 | | NS_IMETHOD GetAddress(nsACString& aAddress) override { return _to GetAddress(aAddress); } \ |
71 | | NS_IMETHOD GetPort(uint16_t *aPort) override { return _to GetPort(aPort); } \ |
72 | | NS_IMETHOD GetCertFingerprint(nsACString& aCertFingerprint) override { return _to GetCertFingerprint(aCertFingerprint); } |
73 | | |
74 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
75 | | #define NS_FORWARD_SAFE_NSITCPDEVICEINFO(_to) \ |
76 | | NS_IMETHOD GetId(nsACString& aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \ |
77 | | NS_IMETHOD GetAddress(nsACString& aAddress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddress(aAddress); } \ |
78 | | NS_IMETHOD GetPort(uint16_t *aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \ |
79 | | NS_IMETHOD GetCertFingerprint(nsACString& aCertFingerprint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertFingerprint(aCertFingerprint); } |
80 | | |
81 | | |
82 | | /* starting interface: nsIPresentationControlServerListener */ |
83 | | #define NS_IPRESENTATIONCONTROLSERVERLISTENER_IID_STR "09bddfaf-fcc2-4dc9-b33e-a509a1c2fb6d" |
84 | | |
85 | | #define NS_IPRESENTATIONCONTROLSERVERLISTENER_IID \ |
86 | | {0x09bddfaf, 0xfcc2, 0x4dc9, \ |
87 | | { 0xb3, 0x3e, 0xa5, 0x09, 0xa1, 0xc2, 0xfb, 0x6d }} |
88 | | |
89 | | class NS_NO_VTABLE nsIPresentationControlServerListener : public nsISupports { |
90 | | public: |
91 | | |
92 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONCONTROLSERVERLISTENER_IID) |
93 | | |
94 | | /* void onServerReady (in uint16_t aPort, in AUTF8String aCertFingerprint); */ |
95 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnServerReady(uint16_t aPort, const nsACString& aCertFingerprint) = 0; |
96 | | |
97 | | /* void onServerStopped (in nsresult aResult); */ |
98 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnServerStopped(nsresult aResult) = 0; |
99 | | |
100 | | /* void onSessionRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString aUrl, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel); */ |
101 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& aUrl, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel) = 0; |
102 | | |
103 | | /* void onTerminateRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel, in boolean aIsFromReceiver); */ |
104 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver) = 0; |
105 | | |
106 | | /* void onReconnectRequest (in nsITCPDeviceInfo aDeviceInfo, in DOMString url, in DOMString aPresentationId, in nsIPresentationControlChannel aControlChannel); */ |
107 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& url, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel) = 0; |
108 | | |
109 | | }; |
110 | | |
111 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationControlServerListener, NS_IPRESENTATIONCONTROLSERVERLISTENER_IID) |
112 | | |
113 | | /* Use this macro when declaring classes that implement this interface. */ |
114 | | #define NS_DECL_NSIPRESENTATIONCONTROLSERVERLISTENER \ |
115 | | NS_IMETHOD OnServerReady(uint16_t aPort, const nsACString& aCertFingerprint) override; \ |
116 | | NS_IMETHOD OnServerStopped(nsresult aResult) override; \ |
117 | | NS_IMETHOD OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& aUrl, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel) override; \ |
118 | | NS_IMETHOD OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver) override; \ |
119 | | NS_IMETHOD OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& url, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel) override; |
120 | | |
121 | | /* Use this macro when declaring the members of this interface when the |
122 | | class doesn't implement the interface. This is useful for forwarding. */ |
123 | | #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONCONTROLSERVERLISTENER \ |
124 | | nsresult OnServerReady(uint16_t aPort, const nsACString& aCertFingerprint); \ |
125 | | nsresult OnServerStopped(nsresult aResult); \ |
126 | | nsresult OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& aUrl, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel); \ |
127 | | nsresult OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver); \ |
128 | | nsresult OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& url, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel); |
129 | | |
130 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
131 | | #define NS_FORWARD_NSIPRESENTATIONCONTROLSERVERLISTENER(_to) \ |
132 | | NS_IMETHOD OnServerReady(uint16_t aPort, const nsACString& aCertFingerprint) override { return _to OnServerReady(aPort, aCertFingerprint); } \ |
133 | | NS_IMETHOD OnServerStopped(nsresult aResult) override { return _to OnServerStopped(aResult); } \ |
134 | | NS_IMETHOD OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& aUrl, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel) override { return _to OnSessionRequest(aDeviceInfo, aUrl, aPresentationId, aControlChannel); } \ |
135 | | NS_IMETHOD OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver) override { return _to OnTerminateRequest(aDeviceInfo, aPresentationId, aControlChannel, aIsFromReceiver); } \ |
136 | | NS_IMETHOD OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& url, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel) override { return _to OnReconnectRequest(aDeviceInfo, url, aPresentationId, aControlChannel); } |
137 | | |
138 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
139 | | #define NS_FORWARD_SAFE_NSIPRESENTATIONCONTROLSERVERLISTENER(_to) \ |
140 | 0 | NS_IMETHOD OnServerReady(uint16_t aPort, const nsACString& aCertFingerprint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnServerReady(aPort, aCertFingerprint); } \ |
141 | 0 | NS_IMETHOD OnServerStopped(nsresult aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnServerStopped(aResult); } \ |
142 | 0 | NS_IMETHOD OnSessionRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& aUrl, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSessionRequest(aDeviceInfo, aUrl, aPresentationId, aControlChannel); } \ |
143 | 0 | NS_IMETHOD OnTerminateRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel, bool aIsFromReceiver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnTerminateRequest(aDeviceInfo, aPresentationId, aControlChannel, aIsFromReceiver); } \ |
144 | 0 | NS_IMETHOD OnReconnectRequest(nsITCPDeviceInfo *aDeviceInfo, const nsAString& url, const nsAString& aPresentationId, nsIPresentationControlChannel *aControlChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnReconnectRequest(aDeviceInfo, url, aPresentationId, aControlChannel); } |
145 | | |
146 | | |
147 | | /* starting interface: nsIPresentationControlService */ |
148 | | #define NS_IPRESENTATIONCONTROLSERVICE_IID_STR "55d6b605-2389-4aae-a8fe-60d4440540ea" |
149 | | |
150 | | #define NS_IPRESENTATIONCONTROLSERVICE_IID \ |
151 | | {0x55d6b605, 0x2389, 0x4aae, \ |
152 | | { 0xa8, 0xfe, 0x60, 0xd4, 0x44, 0x05, 0x40, 0xea }} |
153 | | |
154 | | class NS_NO_VTABLE nsIPresentationControlService : public nsISupports { |
155 | | public: |
156 | | |
157 | | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONCONTROLSERVICE_IID) |
158 | | |
159 | | /* void startServer (in boolean aEncrypted, [optional] in uint16_t aPort); */ |
160 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StartServer(bool aEncrypted, uint16_t aPort) = 0; |
161 | | |
162 | | /* nsIPresentationControlChannel connect (in nsITCPDeviceInfo aDeviceInfo); */ |
163 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel **_retval) = 0; |
164 | | |
165 | | /* boolean isCompatibleServer (in uint32_t aVersion); */ |
166 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsCompatibleServer(uint32_t aVersion, bool *_retval) = 0; |
167 | | |
168 | | /* void close (); */ |
169 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Close(void) = 0; |
170 | | |
171 | | /* readonly attribute uint16_t port; */ |
172 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPort(uint16_t *aPort) = 0; |
173 | | |
174 | | /* readonly attribute uint32_t version; */ |
175 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetVersion(uint32_t *aVersion) = 0; |
176 | | |
177 | | /* attribute AUTF8String id; */ |
178 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetId(nsACString& aId) = 0; |
179 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetId(const nsACString& aId) = 0; |
180 | | |
181 | | /* attribute AUTF8String certFingerprint; */ |
182 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCertFingerprint(nsACString& aCertFingerprint) = 0; |
183 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCertFingerprint(const nsACString& aCertFingerprint) = 0; |
184 | | |
185 | | /* attribute nsIPresentationControlServerListener listener; */ |
186 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetListener(nsIPresentationControlServerListener **aListener) = 0; |
187 | | JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetListener(nsIPresentationControlServerListener *aListener) = 0; |
188 | | |
189 | | }; |
190 | | |
191 | | NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationControlService, NS_IPRESENTATIONCONTROLSERVICE_IID) |
192 | | |
193 | | /* Use this macro when declaring classes that implement this interface. */ |
194 | | #define NS_DECL_NSIPRESENTATIONCONTROLSERVICE \ |
195 | | NS_IMETHOD StartServer(bool aEncrypted, uint16_t aPort) override; \ |
196 | | NS_IMETHOD Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel **_retval) override; \ |
197 | | NS_IMETHOD IsCompatibleServer(uint32_t aVersion, bool *_retval) override; \ |
198 | | NS_IMETHOD Close(void) override; \ |
199 | | NS_IMETHOD GetPort(uint16_t *aPort) override; \ |
200 | | NS_IMETHOD GetVersion(uint32_t *aVersion) override; \ |
201 | | NS_IMETHOD GetId(nsACString& aId) override; \ |
202 | | NS_IMETHOD SetId(const nsACString& aId) override; \ |
203 | | NS_IMETHOD GetCertFingerprint(nsACString& aCertFingerprint) override; \ |
204 | | NS_IMETHOD SetCertFingerprint(const nsACString& aCertFingerprint) override; \ |
205 | | NS_IMETHOD GetListener(nsIPresentationControlServerListener **aListener) override; \ |
206 | | NS_IMETHOD SetListener(nsIPresentationControlServerListener *aListener) override; |
207 | | |
208 | | /* Use this macro when declaring the members of this interface when the |
209 | | class doesn't implement the interface. This is useful for forwarding. */ |
210 | | #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONCONTROLSERVICE \ |
211 | | nsresult StartServer(bool aEncrypted, uint16_t aPort); \ |
212 | | nsresult Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel **_retval); \ |
213 | | nsresult IsCompatibleServer(uint32_t aVersion, bool *_retval); \ |
214 | | nsresult Close(void); \ |
215 | | nsresult GetPort(uint16_t *aPort); \ |
216 | | nsresult GetVersion(uint32_t *aVersion); \ |
217 | | nsresult GetId(nsACString& aId); \ |
218 | | nsresult SetId(const nsACString& aId); \ |
219 | | nsresult GetCertFingerprint(nsACString& aCertFingerprint); \ |
220 | | nsresult SetCertFingerprint(const nsACString& aCertFingerprint); \ |
221 | | nsresult GetListener(nsIPresentationControlServerListener **aListener); \ |
222 | | nsresult SetListener(nsIPresentationControlServerListener *aListener); |
223 | | |
224 | | /* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
225 | | #define NS_FORWARD_NSIPRESENTATIONCONTROLSERVICE(_to) \ |
226 | | NS_IMETHOD StartServer(bool aEncrypted, uint16_t aPort) override { return _to StartServer(aEncrypted, aPort); } \ |
227 | | NS_IMETHOD Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel **_retval) override { return _to Connect(aDeviceInfo, _retval); } \ |
228 | | NS_IMETHOD IsCompatibleServer(uint32_t aVersion, bool *_retval) override { return _to IsCompatibleServer(aVersion, _retval); } \ |
229 | | NS_IMETHOD Close(void) override { return _to Close(); } \ |
230 | | NS_IMETHOD GetPort(uint16_t *aPort) override { return _to GetPort(aPort); } \ |
231 | | NS_IMETHOD GetVersion(uint32_t *aVersion) override { return _to GetVersion(aVersion); } \ |
232 | | NS_IMETHOD GetId(nsACString& aId) override { return _to GetId(aId); } \ |
233 | | NS_IMETHOD SetId(const nsACString& aId) override { return _to SetId(aId); } \ |
234 | | NS_IMETHOD GetCertFingerprint(nsACString& aCertFingerprint) override { return _to GetCertFingerprint(aCertFingerprint); } \ |
235 | | NS_IMETHOD SetCertFingerprint(const nsACString& aCertFingerprint) override { return _to SetCertFingerprint(aCertFingerprint); } \ |
236 | | NS_IMETHOD GetListener(nsIPresentationControlServerListener **aListener) override { return _to GetListener(aListener); } \ |
237 | | NS_IMETHOD SetListener(nsIPresentationControlServerListener *aListener) override { return _to SetListener(aListener); } |
238 | | |
239 | | /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
240 | | #define NS_FORWARD_SAFE_NSIPRESENTATIONCONTROLSERVICE(_to) \ |
241 | | NS_IMETHOD StartServer(bool aEncrypted, uint16_t aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartServer(aEncrypted, aPort); } \ |
242 | | NS_IMETHOD Connect(nsITCPDeviceInfo *aDeviceInfo, nsIPresentationControlChannel **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Connect(aDeviceInfo, _retval); } \ |
243 | | NS_IMETHOD IsCompatibleServer(uint32_t aVersion, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCompatibleServer(aVersion, _retval); } \ |
244 | | NS_IMETHOD Close(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \ |
245 | | NS_IMETHOD GetPort(uint16_t *aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \ |
246 | | NS_IMETHOD GetVersion(uint32_t *aVersion) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersion(aVersion); } \ |
247 | | NS_IMETHOD GetId(nsACString& aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \ |
248 | | NS_IMETHOD SetId(const nsACString& aId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \ |
249 | | NS_IMETHOD GetCertFingerprint(nsACString& aCertFingerprint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertFingerprint(aCertFingerprint); } \ |
250 | | NS_IMETHOD SetCertFingerprint(const nsACString& aCertFingerprint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCertFingerprint(aCertFingerprint); } \ |
251 | | NS_IMETHOD GetListener(nsIPresentationControlServerListener **aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \ |
252 | | NS_IMETHOD SetListener(nsIPresentationControlServerListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); } |
253 | | |
254 | | |
255 | | #endif /* __gen_nsIPresentationControlService_h__ */ |