Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISystemProxySettings.idl
3 : */
4 :
5 : #ifndef __gen_nsISystemProxySettings_h__
6 : #define __gen_nsISystemProxySettings_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: nsISystemProxySettings */
19 : #define NS_ISYSTEMPROXYSETTINGS_IID_STR "971591cd-277e-409a-bbf6-0a79879cd307"
20 :
21 : #define NS_ISYSTEMPROXYSETTINGS_IID \
22 : {0x971591cd, 0x277e, 0x409a, \
23 : { 0xbb, 0xf6, 0x0a, 0x79, 0x87, 0x9c, 0xd3, 0x07 }}
24 :
25 0 : class NS_NO_VTABLE nsISystemProxySettings : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISYSTEMPROXYSETTINGS_IID)
29 :
30 : /* readonly attribute bool mainThreadOnly; */
31 : NS_IMETHOD GetMainThreadOnly(bool *aMainThreadOnly) = 0;
32 :
33 : /* readonly attribute AUTF8String PACURI; */
34 : NS_IMETHOD GetPACURI(nsACString & aPACURI) = 0;
35 :
36 : /* AUTF8String getProxyForURI (in AUTF8String testSpec, in AUTF8String testScheme, in AUTF8String testHost, in int32_t testPort); */
37 : NS_IMETHOD GetProxyForURI(const nsACString & testSpec, const nsACString & testScheme, const nsACString & testHost, int32_t testPort, nsACString & _retval) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISystemProxySettings, NS_ISYSTEMPROXYSETTINGS_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSISYSTEMPROXYSETTINGS \
45 : NS_IMETHOD GetMainThreadOnly(bool *aMainThreadOnly) override; \
46 : NS_IMETHOD GetPACURI(nsACString & aPACURI) override; \
47 : NS_IMETHOD GetProxyForURI(const nsACString & testSpec, const nsACString & testScheme, const nsACString & testHost, int32_t testPort, nsACString & _retval) override;
48 :
49 : /* Use this macro when declaring the members of this interface when the
50 : class doesn't implement the interface. This is useful for forwarding. */
51 : #define NS_DECL_NON_VIRTUAL_NSISYSTEMPROXYSETTINGS \
52 : nsresult GetMainThreadOnly(bool *aMainThreadOnly); \
53 : nsresult GetPACURI(nsACString & aPACURI); \
54 : nsresult GetProxyForURI(const nsACString & testSpec, const nsACString & testScheme, const nsACString & testHost, int32_t testPort, nsACString & _retval);
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
57 : #define NS_FORWARD_NSISYSTEMPROXYSETTINGS(_to) \
58 : NS_IMETHOD GetMainThreadOnly(bool *aMainThreadOnly) override { return _to GetMainThreadOnly(aMainThreadOnly); } \
59 : NS_IMETHOD GetPACURI(nsACString & aPACURI) override { return _to GetPACURI(aPACURI); } \
60 : NS_IMETHOD GetProxyForURI(const nsACString & testSpec, const nsACString & testScheme, const nsACString & testHost, int32_t testPort, nsACString & _retval) override { return _to GetProxyForURI(testSpec, testScheme, testHost, testPort, _retval); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSISYSTEMPROXYSETTINGS(_to) \
64 : NS_IMETHOD GetMainThreadOnly(bool *aMainThreadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMainThreadOnly(aMainThreadOnly); } \
65 : NS_IMETHOD GetPACURI(nsACString & aPACURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPACURI(aPACURI); } \
66 : NS_IMETHOD GetProxyForURI(const nsACString & testSpec, const nsACString & testScheme, const nsACString & testHost, int32_t testPort, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyForURI(testSpec, testScheme, testHost, testPort, _retval); }
67 :
68 : #if 0
69 : /* Use the code below as a template for the implementation class for this interface. */
70 :
71 : /* Header file */
72 : class nsSystemProxySettings : public nsISystemProxySettings
73 : {
74 : public:
75 : NS_DECL_ISUPPORTS
76 : NS_DECL_NSISYSTEMPROXYSETTINGS
77 :
78 : nsSystemProxySettings();
79 :
80 : private:
81 : ~nsSystemProxySettings();
82 :
83 : protected:
84 : /* additional members */
85 : };
86 :
87 : /* Implementation file */
88 : NS_IMPL_ISUPPORTS(nsSystemProxySettings, nsISystemProxySettings)
89 :
90 : nsSystemProxySettings::nsSystemProxySettings()
91 : {
92 : /* member initializers and constructor code */
93 : }
94 :
95 : nsSystemProxySettings::~nsSystemProxySettings()
96 : {
97 : /* destructor code */
98 : }
99 :
100 : /* readonly attribute bool mainThreadOnly; */
101 : NS_IMETHODIMP nsSystemProxySettings::GetMainThreadOnly(bool *aMainThreadOnly)
102 : {
103 : return NS_ERROR_NOT_IMPLEMENTED;
104 : }
105 :
106 : /* readonly attribute AUTF8String PACURI; */
107 : NS_IMETHODIMP nsSystemProxySettings::GetPACURI(nsACString & aPACURI)
108 : {
109 : return NS_ERROR_NOT_IMPLEMENTED;
110 : }
111 :
112 : /* AUTF8String getProxyForURI (in AUTF8String testSpec, in AUTF8String testScheme, in AUTF8String testHost, in int32_t testPort); */
113 : NS_IMETHODIMP nsSystemProxySettings::GetProxyForURI(const nsACString & testSpec, const nsACString & testScheme, const nsACString & testHost, int32_t testPort, nsACString & _retval)
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* End of implementation class template. */
119 : #endif
120 :
121 :
122 : #endif /* __gen_nsISystemProxySettings_h__ */
|