1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/indexedDB/nsIIDBTransaction.idl
3 : */
4 :
5 : #ifndef __gen_nsIIDBTransaction_h__
6 : #define __gen_nsIIDBTransaction_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 nsIDOMEventListener; /* forward declaration */
18 :
19 : class nsIIDBObjectStore; /* forward declaration */
20 :
21 : class nsIIDBRequest; /* forward declaration */
22 :
23 : class nsIIDBDatabase; /* forward declaration */
24 :
25 : class nsIDOMDOMStringList; /* forward declaration */
26 :
27 :
28 : /* starting interface: nsIIDBTransaction */
29 : #define NS_IIDBTRANSACTION_IID_STR "e4927c76-4f1f-4d7d-80ad-8186e1677da6"
30 :
31 : #define NS_IIDBTRANSACTION_IID \
32 : {0xe4927c76, 0x4f1f, 0x4d7d, \
33 : { 0x80, 0xad, 0x81, 0x86, 0xe1, 0x67, 0x7d, 0xa6 }}
34 :
35 540 : class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBTransaction : public nsISupports {
36 : public:
37 :
38 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBTRANSACTION_IID)
39 :
40 : /* readonly attribute nsIIDBDatabase db; */
41 : NS_SCRIPTABLE NS_IMETHOD GetDb(nsIIDBDatabase * *aDb) = 0;
42 :
43 : /* readonly attribute DOMString mode; */
44 : NS_SCRIPTABLE NS_IMETHOD GetMode(nsAString & aMode) = 0;
45 :
46 : /* readonly attribute nsIDOMDOMStringList objectStoreNames; */
47 : NS_SCRIPTABLE NS_IMETHOD GetObjectStoreNames(nsIDOMDOMStringList * *aObjectStoreNames) = 0;
48 :
49 : /* nsIIDBObjectStore objectStore ([Null (Stringify)] in DOMString name); */
50 : NS_SCRIPTABLE NS_IMETHOD ObjectStore(const nsAString & name, nsIIDBObjectStore * *_retval NS_OUTPARAM) = 0;
51 :
52 : /* void abort (); */
53 : NS_SCRIPTABLE NS_IMETHOD Abort(void) = 0;
54 :
55 : /* attribute nsIDOMEventListener onerror; */
56 : NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) = 0;
57 : NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) = 0;
58 :
59 : /* attribute nsIDOMEventListener oncomplete; */
60 : NS_SCRIPTABLE NS_IMETHOD GetOncomplete(nsIDOMEventListener * *aOncomplete) = 0;
61 : NS_SCRIPTABLE NS_IMETHOD SetOncomplete(nsIDOMEventListener *aOncomplete) = 0;
62 :
63 : /* attribute nsIDOMEventListener onabort; */
64 : NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort) = 0;
65 : NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort) = 0;
66 :
67 : };
68 :
69 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBTransaction, NS_IIDBTRANSACTION_IID)
70 :
71 : /* Use this macro when declaring classes that implement this interface. */
72 : #define NS_DECL_NSIIDBTRANSACTION \
73 : NS_SCRIPTABLE NS_IMETHOD GetDb(nsIIDBDatabase * *aDb); \
74 : NS_SCRIPTABLE NS_IMETHOD GetMode(nsAString & aMode); \
75 : NS_SCRIPTABLE NS_IMETHOD GetObjectStoreNames(nsIDOMDOMStringList * *aObjectStoreNames); \
76 : NS_SCRIPTABLE NS_IMETHOD ObjectStore(const nsAString & name, nsIIDBObjectStore * *_retval NS_OUTPARAM); \
77 : NS_SCRIPTABLE NS_IMETHOD Abort(void); \
78 : NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror); \
79 : NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror); \
80 : NS_SCRIPTABLE NS_IMETHOD GetOncomplete(nsIDOMEventListener * *aOncomplete); \
81 : NS_SCRIPTABLE NS_IMETHOD SetOncomplete(nsIDOMEventListener *aOncomplete); \
82 : NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort); \
83 : NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort);
84 :
85 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
86 : #define NS_FORWARD_NSIIDBTRANSACTION(_to) \
87 : NS_SCRIPTABLE NS_IMETHOD GetDb(nsIIDBDatabase * *aDb) { return _to GetDb(aDb); } \
88 : NS_SCRIPTABLE NS_IMETHOD GetMode(nsAString & aMode) { return _to GetMode(aMode); } \
89 : NS_SCRIPTABLE NS_IMETHOD GetObjectStoreNames(nsIDOMDOMStringList * *aObjectStoreNames) { return _to GetObjectStoreNames(aObjectStoreNames); } \
90 : NS_SCRIPTABLE NS_IMETHOD ObjectStore(const nsAString & name, nsIIDBObjectStore * *_retval NS_OUTPARAM) { return _to ObjectStore(name, _retval); } \
91 : NS_SCRIPTABLE NS_IMETHOD Abort(void) { return _to Abort(); } \
92 : NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return _to GetOnerror(aOnerror); } \
93 : NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) { return _to SetOnerror(aOnerror); } \
94 : NS_SCRIPTABLE NS_IMETHOD GetOncomplete(nsIDOMEventListener * *aOncomplete) { return _to GetOncomplete(aOncomplete); } \
95 : NS_SCRIPTABLE NS_IMETHOD SetOncomplete(nsIDOMEventListener *aOncomplete) { return _to SetOncomplete(aOncomplete); } \
96 : NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort) { return _to GetOnabort(aOnabort); } \
97 : NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort) { return _to SetOnabort(aOnabort); }
98 :
99 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
100 : #define NS_FORWARD_SAFE_NSIIDBTRANSACTION(_to) \
101 : NS_SCRIPTABLE NS_IMETHOD GetDb(nsIIDBDatabase * *aDb) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDb(aDb); } \
102 : NS_SCRIPTABLE NS_IMETHOD GetMode(nsAString & aMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMode(aMode); } \
103 : NS_SCRIPTABLE NS_IMETHOD GetObjectStoreNames(nsIDOMDOMStringList * *aObjectStoreNames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObjectStoreNames(aObjectStoreNames); } \
104 : NS_SCRIPTABLE NS_IMETHOD ObjectStore(const nsAString & name, nsIIDBObjectStore * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ObjectStore(name, _retval); } \
105 : NS_SCRIPTABLE NS_IMETHOD Abort(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetOnerror(nsIDOMEventListener * *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnerror(aOnerror); } \
107 : NS_SCRIPTABLE NS_IMETHOD SetOnerror(nsIDOMEventListener *aOnerror) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnerror(aOnerror); } \
108 : NS_SCRIPTABLE NS_IMETHOD GetOncomplete(nsIDOMEventListener * *aOncomplete) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOncomplete(aOncomplete); } \
109 : NS_SCRIPTABLE NS_IMETHOD SetOncomplete(nsIDOMEventListener *aOncomplete) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOncomplete(aOncomplete); } \
110 : NS_SCRIPTABLE NS_IMETHOD GetOnabort(nsIDOMEventListener * *aOnabort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnabort(aOnabort); } \
111 : NS_SCRIPTABLE NS_IMETHOD SetOnabort(nsIDOMEventListener *aOnabort) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnabort(aOnabort); }
112 :
113 : #if 0
114 : /* Use the code below as a template for the implementation class for this interface. */
115 :
116 : /* Header file */
117 : class nsIDBTransaction : public nsIIDBTransaction
118 : {
119 : public:
120 : NS_DECL_ISUPPORTS
121 : NS_DECL_NSIIDBTRANSACTION
122 :
123 : nsIDBTransaction();
124 :
125 : private:
126 : ~nsIDBTransaction();
127 :
128 : protected:
129 : /* additional members */
130 : };
131 :
132 : /* Implementation file */
133 : NS_IMPL_ISUPPORTS1(nsIDBTransaction, nsIIDBTransaction)
134 :
135 : nsIDBTransaction::nsIDBTransaction()
136 : {
137 : /* member initializers and constructor code */
138 : }
139 :
140 : nsIDBTransaction::~nsIDBTransaction()
141 : {
142 : /* destructor code */
143 : }
144 :
145 : /* readonly attribute nsIIDBDatabase db; */
146 : NS_IMETHODIMP nsIDBTransaction::GetDb(nsIIDBDatabase * *aDb)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* readonly attribute DOMString mode; */
152 : NS_IMETHODIMP nsIDBTransaction::GetMode(nsAString & aMode)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* readonly attribute nsIDOMDOMStringList objectStoreNames; */
158 : NS_IMETHODIMP nsIDBTransaction::GetObjectStoreNames(nsIDOMDOMStringList * *aObjectStoreNames)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* nsIIDBObjectStore objectStore ([Null (Stringify)] in DOMString name); */
164 : NS_IMETHODIMP nsIDBTransaction::ObjectStore(const nsAString & name, nsIIDBObjectStore * *_retval NS_OUTPARAM)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* void abort (); */
170 : NS_IMETHODIMP nsIDBTransaction::Abort()
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* attribute nsIDOMEventListener onerror; */
176 : NS_IMETHODIMP nsIDBTransaction::GetOnerror(nsIDOMEventListener * *aOnerror)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 : NS_IMETHODIMP nsIDBTransaction::SetOnerror(nsIDOMEventListener *aOnerror)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 :
185 : /* attribute nsIDOMEventListener oncomplete; */
186 : NS_IMETHODIMP nsIDBTransaction::GetOncomplete(nsIDOMEventListener * *aOncomplete)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 : NS_IMETHODIMP nsIDBTransaction::SetOncomplete(nsIDOMEventListener *aOncomplete)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* attribute nsIDOMEventListener onabort; */
196 : NS_IMETHODIMP nsIDBTransaction::GetOnabort(nsIDOMEventListener * *aOnabort)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 : NS_IMETHODIMP nsIDBTransaction::SetOnabort(nsIDOMEventListener *aOnabort)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* End of implementation class template. */
206 : #endif
207 :
208 :
209 : #endif /* __gen_nsIIDBTransaction_h__ */
|