123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- #ifndef __gen_nsIProxyInfo_h__
- #define __gen_nsIProxyInfo_h__
- #ifndef __gen_nsISupports_h__
- #include "nsISupports.h"
- #endif
- #ifndef NS_NO_VTABLE
- #define NS_NO_VTABLE
- #endif
- #define NS_IPROXYINFO_IID_STR "3fe9308b-1608-4fa0-933c-c5ec2c6175fd"
- #define NS_IPROXYINFO_IID \
- {0x3fe9308b, 0x1608, 0x4fa0, \
- { 0x93, 0x3c, 0xc5, 0xec, 0x2c, 0x61, 0x75, 0xfd }}
- class NS_NO_VTABLE nsIProxyInfo : public nsISupports {
- public:
- NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPROXYINFO_IID)
-
-
- NS_IMETHOD GetHost(nsACString & aHost) = 0;
-
-
- NS_IMETHOD GetPort(PRInt32 *aPort) = 0;
-
-
- NS_IMETHOD GetType(nsACString & aType) = 0;
-
-
- NS_IMETHOD GetFlags(PRUint32 *aFlags) = 0;
-
-
- NS_IMETHOD GetFailoverTimeout(PRUint32 *aFailoverTimeout) = 0;
-
-
- NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) = 0;
- NS_IMETHOD SetFailoverProxy(nsIProxyInfo * aFailoverProxy) = 0;
-
- enum { TRANSPARENT_PROXY_RESOLVES_HOST = 1U };
- };
- #define NS_DECL_NSIPROXYINFO \
- NS_IMETHOD GetHost(nsACString & aHost); \
- NS_IMETHOD GetPort(PRInt32 *aPort); \
- NS_IMETHOD GetType(nsACString & aType); \
- NS_IMETHOD GetFlags(PRUint32 *aFlags); \
- NS_IMETHOD GetFailoverTimeout(PRUint32 *aFailoverTimeout); \
- NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy); \
- NS_IMETHOD SetFailoverProxy(nsIProxyInfo * aFailoverProxy); \
- #define NS_FORWARD_NSIPROXYINFO(_to) \
- NS_IMETHOD GetHost(nsACString & aHost) { return _to GetHost(aHost); } \
- NS_IMETHOD GetPort(PRInt32 *aPort) { return _to GetPort(aPort); } \
- NS_IMETHOD GetType(nsACString & aType) { return _to GetType(aType); } \
- NS_IMETHOD GetFlags(PRUint32 *aFlags) { return _to GetFlags(aFlags); } \
- NS_IMETHOD GetFailoverTimeout(PRUint32 *aFailoverTimeout) { return _to GetFailoverTimeout(aFailoverTimeout); } \
- NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) { return _to GetFailoverProxy(aFailoverProxy); } \
- NS_IMETHOD SetFailoverProxy(nsIProxyInfo * aFailoverProxy) { return _to SetFailoverProxy(aFailoverProxy); } \
- #define NS_FORWARD_SAFE_NSIPROXYINFO(_to) \
- NS_IMETHOD GetHost(nsACString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
- NS_IMETHOD GetPort(PRInt32 *aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
- NS_IMETHOD GetType(nsACString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
- NS_IMETHOD GetFlags(PRUint32 *aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
- NS_IMETHOD GetFailoverTimeout(PRUint32 *aFailoverTimeout) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailoverTimeout(aFailoverTimeout); } \
- NS_IMETHOD GetFailoverProxy(nsIProxyInfo * *aFailoverProxy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFailoverProxy(aFailoverProxy); } \
- NS_IMETHOD SetFailoverProxy(nsIProxyInfo * aFailoverProxy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFailoverProxy(aFailoverProxy); } \
- #if 0
- class nsProxyInfo : public nsIProxyInfo
- {
- public:
- NS_DECL_ISUPPORTS
- NS_DECL_NSIPROXYINFO
- nsProxyInfo();
- private:
- ~nsProxyInfo();
- protected:
-
- };
- NS_IMPL_ISUPPORTS1(nsProxyInfo, nsIProxyInfo)
- nsProxyInfo::nsProxyInfo()
- {
-
- }
- nsProxyInfo::~nsProxyInfo()
- {
-
- }
- NS_IMETHODIMP nsProxyInfo::GetHost(nsACString & aHost)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsProxyInfo::GetPort(PRInt32 *aPort)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsProxyInfo::GetType(nsACString & aType)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsProxyInfo::GetFlags(PRUint32 *aFlags)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsProxyInfo::GetFailoverTimeout(PRUint32 *aFailoverTimeout)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsProxyInfo::GetFailoverProxy(nsIProxyInfo * *aFailoverProxy)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- NS_IMETHODIMP nsProxyInfo::SetFailoverProxy(nsIProxyInfo * aFailoverProxy)
- {
- return NS_ERROR_NOT_IMPLEMENTED;
- }
- #endif
- #endif
|