1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIIOService2.idl
3 : */
4 :
5 : #ifndef __gen_nsIIOService2_h__
6 : #define __gen_nsIIOService2_h__
7 :
8 :
9 : #ifndef __gen_nsIIOService_h__
10 : #include "nsIIOService.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: nsIIOService2 */
19 : #define NS_IIOSERVICE2_IID_STR "9a7dc724-0b5c-4b78-9722-1037074c02de"
20 :
21 : #define NS_IIOSERVICE2_IID \
22 : {0x9a7dc724, 0x0b5c, 0x4b78, \
23 : { 0x97, 0x22, 0x10, 0x37, 0x07, 0x4c, 0x02, 0xde }}
24 :
25 1419 : class NS_NO_VTABLE NS_SCRIPTABLE nsIIOService2 : public nsIIOService {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIOSERVICE2_IID)
29 :
30 : /* attribute boolean manageOfflineStatus; */
31 : NS_SCRIPTABLE NS_IMETHOD GetManageOfflineStatus(bool *aManageOfflineStatus) = 0;
32 : NS_SCRIPTABLE NS_IMETHOD SetManageOfflineStatus(bool aManageOfflineStatus) = 0;
33 :
34 : /* nsIChannel newChannelFromURIWithProxyFlags (in nsIURI aURI, in nsIURI aProxyURI, in unsigned long aProxyFlags); */
35 : NS_SCRIPTABLE NS_IMETHOD NewChannelFromURIWithProxyFlags(nsIURI *aURI, nsIURI *aProxyURI, PRUint32 aProxyFlags, nsIChannel * *_retval NS_OUTPARAM) = 0;
36 :
37 : };
38 :
39 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIIOService2, NS_IIOSERVICE2_IID)
40 :
41 : /* Use this macro when declaring classes that implement this interface. */
42 : #define NS_DECL_NSIIOSERVICE2 \
43 : NS_SCRIPTABLE NS_IMETHOD GetManageOfflineStatus(bool *aManageOfflineStatus); \
44 : NS_SCRIPTABLE NS_IMETHOD SetManageOfflineStatus(bool aManageOfflineStatus); \
45 : NS_SCRIPTABLE NS_IMETHOD NewChannelFromURIWithProxyFlags(nsIURI *aURI, nsIURI *aProxyURI, PRUint32 aProxyFlags, nsIChannel * *_retval NS_OUTPARAM);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSIIOSERVICE2(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD GetManageOfflineStatus(bool *aManageOfflineStatus) { return _to GetManageOfflineStatus(aManageOfflineStatus); } \
50 : NS_SCRIPTABLE NS_IMETHOD SetManageOfflineStatus(bool aManageOfflineStatus) { return _to SetManageOfflineStatus(aManageOfflineStatus); } \
51 : NS_SCRIPTABLE NS_IMETHOD NewChannelFromURIWithProxyFlags(nsIURI *aURI, nsIURI *aProxyURI, PRUint32 aProxyFlags, nsIChannel * *_retval NS_OUTPARAM) { return _to NewChannelFromURIWithProxyFlags(aURI, aProxyURI, aProxyFlags, _retval); }
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
54 : #define NS_FORWARD_SAFE_NSIIOSERVICE2(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD GetManageOfflineStatus(bool *aManageOfflineStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManageOfflineStatus(aManageOfflineStatus); } \
56 : NS_SCRIPTABLE NS_IMETHOD SetManageOfflineStatus(bool aManageOfflineStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetManageOfflineStatus(aManageOfflineStatus); } \
57 : NS_SCRIPTABLE NS_IMETHOD NewChannelFromURIWithProxyFlags(nsIURI *aURI, nsIURI *aProxyURI, PRUint32 aProxyFlags, nsIChannel * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewChannelFromURIWithProxyFlags(aURI, aProxyURI, aProxyFlags, _retval); }
58 :
59 : #if 0
60 : /* Use the code below as a template for the implementation class for this interface. */
61 :
62 : /* Header file */
63 : class nsIOService2 : public nsIIOService2
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSIIOSERVICE2
68 :
69 : nsIOService2();
70 :
71 : private:
72 : ~nsIOService2();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS1(nsIOService2, nsIIOService2)
80 :
81 : nsIOService2::nsIOService2()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsIOService2::~nsIOService2()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* attribute boolean manageOfflineStatus; */
92 : NS_IMETHODIMP nsIOService2::GetManageOfflineStatus(bool *aManageOfflineStatus)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 : NS_IMETHODIMP nsIOService2::SetManageOfflineStatus(bool aManageOfflineStatus)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* nsIChannel newChannelFromURIWithProxyFlags (in nsIURI aURI, in nsIURI aProxyURI, in unsigned long aProxyFlags); */
102 : NS_IMETHODIMP nsIOService2::NewChannelFromURIWithProxyFlags(nsIURI *aURI, nsIURI *aProxyURI, PRUint32 aProxyFlags, nsIChannel * *_retval NS_OUTPARAM)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : #endif /* __gen_nsIIOService2_h__ */
|