1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/storage/public/mozIStorageServiceQuotaManagement.idl
3 : */
4 :
5 : #ifndef __gen_mozIStorageServiceQuotaManagement_h__
6 : #define __gen_mozIStorageServiceQuotaManagement_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 mozIStorageConnection; /* forward declaration */
18 :
19 : class nsIFile; /* forward declaration */
20 :
21 :
22 : /* starting interface: mozIStorageQuotaCallback */
23 : #define MOZISTORAGEQUOTACALLBACK_IID_STR "ae94f0a5-ebdf-48f4-9959-085e13235d8d"
24 :
25 : #define MOZISTORAGEQUOTACALLBACK_IID \
26 : {0xae94f0a5, 0xebdf, 0x48f4, \
27 : { 0x99, 0x59, 0x08, 0x5e, 0x13, 0x23, 0x5d, 0x8d }}
28 :
29 54 : class NS_NO_VTABLE NS_SCRIPTABLE mozIStorageQuotaCallback : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGEQUOTACALLBACK_IID)
33 :
34 : /* long long quotaExceeded (in ACString aFilename, in long long aCurrentSizeLimit, in long long aCurrentTotalSize, in nsISupports aUserData); */
35 : NS_SCRIPTABLE NS_IMETHOD QuotaExceeded(const nsACString & aFilename, PRInt64 aCurrentSizeLimit, PRInt64 aCurrentTotalSize, nsISupports *aUserData, PRInt64 *_retval NS_OUTPARAM) = 0;
36 :
37 : };
38 :
39 : NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageQuotaCallback, MOZISTORAGEQUOTACALLBACK_IID)
40 :
41 : /* Use this macro when declaring classes that implement this interface. */
42 : #define NS_DECL_MOZISTORAGEQUOTACALLBACK \
43 : NS_SCRIPTABLE NS_IMETHOD QuotaExceeded(const nsACString & aFilename, PRInt64 aCurrentSizeLimit, PRInt64 aCurrentTotalSize, nsISupports *aUserData, PRInt64 *_retval NS_OUTPARAM);
44 :
45 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
46 : #define NS_FORWARD_MOZISTORAGEQUOTACALLBACK(_to) \
47 : NS_SCRIPTABLE NS_IMETHOD QuotaExceeded(const nsACString & aFilename, PRInt64 aCurrentSizeLimit, PRInt64 aCurrentTotalSize, nsISupports *aUserData, PRInt64 *_retval NS_OUTPARAM) { return _to QuotaExceeded(aFilename, aCurrentSizeLimit, aCurrentTotalSize, aUserData, _retval); }
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
50 : #define NS_FORWARD_SAFE_MOZISTORAGEQUOTACALLBACK(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD QuotaExceeded(const nsACString & aFilename, PRInt64 aCurrentSizeLimit, PRInt64 aCurrentTotalSize, nsISupports *aUserData, PRInt64 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->QuotaExceeded(aFilename, aCurrentSizeLimit, aCurrentTotalSize, aUserData, _retval); }
52 :
53 : #if 0
54 : /* Use the code below as a template for the implementation class for this interface. */
55 :
56 : /* Header file */
57 : class _MYCLASS_ : public mozIStorageQuotaCallback
58 : {
59 : public:
60 : NS_DECL_ISUPPORTS
61 : NS_DECL_MOZISTORAGEQUOTACALLBACK
62 :
63 : _MYCLASS_();
64 :
65 : private:
66 : ~_MYCLASS_();
67 :
68 : protected:
69 : /* additional members */
70 : };
71 :
72 : /* Implementation file */
73 : NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIStorageQuotaCallback)
74 :
75 : _MYCLASS_::_MYCLASS_()
76 : {
77 : /* member initializers and constructor code */
78 : }
79 :
80 : _MYCLASS_::~_MYCLASS_()
81 : {
82 : /* destructor code */
83 : }
84 :
85 : /* long long quotaExceeded (in ACString aFilename, in long long aCurrentSizeLimit, in long long aCurrentTotalSize, in nsISupports aUserData); */
86 : NS_IMETHODIMP _MYCLASS_::QuotaExceeded(const nsACString & aFilename, PRInt64 aCurrentSizeLimit, PRInt64 aCurrentTotalSize, nsISupports *aUserData, PRInt64 *_retval NS_OUTPARAM)
87 : {
88 : return NS_ERROR_NOT_IMPLEMENTED;
89 : }
90 :
91 : /* End of implementation class template. */
92 : #endif
93 :
94 :
95 : /* starting interface: mozIStorageServiceQuotaManagement */
96 : #define MOZISTORAGESERVICEQUOTAMANAGEMENT_IID_STR "4d81faf5-fe01-428b-99b8-c94cba12fd72"
97 :
98 : #define MOZISTORAGESERVICEQUOTAMANAGEMENT_IID \
99 : {0x4d81faf5, 0xfe01, 0x428b, \
100 : { 0x99, 0xb8, 0xc9, 0x4c, 0xba, 0x12, 0xfd, 0x72 }}
101 :
102 803 : class NS_NO_VTABLE NS_SCRIPTABLE mozIStorageServiceQuotaManagement : public nsISupports {
103 : public:
104 :
105 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGESERVICEQUOTAMANAGEMENT_IID)
106 :
107 : /* mozIStorageConnection openDatabaseWithVFS (in nsIFile aDatabaseFile, in ACString aVFSName); */
108 : NS_SCRIPTABLE NS_IMETHOD OpenDatabaseWithVFS(nsIFile *aDatabaseFile, const nsACString & aVFSName, mozIStorageConnection * *_retval NS_OUTPARAM) = 0;
109 :
110 : /* void setQuotaForFilenamePattern (in ACString aPattern, in long long aSizeLimit, in mozIStorageQuotaCallback aCallback, in nsISupports aUserData); */
111 : NS_SCRIPTABLE NS_IMETHOD SetQuotaForFilenamePattern(const nsACString & aPattern, PRInt64 aSizeLimit, mozIStorageQuotaCallback *aCallback, nsISupports *aUserData) = 0;
112 :
113 : /* void updateQuotaInformationForFile (in nsIFile aFile); */
114 : NS_SCRIPTABLE NS_IMETHOD UpdateQuotaInformationForFile(nsIFile *aFile) = 0;
115 :
116 : };
117 :
118 : NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageServiceQuotaManagement, MOZISTORAGESERVICEQUOTAMANAGEMENT_IID)
119 :
120 : /* Use this macro when declaring classes that implement this interface. */
121 : #define NS_DECL_MOZISTORAGESERVICEQUOTAMANAGEMENT \
122 : NS_SCRIPTABLE NS_IMETHOD OpenDatabaseWithVFS(nsIFile *aDatabaseFile, const nsACString & aVFSName, mozIStorageConnection * *_retval NS_OUTPARAM); \
123 : NS_SCRIPTABLE NS_IMETHOD SetQuotaForFilenamePattern(const nsACString & aPattern, PRInt64 aSizeLimit, mozIStorageQuotaCallback *aCallback, nsISupports *aUserData); \
124 : NS_SCRIPTABLE NS_IMETHOD UpdateQuotaInformationForFile(nsIFile *aFile);
125 :
126 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
127 : #define NS_FORWARD_MOZISTORAGESERVICEQUOTAMANAGEMENT(_to) \
128 : NS_SCRIPTABLE NS_IMETHOD OpenDatabaseWithVFS(nsIFile *aDatabaseFile, const nsACString & aVFSName, mozIStorageConnection * *_retval NS_OUTPARAM) { return _to OpenDatabaseWithVFS(aDatabaseFile, aVFSName, _retval); } \
129 : NS_SCRIPTABLE NS_IMETHOD SetQuotaForFilenamePattern(const nsACString & aPattern, PRInt64 aSizeLimit, mozIStorageQuotaCallback *aCallback, nsISupports *aUserData) { return _to SetQuotaForFilenamePattern(aPattern, aSizeLimit, aCallback, aUserData); } \
130 : NS_SCRIPTABLE NS_IMETHOD UpdateQuotaInformationForFile(nsIFile *aFile) { return _to UpdateQuotaInformationForFile(aFile); }
131 :
132 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
133 : #define NS_FORWARD_SAFE_MOZISTORAGESERVICEQUOTAMANAGEMENT(_to) \
134 : NS_SCRIPTABLE NS_IMETHOD OpenDatabaseWithVFS(nsIFile *aDatabaseFile, const nsACString & aVFSName, mozIStorageConnection * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenDatabaseWithVFS(aDatabaseFile, aVFSName, _retval); } \
135 : NS_SCRIPTABLE NS_IMETHOD SetQuotaForFilenamePattern(const nsACString & aPattern, PRInt64 aSizeLimit, mozIStorageQuotaCallback *aCallback, nsISupports *aUserData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetQuotaForFilenamePattern(aPattern, aSizeLimit, aCallback, aUserData); } \
136 : NS_SCRIPTABLE NS_IMETHOD UpdateQuotaInformationForFile(nsIFile *aFile) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateQuotaInformationForFile(aFile); }
137 :
138 : #if 0
139 : /* Use the code below as a template for the implementation class for this interface. */
140 :
141 : /* Header file */
142 : class _MYCLASS_ : public mozIStorageServiceQuotaManagement
143 : {
144 : public:
145 : NS_DECL_ISUPPORTS
146 : NS_DECL_MOZISTORAGESERVICEQUOTAMANAGEMENT
147 :
148 : _MYCLASS_();
149 :
150 : private:
151 : ~_MYCLASS_();
152 :
153 : protected:
154 : /* additional members */
155 : };
156 :
157 : /* Implementation file */
158 : NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIStorageServiceQuotaManagement)
159 :
160 : _MYCLASS_::_MYCLASS_()
161 : {
162 : /* member initializers and constructor code */
163 : }
164 :
165 : _MYCLASS_::~_MYCLASS_()
166 : {
167 : /* destructor code */
168 : }
169 :
170 : /* mozIStorageConnection openDatabaseWithVFS (in nsIFile aDatabaseFile, in ACString aVFSName); */
171 : NS_IMETHODIMP _MYCLASS_::OpenDatabaseWithVFS(nsIFile *aDatabaseFile, const nsACString & aVFSName, mozIStorageConnection * *_retval NS_OUTPARAM)
172 : {
173 : return NS_ERROR_NOT_IMPLEMENTED;
174 : }
175 :
176 : /* void setQuotaForFilenamePattern (in ACString aPattern, in long long aSizeLimit, in mozIStorageQuotaCallback aCallback, in nsISupports aUserData); */
177 : NS_IMETHODIMP _MYCLASS_::SetQuotaForFilenamePattern(const nsACString & aPattern, PRInt64 aSizeLimit, mozIStorageQuotaCallback *aCallback, nsISupports *aUserData)
178 : {
179 : return NS_ERROR_NOT_IMPLEMENTED;
180 : }
181 :
182 : /* void updateQuotaInformationForFile (in nsIFile aFile); */
183 : NS_IMETHODIMP _MYCLASS_::UpdateQuotaInformationForFile(nsIFile *aFile)
184 : {
185 : return NS_ERROR_NOT_IMPLEMENTED;
186 : }
187 :
188 : /* End of implementation class template. */
189 : #endif
190 :
191 :
192 : #endif /* __gen_mozIStorageServiceQuotaManagement_h__ */
|