1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/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 "9e557d99-7af0-4895-95b7-e6dba28c9ad9"
20 :
21 : #define NS_IPROXYINFO_IID \
22 : {0x9e557d99, 0x7af0, 0x4895, \
23 : { 0x95, 0xb7, 0xe6, 0xdb, 0xa2, 0x8c, 0x9a, 0xd9 }}
24 :
25 3552 : class NS_NO_VTABLE NS_SCRIPTABLE nsIProxyInfo : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROXYINFO_IID)
29 :
30 : /* readonly attribute AUTF8String host; */
31 : NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) = 0;
32 :
33 : /* readonly attribute long port; */
34 : NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort) = 0;
35 :
36 : /* readonly attribute ACString type; */
37 : NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType) = 0;
38 :
39 : /* readonly attribute unsigned long flags; */
40 : NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) = 0;
41 :
42 : /* readonly attribute unsigned long resolveFlags; */
43 : NS_SCRIPTABLE NS_IMETHOD GetResolveFlags(PRUint32 *aResolveFlags) = 0;
44 :
45 : /* readonly attribute unsigned long failoverTimeout; */
46 : NS_SCRIPTABLE NS_IMETHOD GetFailoverTimeout(PRUint32 *aFailoverTimeout) = 0;
47 :
48 : /* attribute nsIProxyInfo failoverProxy; */
49 : NS_SCRIPTABLE NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) = 0;
50 : NS_SCRIPTABLE NS_IMETHOD SetFailoverProxy(nsIProxyInfo *aFailoverProxy) = 0;
51 :
52 : enum {
53 : TRANSPARENT_PROXY_RESOLVES_HOST = 1U
54 : };
55 :
56 : };
57 :
58 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIProxyInfo, NS_IPROXYINFO_IID)
59 :
60 : /* Use this macro when declaring classes that implement this interface. */
61 : #define NS_DECL_NSIPROXYINFO \
62 : NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost); \
63 : NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort); \
64 : NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType); \
65 : NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags); \
66 : NS_SCRIPTABLE NS_IMETHOD GetResolveFlags(PRUint32 *aResolveFlags); \
67 : NS_SCRIPTABLE NS_IMETHOD GetFailoverTimeout(PRUint32 *aFailoverTimeout); \
68 : NS_SCRIPTABLE NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy); \
69 : NS_SCRIPTABLE NS_IMETHOD SetFailoverProxy(nsIProxyInfo *aFailoverProxy); \
70 :
71 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
72 : #define NS_FORWARD_NSIPROXYINFO(_to) \
73 : NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) { return _to GetHost(aHost); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort) { return _to GetPort(aPort); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType) { return _to GetType(aType); } \
76 : NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return _to GetFlags(aFlags); } \
77 : NS_SCRIPTABLE NS_IMETHOD GetResolveFlags(PRUint32 *aResolveFlags) { return _to GetResolveFlags(aResolveFlags); } \
78 : NS_SCRIPTABLE NS_IMETHOD GetFailoverTimeout(PRUint32 *aFailoverTimeout) { return _to GetFailoverTimeout(aFailoverTimeout); } \
79 : NS_SCRIPTABLE NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) { return _to GetFailoverProxy(aFailoverProxy); } \
80 : NS_SCRIPTABLE NS_IMETHOD SetFailoverProxy(nsIProxyInfo *aFailoverProxy) { return _to SetFailoverProxy(aFailoverProxy); } \
81 :
82 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
83 : #define NS_FORWARD_SAFE_NSIPROXYINFO(_to) \
84 : NS_SCRIPTABLE NS_IMETHOD GetHost(nsACString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
85 : NS_SCRIPTABLE NS_IMETHOD GetPort(PRInt32 *aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetType(nsACString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
87 : NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
88 : NS_SCRIPTABLE NS_IMETHOD GetResolveFlags(PRUint32 *aResolveFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResolveFlags(aResolveFlags); } \
89 : NS_SCRIPTABLE NS_IMETHOD GetFailoverTimeout(PRUint32 *aFailoverTimeout) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailoverTimeout(aFailoverTimeout); } \
90 : NS_SCRIPTABLE NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailoverProxy(aFailoverProxy); } \
91 : NS_SCRIPTABLE NS_IMETHOD SetFailoverProxy(nsIProxyInfo *aFailoverProxy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFailoverProxy(aFailoverProxy); } \
92 :
93 : #if 0
94 : /* Use the code below as a template for the implementation class for this interface. */
95 :
96 : /* Header file */
97 : class nsProxyInfo : public nsIProxyInfo
98 : {
99 : public:
100 : NS_DECL_ISUPPORTS
101 : NS_DECL_NSIPROXYINFO
102 :
103 : nsProxyInfo();
104 :
105 : private:
106 : ~nsProxyInfo();
107 :
108 : protected:
109 : /* additional members */
110 : };
111 :
112 : /* Implementation file */
113 : NS_IMPL_ISUPPORTS1(nsProxyInfo, nsIProxyInfo)
114 :
115 : nsProxyInfo::nsProxyInfo()
116 : {
117 : /* member initializers and constructor code */
118 : }
119 :
120 : nsProxyInfo::~nsProxyInfo()
121 : {
122 : /* destructor code */
123 : }
124 :
125 : /* readonly attribute AUTF8String host; */
126 : NS_IMETHODIMP nsProxyInfo::GetHost(nsACString & aHost)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* readonly attribute long port; */
132 : NS_IMETHODIMP nsProxyInfo::GetPort(PRInt32 *aPort)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* readonly attribute ACString type; */
138 : NS_IMETHODIMP nsProxyInfo::GetType(nsACString & aType)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* readonly attribute unsigned long flags; */
144 : NS_IMETHODIMP nsProxyInfo::GetFlags(PRUint32 *aFlags)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* readonly attribute unsigned long resolveFlags; */
150 : NS_IMETHODIMP nsProxyInfo::GetResolveFlags(PRUint32 *aResolveFlags)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* readonly attribute unsigned long failoverTimeout; */
156 : NS_IMETHODIMP nsProxyInfo::GetFailoverTimeout(PRUint32 *aFailoverTimeout)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* attribute nsIProxyInfo failoverProxy; */
162 : NS_IMETHODIMP nsProxyInfo::GetFailoverProxy(nsIProxyInfo * *aFailoverProxy)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 : NS_IMETHODIMP nsProxyInfo::SetFailoverProxy(nsIProxyInfo *aFailoverProxy)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* End of implementation class template. */
172 : #endif
173 :
174 :
175 : #endif /* __gen_nsIProxyInfo_h__ */
|