Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIRefreshURI.idl
3 : */
4 :
5 : #ifndef __gen_nsIRefreshURI_h__
6 : #define __gen_nsIRefreshURI_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 : class nsIChannel; /* forward declaration */
18 :
19 : class nsIPrincipal; /* forward declaration */
20 :
21 : class nsIURI; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIRefreshURI */
25 : #define NS_IREFRESHURI_IID_STR "a5e61a3c-51bd-45be-ac0c-e87b71860656"
26 :
27 : #define NS_IREFRESHURI_IID \
28 : {0xa5e61a3c, 0x51bd, 0x45be, \
29 : { 0xac, 0x0c, 0xe8, 0x7b, 0x71, 0x86, 0x06, 0x56 }}
30 :
31 5 : class NS_NO_VTABLE nsIRefreshURI : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREFRESHURI_IID)
35 :
36 : /* void refreshURI (in nsIURI aURI, in long aMillis, in boolean aRepeat, in boolean aMetaRefresh); */
37 : NS_IMETHOD RefreshURI(nsIURI *aURI, int32_t aMillis, bool aRepeat, bool aMetaRefresh) = 0;
38 :
39 : /* void forceRefreshURI (in nsIURI aURI, in long aMillis, in boolean aMetaRefresh); */
40 : NS_IMETHOD ForceRefreshURI(nsIURI *aURI, int32_t aMillis, bool aMetaRefresh) = 0;
41 :
42 : /* void setupRefreshURI (in nsIChannel aChannel); */
43 : NS_IMETHOD SetupRefreshURI(nsIChannel *aChannel) = 0;
44 :
45 : /* void setupRefreshURIFromHeader (in nsIURI aBaseURI, in nsIPrincipal principal, in ACString aHeader); */
46 : NS_IMETHOD SetupRefreshURIFromHeader(nsIURI *aBaseURI, nsIPrincipal *principal, const nsACString & aHeader) = 0;
47 :
48 : /* void cancelRefreshURITimers (); */
49 : NS_IMETHOD CancelRefreshURITimers(void) = 0;
50 :
51 : /* readonly attribute boolean refreshPending; */
52 : NS_IMETHOD GetRefreshPending(bool *aRefreshPending) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRefreshURI, NS_IREFRESHURI_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIREFRESHURI \
60 : NS_IMETHOD RefreshURI(nsIURI *aURI, int32_t aMillis, bool aRepeat, bool aMetaRefresh) override; \
61 : NS_IMETHOD ForceRefreshURI(nsIURI *aURI, int32_t aMillis, bool aMetaRefresh) override; \
62 : NS_IMETHOD SetupRefreshURI(nsIChannel *aChannel) override; \
63 : NS_IMETHOD SetupRefreshURIFromHeader(nsIURI *aBaseURI, nsIPrincipal *principal, const nsACString & aHeader) override; \
64 : NS_IMETHOD CancelRefreshURITimers(void) override; \
65 : NS_IMETHOD GetRefreshPending(bool *aRefreshPending) override;
66 :
67 : /* Use this macro when declaring the members of this interface when the
68 : class doesn't implement the interface. This is useful for forwarding. */
69 : #define NS_DECL_NON_VIRTUAL_NSIREFRESHURI \
70 : nsresult RefreshURI(nsIURI *aURI, int32_t aMillis, bool aRepeat, bool aMetaRefresh); \
71 : nsresult ForceRefreshURI(nsIURI *aURI, int32_t aMillis, bool aMetaRefresh); \
72 : nsresult SetupRefreshURI(nsIChannel *aChannel); \
73 : nsresult SetupRefreshURIFromHeader(nsIURI *aBaseURI, nsIPrincipal *principal, const nsACString & aHeader); \
74 : nsresult CancelRefreshURITimers(void); \
75 : nsresult GetRefreshPending(bool *aRefreshPending);
76 :
77 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
78 : #define NS_FORWARD_NSIREFRESHURI(_to) \
79 : NS_IMETHOD RefreshURI(nsIURI *aURI, int32_t aMillis, bool aRepeat, bool aMetaRefresh) override { return _to RefreshURI(aURI, aMillis, aRepeat, aMetaRefresh); } \
80 : NS_IMETHOD ForceRefreshURI(nsIURI *aURI, int32_t aMillis, bool aMetaRefresh) override { return _to ForceRefreshURI(aURI, aMillis, aMetaRefresh); } \
81 : NS_IMETHOD SetupRefreshURI(nsIChannel *aChannel) override { return _to SetupRefreshURI(aChannel); } \
82 : NS_IMETHOD SetupRefreshURIFromHeader(nsIURI *aBaseURI, nsIPrincipal *principal, const nsACString & aHeader) override { return _to SetupRefreshURIFromHeader(aBaseURI, principal, aHeader); } \
83 : NS_IMETHOD CancelRefreshURITimers(void) override { return _to CancelRefreshURITimers(); } \
84 : NS_IMETHOD GetRefreshPending(bool *aRefreshPending) override { return _to GetRefreshPending(aRefreshPending); }
85 :
86 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
87 : #define NS_FORWARD_SAFE_NSIREFRESHURI(_to) \
88 : NS_IMETHOD RefreshURI(nsIURI *aURI, int32_t aMillis, bool aRepeat, bool aMetaRefresh) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RefreshURI(aURI, aMillis, aRepeat, aMetaRefresh); } \
89 : NS_IMETHOD ForceRefreshURI(nsIURI *aURI, int32_t aMillis, bool aMetaRefresh) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceRefreshURI(aURI, aMillis, aMetaRefresh); } \
90 : NS_IMETHOD SetupRefreshURI(nsIChannel *aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetupRefreshURI(aChannel); } \
91 : NS_IMETHOD SetupRefreshURIFromHeader(nsIURI *aBaseURI, nsIPrincipal *principal, const nsACString & aHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetupRefreshURIFromHeader(aBaseURI, principal, aHeader); } \
92 : NS_IMETHOD CancelRefreshURITimers(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CancelRefreshURITimers(); } \
93 : NS_IMETHOD GetRefreshPending(bool *aRefreshPending) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRefreshPending(aRefreshPending); }
94 :
95 : #if 0
96 : /* Use the code below as a template for the implementation class for this interface. */
97 :
98 : /* Header file */
99 : class nsRefreshURI : public nsIRefreshURI
100 : {
101 : public:
102 : NS_DECL_ISUPPORTS
103 : NS_DECL_NSIREFRESHURI
104 :
105 : nsRefreshURI();
106 :
107 : private:
108 : ~nsRefreshURI();
109 :
110 : protected:
111 : /* additional members */
112 : };
113 :
114 : /* Implementation file */
115 : NS_IMPL_ISUPPORTS(nsRefreshURI, nsIRefreshURI)
116 :
117 : nsRefreshURI::nsRefreshURI()
118 : {
119 : /* member initializers and constructor code */
120 : }
121 :
122 : nsRefreshURI::~nsRefreshURI()
123 : {
124 : /* destructor code */
125 : }
126 :
127 : /* void refreshURI (in nsIURI aURI, in long aMillis, in boolean aRepeat, in boolean aMetaRefresh); */
128 : NS_IMETHODIMP nsRefreshURI::RefreshURI(nsIURI *aURI, int32_t aMillis, bool aRepeat, bool aMetaRefresh)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* void forceRefreshURI (in nsIURI aURI, in long aMillis, in boolean aMetaRefresh); */
134 : NS_IMETHODIMP nsRefreshURI::ForceRefreshURI(nsIURI *aURI, int32_t aMillis, bool aMetaRefresh)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* void setupRefreshURI (in nsIChannel aChannel); */
140 : NS_IMETHODIMP nsRefreshURI::SetupRefreshURI(nsIChannel *aChannel)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* void setupRefreshURIFromHeader (in nsIURI aBaseURI, in nsIPrincipal principal, in ACString aHeader); */
146 : NS_IMETHODIMP nsRefreshURI::SetupRefreshURIFromHeader(nsIURI *aBaseURI, nsIPrincipal *principal, const nsACString & aHeader)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* void cancelRefreshURITimers (); */
152 : NS_IMETHODIMP nsRefreshURI::CancelRefreshURITimers()
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* readonly attribute boolean refreshPending; */
158 : NS_IMETHODIMP nsRefreshURI::GetRefreshPending(bool *aRefreshPending)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* End of implementation class template. */
164 : #endif
165 :
166 :
167 : #endif /* __gen_nsIRefreshURI_h__ */
|