Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIProxyInfo.idl
3 : */
4 :
5 : #ifndef __gen_nsIProxyInfo_h__
6 : #define __gen_nsIProxyInfo_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 :
18 : /* starting interface: nsIProxyInfo */
19 : #define NS_IPROXYINFO_IID_STR "63fff172-2564-4138-96c6-3ae7d245fbed"
20 :
21 : #define NS_IPROXYINFO_IID \
22 : {0x63fff172, 0x2564, 0x4138, \
23 : { 0x96, 0xc6, 0x3a, 0xe7, 0xd2, 0x45, 0xfb, 0xed }}
24 :
25 0 : class NS_NO_VTABLE nsIProxyInfo : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROXYINFO_IID)
29 :
30 : /* readonly attribute AUTF8String host; */
31 : NS_IMETHOD GetHost(nsACString & aHost) = 0;
32 :
33 : /* readonly attribute long port; */
34 : NS_IMETHOD GetPort(int32_t *aPort) = 0;
35 :
36 : /* readonly attribute ACString type; */
37 : NS_IMETHOD GetType(nsACString & aType) = 0;
38 :
39 : /* readonly attribute unsigned long flags; */
40 : NS_IMETHOD GetFlags(uint32_t *aFlags) = 0;
41 :
42 : /* readonly attribute unsigned long resolveFlags; */
43 : NS_IMETHOD GetResolveFlags(uint32_t *aResolveFlags) = 0;
44 :
45 : /* readonly attribute ACString username; */
46 : NS_IMETHOD GetUsername(nsACString & aUsername) = 0;
47 :
48 : /* readonly attribute ACString password; */
49 : NS_IMETHOD GetPassword(nsACString & aPassword) = 0;
50 :
51 : /* readonly attribute unsigned long failoverTimeout; */
52 : NS_IMETHOD GetFailoverTimeout(uint32_t *aFailoverTimeout) = 0;
53 :
54 : /* attribute nsIProxyInfo failoverProxy; */
55 : NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) = 0;
56 : NS_IMETHOD SetFailoverProxy(nsIProxyInfo *aFailoverProxy) = 0;
57 :
58 : enum {
59 : TRANSPARENT_PROXY_RESOLVES_HOST = 1U
60 : };
61 :
62 : };
63 :
64 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProxyInfo, NS_IPROXYINFO_IID)
65 :
66 : /* Use this macro when declaring classes that implement this interface. */
67 : #define NS_DECL_NSIPROXYINFO \
68 : NS_IMETHOD GetHost(nsACString & aHost) override; \
69 : NS_IMETHOD GetPort(int32_t *aPort) override; \
70 : NS_IMETHOD GetType(nsACString & aType) override; \
71 : NS_IMETHOD GetFlags(uint32_t *aFlags) override; \
72 : NS_IMETHOD GetResolveFlags(uint32_t *aResolveFlags) override; \
73 : NS_IMETHOD GetUsername(nsACString & aUsername) override; \
74 : NS_IMETHOD GetPassword(nsACString & aPassword) override; \
75 : NS_IMETHOD GetFailoverTimeout(uint32_t *aFailoverTimeout) override; \
76 : NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) override; \
77 : NS_IMETHOD SetFailoverProxy(nsIProxyInfo *aFailoverProxy) override; \
78 :
79 : /* Use this macro when declaring the members of this interface when the
80 : class doesn't implement the interface. This is useful for forwarding. */
81 : #define NS_DECL_NON_VIRTUAL_NSIPROXYINFO \
82 : nsresult GetHost(nsACString & aHost); \
83 : nsresult GetPort(int32_t *aPort); \
84 : nsresult GetType(nsACString & aType); \
85 : nsresult GetFlags(uint32_t *aFlags); \
86 : nsresult GetResolveFlags(uint32_t *aResolveFlags); \
87 : nsresult GetUsername(nsACString & aUsername); \
88 : nsresult GetPassword(nsACString & aPassword); \
89 : nsresult GetFailoverTimeout(uint32_t *aFailoverTimeout); \
90 : nsresult GetFailoverProxy(nsIProxyInfo * *aFailoverProxy); \
91 : nsresult SetFailoverProxy(nsIProxyInfo *aFailoverProxy); \
92 :
93 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
94 : #define NS_FORWARD_NSIPROXYINFO(_to) \
95 : NS_IMETHOD GetHost(nsACString & aHost) override { return _to GetHost(aHost); } \
96 : NS_IMETHOD GetPort(int32_t *aPort) override { return _to GetPort(aPort); } \
97 : NS_IMETHOD GetType(nsACString & aType) override { return _to GetType(aType); } \
98 : NS_IMETHOD GetFlags(uint32_t *aFlags) override { return _to GetFlags(aFlags); } \
99 : NS_IMETHOD GetResolveFlags(uint32_t *aResolveFlags) override { return _to GetResolveFlags(aResolveFlags); } \
100 : NS_IMETHOD GetUsername(nsACString & aUsername) override { return _to GetUsername(aUsername); } \
101 : NS_IMETHOD GetPassword(nsACString & aPassword) override { return _to GetPassword(aPassword); } \
102 : NS_IMETHOD GetFailoverTimeout(uint32_t *aFailoverTimeout) override { return _to GetFailoverTimeout(aFailoverTimeout); } \
103 : NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) override { return _to GetFailoverProxy(aFailoverProxy); } \
104 : NS_IMETHOD SetFailoverProxy(nsIProxyInfo *aFailoverProxy) override { return _to SetFailoverProxy(aFailoverProxy); } \
105 :
106 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
107 : #define NS_FORWARD_SAFE_NSIPROXYINFO(_to) \
108 : NS_IMETHOD GetHost(nsACString & aHost) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
109 : NS_IMETHOD GetPort(int32_t *aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
110 : NS_IMETHOD GetType(nsACString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
111 : NS_IMETHOD GetFlags(uint32_t *aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
112 : NS_IMETHOD GetResolveFlags(uint32_t *aResolveFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResolveFlags(aResolveFlags); } \
113 : NS_IMETHOD GetUsername(nsACString & aUsername) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsername(aUsername); } \
114 : NS_IMETHOD GetPassword(nsACString & aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPassword(aPassword); } \
115 : NS_IMETHOD GetFailoverTimeout(uint32_t *aFailoverTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailoverTimeout(aFailoverTimeout); } \
116 : NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailoverProxy(aFailoverProxy); } \
117 : NS_IMETHOD SetFailoverProxy(nsIProxyInfo *aFailoverProxy) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFailoverProxy(aFailoverProxy); } \
118 :
119 : #if 0
120 : /* Use the code below as a template for the implementation class for this interface. */
121 :
122 : /* Header file */
123 : class nsProxyInfo : public nsIProxyInfo
124 : {
125 : public:
126 : NS_DECL_ISUPPORTS
127 : NS_DECL_NSIPROXYINFO
128 :
129 : nsProxyInfo();
130 :
131 : private:
132 : ~nsProxyInfo();
133 :
134 : protected:
135 : /* additional members */
136 : };
137 :
138 : /* Implementation file */
139 : NS_IMPL_ISUPPORTS(nsProxyInfo, nsIProxyInfo)
140 :
141 : nsProxyInfo::nsProxyInfo()
142 : {
143 : /* member initializers and constructor code */
144 : }
145 :
146 : nsProxyInfo::~nsProxyInfo()
147 : {
148 : /* destructor code */
149 : }
150 :
151 : /* readonly attribute AUTF8String host; */
152 : NS_IMETHODIMP nsProxyInfo::GetHost(nsACString & aHost)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* readonly attribute long port; */
158 : NS_IMETHODIMP nsProxyInfo::GetPort(int32_t *aPort)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* readonly attribute ACString type; */
164 : NS_IMETHODIMP nsProxyInfo::GetType(nsACString & aType)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* readonly attribute unsigned long flags; */
170 : NS_IMETHODIMP nsProxyInfo::GetFlags(uint32_t *aFlags)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* readonly attribute unsigned long resolveFlags; */
176 : NS_IMETHODIMP nsProxyInfo::GetResolveFlags(uint32_t *aResolveFlags)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* readonly attribute ACString username; */
182 : NS_IMETHODIMP nsProxyInfo::GetUsername(nsACString & aUsername)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* readonly attribute ACString password; */
188 : NS_IMETHODIMP nsProxyInfo::GetPassword(nsACString & aPassword)
189 : {
190 : return NS_ERROR_NOT_IMPLEMENTED;
191 : }
192 :
193 : /* readonly attribute unsigned long failoverTimeout; */
194 : NS_IMETHODIMP nsProxyInfo::GetFailoverTimeout(uint32_t *aFailoverTimeout)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* attribute nsIProxyInfo failoverProxy; */
200 : NS_IMETHODIMP nsProxyInfo::GetFailoverProxy(nsIProxyInfo * *aFailoverProxy)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 : NS_IMETHODIMP nsProxyInfo::SetFailoverProxy(nsIProxyInfo *aFailoverProxy)
205 : {
206 : return NS_ERROR_NOT_IMPLEMENTED;
207 : }
208 :
209 : /* End of implementation class template. */
210 : #endif
211 :
212 :
213 : #endif /* __gen_nsIProxyInfo_h__ */
|