1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/socket/nsISOCKSSocketInfo.idl
3 : */
4 :
5 : #ifndef __gen_nsISOCKSSocketInfo_h__
6 : #define __gen_nsISOCKSSocketInfo_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: nsISOCKSSocketInfo */
19 : #define NS_ISOCKSSOCKETINFO_IID_STR "8f755c44-1dd2-11b2-a613-91117453fa95"
20 :
21 : #define NS_ISOCKSSOCKETINFO_IID \
22 : {0x8f755c44, 0x1dd2, 0x11b2, \
23 : { 0xa6, 0x13, 0x91, 0x11, 0x74, 0x53, 0xfa, 0x95 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsISOCKSSocketInfo : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISOCKSSOCKETINFO_IID)
29 :
30 : /* [noscript] attribute PRNetAddrPtr destinationAddr; */
31 : NS_IMETHOD GetDestinationAddr(union PRNetAddr **aDestinationAddr) = 0;
32 : NS_IMETHOD SetDestinationAddr(union PRNetAddr *aDestinationAddr) = 0;
33 :
34 : /* [noscript] attribute PRNetAddrPtr externalProxyAddr; */
35 : NS_IMETHOD GetExternalProxyAddr(union PRNetAddr **aExternalProxyAddr) = 0;
36 : NS_IMETHOD SetExternalProxyAddr(union PRNetAddr *aExternalProxyAddr) = 0;
37 :
38 : /* [noscript] attribute PRNetAddrPtr internalProxyAddr; */
39 : NS_IMETHOD GetInternalProxyAddr(union PRNetAddr **aInternalProxyAddr) = 0;
40 : NS_IMETHOD SetInternalProxyAddr(union PRNetAddr *aInternalProxyAddr) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISOCKSSocketInfo, NS_ISOCKSSOCKETINFO_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSISOCKSSOCKETINFO \
48 : NS_IMETHOD GetDestinationAddr(union PRNetAddr **aDestinationAddr); \
49 : NS_IMETHOD SetDestinationAddr(union PRNetAddr *aDestinationAddr); \
50 : NS_IMETHOD GetExternalProxyAddr(union PRNetAddr **aExternalProxyAddr); \
51 : NS_IMETHOD SetExternalProxyAddr(union PRNetAddr *aExternalProxyAddr); \
52 : NS_IMETHOD GetInternalProxyAddr(union PRNetAddr **aInternalProxyAddr); \
53 : NS_IMETHOD SetInternalProxyAddr(union PRNetAddr *aInternalProxyAddr);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSISOCKSSOCKETINFO(_to) \
57 : NS_IMETHOD GetDestinationAddr(union PRNetAddr **aDestinationAddr) { return _to GetDestinationAddr(aDestinationAddr); } \
58 : NS_IMETHOD SetDestinationAddr(union PRNetAddr *aDestinationAddr) { return _to SetDestinationAddr(aDestinationAddr); } \
59 : NS_IMETHOD GetExternalProxyAddr(union PRNetAddr **aExternalProxyAddr) { return _to GetExternalProxyAddr(aExternalProxyAddr); } \
60 : NS_IMETHOD SetExternalProxyAddr(union PRNetAddr *aExternalProxyAddr) { return _to SetExternalProxyAddr(aExternalProxyAddr); } \
61 : NS_IMETHOD GetInternalProxyAddr(union PRNetAddr **aInternalProxyAddr) { return _to GetInternalProxyAddr(aInternalProxyAddr); } \
62 : NS_IMETHOD SetInternalProxyAddr(union PRNetAddr *aInternalProxyAddr) { return _to SetInternalProxyAddr(aInternalProxyAddr); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSISOCKSSOCKETINFO(_to) \
66 : NS_IMETHOD GetDestinationAddr(union PRNetAddr **aDestinationAddr) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDestinationAddr(aDestinationAddr); } \
67 : NS_IMETHOD SetDestinationAddr(union PRNetAddr *aDestinationAddr) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDestinationAddr(aDestinationAddr); } \
68 : NS_IMETHOD GetExternalProxyAddr(union PRNetAddr **aExternalProxyAddr) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExternalProxyAddr(aExternalProxyAddr); } \
69 : NS_IMETHOD SetExternalProxyAddr(union PRNetAddr *aExternalProxyAddr) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExternalProxyAddr(aExternalProxyAddr); } \
70 : NS_IMETHOD GetInternalProxyAddr(union PRNetAddr **aInternalProxyAddr) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInternalProxyAddr(aInternalProxyAddr); } \
71 : NS_IMETHOD SetInternalProxyAddr(union PRNetAddr *aInternalProxyAddr) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInternalProxyAddr(aInternalProxyAddr); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class nsSOCKSSocketInfo : public nsISOCKSSocketInfo
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSISOCKSSOCKETINFO
82 :
83 : nsSOCKSSocketInfo();
84 :
85 : private:
86 : ~nsSOCKSSocketInfo();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS1(nsSOCKSSocketInfo, nsISOCKSSocketInfo)
94 :
95 : nsSOCKSSocketInfo::nsSOCKSSocketInfo()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsSOCKSSocketInfo::~nsSOCKSSocketInfo()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* [noscript] attribute PRNetAddrPtr destinationAddr; */
106 : NS_IMETHODIMP nsSOCKSSocketInfo::GetDestinationAddr(union PRNetAddr **aDestinationAddr)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 : NS_IMETHODIMP nsSOCKSSocketInfo::SetDestinationAddr(union PRNetAddr *aDestinationAddr)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* [noscript] attribute PRNetAddrPtr externalProxyAddr; */
116 : NS_IMETHODIMP nsSOCKSSocketInfo::GetExternalProxyAddr(union PRNetAddr **aExternalProxyAddr)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 : NS_IMETHODIMP nsSOCKSSocketInfo::SetExternalProxyAddr(union PRNetAddr *aExternalProxyAddr)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* [noscript] attribute PRNetAddrPtr internalProxyAddr; */
126 : NS_IMETHODIMP nsSOCKSSocketInfo::GetInternalProxyAddr(union PRNetAddr **aInternalProxyAddr)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 : NS_IMETHODIMP nsSOCKSSocketInfo::SetInternalProxyAddr(union PRNetAddr *aInternalProxyAddr)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : #endif /* __gen_nsISOCKSSocketInfo_h__ */
|