1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/dns/nsIDNSService.idl
3 : */
4 :
5 : #ifndef __gen_nsIDNSService_h__
6 : #define __gen_nsIDNSService_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 nsICancelable; /* forward declaration */
18 :
19 : class nsIEventTarget; /* forward declaration */
20 :
21 : class nsIDNSRecord; /* forward declaration */
22 :
23 : class nsIDNSListener; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIDNSService */
27 : #define NS_IDNSSERVICE_IID_STR "f6e05cc3-8a13-463d-877f-d59b20b59724"
28 :
29 : #define NS_IDNSSERVICE_IID \
30 : {0xf6e05cc3, 0x8a13, 0x463d, \
31 : { 0x87, 0x7f, 0xd5, 0x9b, 0x20, 0xb5, 0x97, 0x24 }}
32 :
33 1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDNSService : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDNSSERVICE_IID)
37 :
38 : /* nsICancelable asyncResolve (in AUTF8String aHostName, in unsigned long aFlags, in nsIDNSListener aListener, in nsIEventTarget aListenerTarget); */
39 : NS_SCRIPTABLE NS_IMETHOD AsyncResolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSListener *aListener, nsIEventTarget *aListenerTarget, nsICancelable * *_retval NS_OUTPARAM) = 0;
40 :
41 : /* void cancelAsyncResolve (in AUTF8String aHostName, in unsigned long aFlags, in nsIDNSListener aListener, in nsresult aReason); */
42 : NS_SCRIPTABLE NS_IMETHOD CancelAsyncResolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSListener *aListener, nsresult aReason) = 0;
43 :
44 : /* nsIDNSRecord resolve (in AUTF8String aHostName, in unsigned long aFlags); */
45 : NS_SCRIPTABLE NS_IMETHOD Resolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSRecord * *_retval NS_OUTPARAM) = 0;
46 :
47 : /* readonly attribute AUTF8String myHostName; */
48 : NS_SCRIPTABLE NS_IMETHOD GetMyHostName(nsACString & aMyHostName) = 0;
49 :
50 : enum {
51 : RESOLVE_BYPASS_CACHE = 1U,
52 : RESOLVE_CANONICAL_NAME = 2U,
53 : RESOLVE_PRIORITY_MEDIUM = 4U,
54 : RESOLVE_PRIORITY_LOW = 8U,
55 : RESOLVE_SPECULATE = 16U,
56 : RESOLVE_DISABLE_IPV6 = 32U
57 : };
58 :
59 : };
60 :
61 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDNSService, NS_IDNSSERVICE_IID)
62 :
63 : /* Use this macro when declaring classes that implement this interface. */
64 : #define NS_DECL_NSIDNSSERVICE \
65 : NS_SCRIPTABLE NS_IMETHOD AsyncResolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSListener *aListener, nsIEventTarget *aListenerTarget, nsICancelable * *_retval NS_OUTPARAM); \
66 : NS_SCRIPTABLE NS_IMETHOD CancelAsyncResolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSListener *aListener, nsresult aReason); \
67 : NS_SCRIPTABLE NS_IMETHOD Resolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSRecord * *_retval NS_OUTPARAM); \
68 : NS_SCRIPTABLE NS_IMETHOD GetMyHostName(nsACString & aMyHostName); \
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
71 : #define NS_FORWARD_NSIDNSSERVICE(_to) \
72 : NS_SCRIPTABLE NS_IMETHOD AsyncResolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSListener *aListener, nsIEventTarget *aListenerTarget, nsICancelable * *_retval NS_OUTPARAM) { return _to AsyncResolve(aHostName, aFlags, aListener, aListenerTarget, _retval); } \
73 : NS_SCRIPTABLE NS_IMETHOD CancelAsyncResolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSListener *aListener, nsresult aReason) { return _to CancelAsyncResolve(aHostName, aFlags, aListener, aReason); } \
74 : NS_SCRIPTABLE NS_IMETHOD Resolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSRecord * *_retval NS_OUTPARAM) { return _to Resolve(aHostName, aFlags, _retval); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetMyHostName(nsACString & aMyHostName) { return _to GetMyHostName(aMyHostName); } \
76 :
77 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
78 : #define NS_FORWARD_SAFE_NSIDNSSERVICE(_to) \
79 : NS_SCRIPTABLE NS_IMETHOD AsyncResolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSListener *aListener, nsIEventTarget *aListenerTarget, nsICancelable * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncResolve(aHostName, aFlags, aListener, aListenerTarget, _retval); } \
80 : NS_SCRIPTABLE NS_IMETHOD CancelAsyncResolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSListener *aListener, nsresult aReason) { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelAsyncResolve(aHostName, aFlags, aListener, aReason); } \
81 : NS_SCRIPTABLE NS_IMETHOD Resolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSRecord * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Resolve(aHostName, aFlags, _retval); } \
82 : NS_SCRIPTABLE NS_IMETHOD GetMyHostName(nsACString & aMyHostName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMyHostName(aMyHostName); } \
83 :
84 : #if 0
85 : /* Use the code below as a template for the implementation class for this interface. */
86 :
87 : /* Header file */
88 : class nsDNSService : public nsIDNSService
89 : {
90 : public:
91 : NS_DECL_ISUPPORTS
92 : NS_DECL_NSIDNSSERVICE
93 :
94 : nsDNSService();
95 :
96 : private:
97 : ~nsDNSService();
98 :
99 : protected:
100 : /* additional members */
101 : };
102 :
103 : /* Implementation file */
104 : NS_IMPL_ISUPPORTS1(nsDNSService, nsIDNSService)
105 :
106 : nsDNSService::nsDNSService()
107 : {
108 : /* member initializers and constructor code */
109 : }
110 :
111 : nsDNSService::~nsDNSService()
112 : {
113 : /* destructor code */
114 : }
115 :
116 : /* nsICancelable asyncResolve (in AUTF8String aHostName, in unsigned long aFlags, in nsIDNSListener aListener, in nsIEventTarget aListenerTarget); */
117 : NS_IMETHODIMP nsDNSService::AsyncResolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSListener *aListener, nsIEventTarget *aListenerTarget, nsICancelable * *_retval NS_OUTPARAM)
118 : {
119 : return NS_ERROR_NOT_IMPLEMENTED;
120 : }
121 :
122 : /* void cancelAsyncResolve (in AUTF8String aHostName, in unsigned long aFlags, in nsIDNSListener aListener, in nsresult aReason); */
123 : NS_IMETHODIMP nsDNSService::CancelAsyncResolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSListener *aListener, nsresult aReason)
124 : {
125 : return NS_ERROR_NOT_IMPLEMENTED;
126 : }
127 :
128 : /* nsIDNSRecord resolve (in AUTF8String aHostName, in unsigned long aFlags); */
129 : NS_IMETHODIMP nsDNSService::Resolve(const nsACString & aHostName, PRUint32 aFlags, nsIDNSRecord * *_retval NS_OUTPARAM)
130 : {
131 : return NS_ERROR_NOT_IMPLEMENTED;
132 : }
133 :
134 : /* readonly attribute AUTF8String myHostName; */
135 : NS_IMETHODIMP nsDNSService::GetMyHostName(nsACString & aMyHostName)
136 : {
137 : return NS_ERROR_NOT_IMPLEMENTED;
138 : }
139 :
140 : /* End of implementation class template. */
141 : #endif
142 :
143 :
144 : #endif /* __gen_nsIDNSService_h__ */
|