/usr/include/thunderbird/nsINetworkInfoService.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsINetworkInfoService.idl
*/
#ifndef __gen_nsINetworkInfoService_h__
#define __gen_nsINetworkInfoService_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
/* starting interface: nsIListNetworkAddressesListener */
#define NS_ILISTNETWORKADDRESSESLISTENER_IID_STR "c4bdaac1-3ab1-4fdb-9a16-17cbed794603"
#define NS_ILISTNETWORKADDRESSESLISTENER_IID \
{0xc4bdaac1, 0x3ab1, 0x4fdb, \
{ 0x9a, 0x16, 0x17, 0xcb, 0xed, 0x79, 0x46, 0x03 }}
class NS_NO_VTABLE nsIListNetworkAddressesListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILISTNETWORKADDRESSESLISTENER_IID)
/* void onListedNetworkAddresses ([array, size_is (aAddressArraySize)] in string aAddressArray, in unsigned long aAddressArraySize); */
NS_IMETHOD OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize) = 0;
/* void onListNetworkAddressesFailed (); */
NS_IMETHOD OnListNetworkAddressesFailed(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIListNetworkAddressesListener, NS_ILISTNETWORKADDRESSESLISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILISTNETWORKADDRESSESLISTENER \
NS_IMETHOD OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize) override; \
NS_IMETHOD OnListNetworkAddressesFailed(void) 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_NSILISTNETWORKADDRESSESLISTENER \
NS_METHOD OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize); \
NS_METHOD OnListNetworkAddressesFailed(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILISTNETWORKADDRESSESLISTENER(_to) \
NS_IMETHOD OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize) override { return _to OnListedNetworkAddresses(aAddressArray, aAddressArraySize); } \
NS_IMETHOD OnListNetworkAddressesFailed(void) override { return _to OnListNetworkAddressesFailed(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILISTNETWORKADDRESSESLISTENER(_to) \
NS_IMETHOD OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnListedNetworkAddresses(aAddressArray, aAddressArraySize); } \
NS_IMETHOD OnListNetworkAddressesFailed(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnListNetworkAddressesFailed(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsListNetworkAddressesListener : public nsIListNetworkAddressesListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSILISTNETWORKADDRESSESLISTENER
nsListNetworkAddressesListener();
private:
~nsListNetworkAddressesListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsListNetworkAddressesListener, nsIListNetworkAddressesListener)
nsListNetworkAddressesListener::nsListNetworkAddressesListener()
{
/* member initializers and constructor code */
}
nsListNetworkAddressesListener::~nsListNetworkAddressesListener()
{
/* destructor code */
}
/* void onListedNetworkAddresses ([array, size_is (aAddressArraySize)] in string aAddressArray, in unsigned long aAddressArraySize); */
NS_IMETHODIMP nsListNetworkAddressesListener::OnListedNetworkAddresses(const char * *aAddressArray, uint32_t aAddressArraySize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onListNetworkAddressesFailed (); */
NS_IMETHODIMP nsListNetworkAddressesListener::OnListNetworkAddressesFailed()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIGetHostnameListener */
#define NS_IGETHOSTNAMELISTENER_IID_STR "3ebdcb62-2df4-4042-8864-3fa81abd4693"
#define NS_IGETHOSTNAMELISTENER_IID \
{0x3ebdcb62, 0x2df4, 0x4042, \
{ 0x88, 0x64, 0x3f, 0xa8, 0x1a, 0xbd, 0x46, 0x93 }}
class NS_NO_VTABLE nsIGetHostnameListener : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IGETHOSTNAMELISTENER_IID)
/* void onGotHostname (in AUTF8String aHostname); */
NS_IMETHOD OnGotHostname(const nsACString & aHostname) = 0;
/* void onGetHostnameFailed (); */
NS_IMETHOD OnGetHostnameFailed(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIGetHostnameListener, NS_IGETHOSTNAMELISTENER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIGETHOSTNAMELISTENER \
NS_IMETHOD OnGotHostname(const nsACString & aHostname) override; \
NS_IMETHOD OnGetHostnameFailed(void) 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_NSIGETHOSTNAMELISTENER \
NS_METHOD OnGotHostname(const nsACString & aHostname); \
NS_METHOD OnGetHostnameFailed(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIGETHOSTNAMELISTENER(_to) \
NS_IMETHOD OnGotHostname(const nsACString & aHostname) override { return _to OnGotHostname(aHostname); } \
NS_IMETHOD OnGetHostnameFailed(void) override { return _to OnGetHostnameFailed(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIGETHOSTNAMELISTENER(_to) \
NS_IMETHOD OnGotHostname(const nsACString & aHostname) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnGotHostname(aHostname); } \
NS_IMETHOD OnGetHostnameFailed(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnGetHostnameFailed(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsGetHostnameListener : public nsIGetHostnameListener
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIGETHOSTNAMELISTENER
nsGetHostnameListener();
private:
~nsGetHostnameListener();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsGetHostnameListener, nsIGetHostnameListener)
nsGetHostnameListener::nsGetHostnameListener()
{
/* member initializers and constructor code */
}
nsGetHostnameListener::~nsGetHostnameListener()
{
/* destructor code */
}
/* void onGotHostname (in AUTF8String aHostname); */
NS_IMETHODIMP nsGetHostnameListener::OnGotHostname(const nsACString & aHostname)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onGetHostnameFailed (); */
NS_IMETHODIMP nsGetHostnameListener::OnGetHostnameFailed()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsINetworkInfoService */
#define NS_INETWORKINFOSERVICE_IID_STR "55fc8dae-4a58-4e0f-a49b-901cbabae809"
#define NS_INETWORKINFOSERVICE_IID \
{0x55fc8dae, 0x4a58, 0x4e0f, \
{ 0xa4, 0x9b, 0x90, 0x1c, 0xba, 0xba, 0xe8, 0x09 }}
class NS_NO_VTABLE nsINetworkInfoService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_INETWORKINFOSERVICE_IID)
/* void listNetworkAddresses (in nsIListNetworkAddressesListener aListener); */
NS_IMETHOD ListNetworkAddresses(nsIListNetworkAddressesListener *aListener) = 0;
/* void getHostname (in nsIGetHostnameListener aListener); */
NS_IMETHOD GetHostname(nsIGetHostnameListener *aListener) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsINetworkInfoService, NS_INETWORKINFOSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINETWORKINFOSERVICE \
NS_IMETHOD ListNetworkAddresses(nsIListNetworkAddressesListener *aListener) override; \
NS_IMETHOD GetHostname(nsIGetHostnameListener *aListener) 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_NSINETWORKINFOSERVICE \
NS_METHOD ListNetworkAddresses(nsIListNetworkAddressesListener *aListener); \
NS_METHOD GetHostname(nsIGetHostnameListener *aListener);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINETWORKINFOSERVICE(_to) \
NS_IMETHOD ListNetworkAddresses(nsIListNetworkAddressesListener *aListener) override { return _to ListNetworkAddresses(aListener); } \
NS_IMETHOD GetHostname(nsIGetHostnameListener *aListener) override { return _to GetHostname(aListener); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINETWORKINFOSERVICE(_to) \
NS_IMETHOD ListNetworkAddresses(nsIListNetworkAddressesListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ListNetworkAddresses(aListener); } \
NS_IMETHOD GetHostname(nsIGetHostnameListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostname(aListener); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsNetworkInfoService : public nsINetworkInfoService
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSINETWORKINFOSERVICE
nsNetworkInfoService();
private:
~nsNetworkInfoService();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsNetworkInfoService, nsINetworkInfoService)
nsNetworkInfoService::nsNetworkInfoService()
{
/* member initializers and constructor code */
}
nsNetworkInfoService::~nsNetworkInfoService()
{
/* destructor code */
}
/* void listNetworkAddresses (in nsIListNetworkAddressesListener aListener); */
NS_IMETHODIMP nsNetworkInfoService::ListNetworkAddresses(nsIListNetworkAddressesListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void getHostname (in nsIGetHostnameListener aListener); */
NS_IMETHODIMP nsNetworkInfoService::GetHostname(nsIGetHostnameListener *aListener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#define NETWORKINFOSERVICE_CONTRACT_ID \
"@mozilla.org/network-info-service;1"
#endif /* __gen_nsINetworkInfoService_h__ */
|