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