Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIQuotaResults.idl
3 : */
4 :
5 : #ifndef __gen_nsIQuotaResults_h__
6 : #define __gen_nsIQuotaResults_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: nsIQuotaUsageResult */
19 : #define NS_IQUOTAUSAGERESULT_IID_STR "d8c9328b-9aa8-4f5d-90e6-482de4a6d5b8"
20 :
21 : #define NS_IQUOTAUSAGERESULT_IID \
22 : {0xd8c9328b, 0x9aa8, 0x4f5d, \
23 : { 0x90, 0xe6, 0x48, 0x2d, 0xe4, 0xa6, 0xd5, 0xb8 }}
24 :
25 0 : class NS_NO_VTABLE nsIQuotaUsageResult : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAUSAGERESULT_IID)
29 :
30 : /* readonly attribute ACString origin; */
31 : NS_IMETHOD GetOrigin(nsACString & aOrigin) = 0;
32 :
33 : /* readonly attribute boolean persisted; */
34 : NS_IMETHOD GetPersisted(bool *aPersisted) = 0;
35 :
36 : /* readonly attribute unsigned long long usage; */
37 : NS_IMETHOD GetUsage(uint64_t *aUsage) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaUsageResult, NS_IQUOTAUSAGERESULT_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIQUOTAUSAGERESULT \
45 : NS_IMETHOD GetOrigin(nsACString & aOrigin) override; \
46 : NS_IMETHOD GetPersisted(bool *aPersisted) override; \
47 : NS_IMETHOD GetUsage(uint64_t *aUsage) 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_NSIQUOTAUSAGERESULT \
52 : nsresult GetOrigin(nsACString & aOrigin); \
53 : nsresult GetPersisted(bool *aPersisted); \
54 : nsresult GetUsage(uint64_t *aUsage);
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
57 : #define NS_FORWARD_NSIQUOTAUSAGERESULT(_to) \
58 : NS_IMETHOD GetOrigin(nsACString & aOrigin) override { return _to GetOrigin(aOrigin); } \
59 : NS_IMETHOD GetPersisted(bool *aPersisted) override { return _to GetPersisted(aPersisted); } \
60 : NS_IMETHOD GetUsage(uint64_t *aUsage) override { return _to GetUsage(aUsage); }
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_NSIQUOTAUSAGERESULT(_to) \
64 : NS_IMETHOD GetOrigin(nsACString & aOrigin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrigin(aOrigin); } \
65 : NS_IMETHOD GetPersisted(bool *aPersisted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersisted(aPersisted); } \
66 : NS_IMETHOD GetUsage(uint64_t *aUsage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsage(aUsage); }
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 nsQuotaUsageResult : public nsIQuotaUsageResult
73 : {
74 : public:
75 : NS_DECL_ISUPPORTS
76 : NS_DECL_NSIQUOTAUSAGERESULT
77 :
78 : nsQuotaUsageResult();
79 :
80 : private:
81 : ~nsQuotaUsageResult();
82 :
83 : protected:
84 : /* additional members */
85 : };
86 :
87 : /* Implementation file */
88 : NS_IMPL_ISUPPORTS(nsQuotaUsageResult, nsIQuotaUsageResult)
89 :
90 : nsQuotaUsageResult::nsQuotaUsageResult()
91 : {
92 : /* member initializers and constructor code */
93 : }
94 :
95 : nsQuotaUsageResult::~nsQuotaUsageResult()
96 : {
97 : /* destructor code */
98 : }
99 :
100 : /* readonly attribute ACString origin; */
101 : NS_IMETHODIMP nsQuotaUsageResult::GetOrigin(nsACString & aOrigin)
102 : {
103 : return NS_ERROR_NOT_IMPLEMENTED;
104 : }
105 :
106 : /* readonly attribute boolean persisted; */
107 : NS_IMETHODIMP nsQuotaUsageResult::GetPersisted(bool *aPersisted)
108 : {
109 : return NS_ERROR_NOT_IMPLEMENTED;
110 : }
111 :
112 : /* readonly attribute unsigned long long usage; */
113 : NS_IMETHODIMP nsQuotaUsageResult::GetUsage(uint64_t *aUsage)
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* End of implementation class template. */
119 : #endif
120 :
121 :
122 : /* starting interface: nsIQuotaOriginUsageResult */
123 : #define NS_IQUOTAORIGINUSAGERESULT_IID_STR "96df03d2-116a-493f-bb0b-118c212a6b32"
124 :
125 : #define NS_IQUOTAORIGINUSAGERESULT_IID \
126 : {0x96df03d2, 0x116a, 0x493f, \
127 : { 0xbb, 0x0b, 0x11, 0x8c, 0x21, 0x2a, 0x6b, 0x32 }}
128 :
129 0 : class NS_NO_VTABLE nsIQuotaOriginUsageResult : public nsISupports {
130 : public:
131 :
132 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAORIGINUSAGERESULT_IID)
133 :
134 : /* readonly attribute unsigned long long usage; */
135 : NS_IMETHOD GetUsage(uint64_t *aUsage) = 0;
136 :
137 : /* readonly attribute unsigned long long fileUsage; */
138 : NS_IMETHOD GetFileUsage(uint64_t *aFileUsage) = 0;
139 :
140 : /* readonly attribute unsigned long long limit; */
141 : NS_IMETHOD GetLimit(uint64_t *aLimit) = 0;
142 :
143 : };
144 :
145 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaOriginUsageResult, NS_IQUOTAORIGINUSAGERESULT_IID)
146 :
147 : /* Use this macro when declaring classes that implement this interface. */
148 : #define NS_DECL_NSIQUOTAORIGINUSAGERESULT \
149 : NS_IMETHOD GetUsage(uint64_t *aUsage) override; \
150 : NS_IMETHOD GetFileUsage(uint64_t *aFileUsage) override; \
151 : NS_IMETHOD GetLimit(uint64_t *aLimit) override;
152 :
153 : /* Use this macro when declaring the members of this interface when the
154 : class doesn't implement the interface. This is useful for forwarding. */
155 : #define NS_DECL_NON_VIRTUAL_NSIQUOTAORIGINUSAGERESULT \
156 : nsresult GetUsage(uint64_t *aUsage); \
157 : nsresult GetFileUsage(uint64_t *aFileUsage); \
158 : nsresult GetLimit(uint64_t *aLimit);
159 :
160 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
161 : #define NS_FORWARD_NSIQUOTAORIGINUSAGERESULT(_to) \
162 : NS_IMETHOD GetUsage(uint64_t *aUsage) override { return _to GetUsage(aUsage); } \
163 : NS_IMETHOD GetFileUsage(uint64_t *aFileUsage) override { return _to GetFileUsage(aFileUsage); } \
164 : NS_IMETHOD GetLimit(uint64_t *aLimit) override { return _to GetLimit(aLimit); }
165 :
166 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
167 : #define NS_FORWARD_SAFE_NSIQUOTAORIGINUSAGERESULT(_to) \
168 : NS_IMETHOD GetUsage(uint64_t *aUsage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsage(aUsage); } \
169 : NS_IMETHOD GetFileUsage(uint64_t *aFileUsage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileUsage(aFileUsage); } \
170 : NS_IMETHOD GetLimit(uint64_t *aLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLimit(aLimit); }
171 :
172 : #if 0
173 : /* Use the code below as a template for the implementation class for this interface. */
174 :
175 : /* Header file */
176 : class nsQuotaOriginUsageResult : public nsIQuotaOriginUsageResult
177 : {
178 : public:
179 : NS_DECL_ISUPPORTS
180 : NS_DECL_NSIQUOTAORIGINUSAGERESULT
181 :
182 : nsQuotaOriginUsageResult();
183 :
184 : private:
185 : ~nsQuotaOriginUsageResult();
186 :
187 : protected:
188 : /* additional members */
189 : };
190 :
191 : /* Implementation file */
192 : NS_IMPL_ISUPPORTS(nsQuotaOriginUsageResult, nsIQuotaOriginUsageResult)
193 :
194 : nsQuotaOriginUsageResult::nsQuotaOriginUsageResult()
195 : {
196 : /* member initializers and constructor code */
197 : }
198 :
199 : nsQuotaOriginUsageResult::~nsQuotaOriginUsageResult()
200 : {
201 : /* destructor code */
202 : }
203 :
204 : /* readonly attribute unsigned long long usage; */
205 : NS_IMETHODIMP nsQuotaOriginUsageResult::GetUsage(uint64_t *aUsage)
206 : {
207 : return NS_ERROR_NOT_IMPLEMENTED;
208 : }
209 :
210 : /* readonly attribute unsigned long long fileUsage; */
211 : NS_IMETHODIMP nsQuotaOriginUsageResult::GetFileUsage(uint64_t *aFileUsage)
212 : {
213 : return NS_ERROR_NOT_IMPLEMENTED;
214 : }
215 :
216 : /* readonly attribute unsigned long long limit; */
217 : NS_IMETHODIMP nsQuotaOriginUsageResult::GetLimit(uint64_t *aLimit)
218 : {
219 : return NS_ERROR_NOT_IMPLEMENTED;
220 : }
221 :
222 : /* End of implementation class template. */
223 : #endif
224 :
225 :
226 : #endif /* __gen_nsIQuotaResults_h__ */
|