1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/storage/public/mozIStorageError.idl
3 : */
4 :
5 : #ifndef __gen_mozIStorageError_h__
6 : #define __gen_mozIStorageError_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 : #ifdef ERROR
18 : #undef ERROR
19 : #endif
20 :
21 : /* starting interface: mozIStorageError */
22 : #define MOZISTORAGEERROR_IID_STR "1f350f96-7023-434a-8864-40a1c493aac1"
23 :
24 : #define MOZISTORAGEERROR_IID \
25 : {0x1f350f96, 0x7023, 0x434a, \
26 : { 0x88, 0x64, 0x40, 0xa1, 0xc4, 0x93, 0xaa, 0xc1 }}
27 :
28 26 : class NS_NO_VTABLE NS_SCRIPTABLE mozIStorageError : public nsISupports {
29 : public:
30 :
31 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGEERROR_IID)
32 :
33 : enum {
34 : ERROR = 1,
35 : INTERNAL = 2,
36 : PERM = 3,
37 : ABORT = 4,
38 : BUSY = 5,
39 : LOCKED = 6,
40 : NOMEM = 7,
41 : READONLY = 8,
42 : INTERRUPT = 9,
43 : IOERR = 10,
44 : CORRUPT = 11,
45 : FULL = 13,
46 : CANTOPEN = 14,
47 : EMPTY = 16,
48 : SCHEMA = 17,
49 : TOOBIG = 18,
50 : CONSTRAINT = 19,
51 : MISMATCH = 20,
52 : MISUSE = 21,
53 : NOLFS = 22,
54 : AUTH = 23,
55 : FORMAT = 24,
56 : RANGE = 25,
57 : NOTADB = 26
58 : };
59 :
60 : /* readonly attribute long result; */
61 : NS_SCRIPTABLE NS_IMETHOD GetResult(PRInt32 *aResult) = 0;
62 :
63 : /* readonly attribute AUTF8String message; */
64 : NS_SCRIPTABLE NS_IMETHOD GetMessage(nsACString & aMessage) = 0;
65 :
66 : };
67 :
68 : NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageError, MOZISTORAGEERROR_IID)
69 :
70 : /* Use this macro when declaring classes that implement this interface. */
71 : #define NS_DECL_MOZISTORAGEERROR \
72 : NS_SCRIPTABLE NS_IMETHOD GetResult(PRInt32 *aResult); \
73 : NS_SCRIPTABLE NS_IMETHOD GetMessage(nsACString & aMessage);
74 :
75 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
76 : #define NS_FORWARD_MOZISTORAGEERROR(_to) \
77 : NS_SCRIPTABLE NS_IMETHOD GetResult(PRInt32 *aResult) { return _to GetResult(aResult); } \
78 : NS_SCRIPTABLE NS_IMETHOD GetMessage(nsACString & aMessage) { return _to GetMessage(aMessage); }
79 :
80 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
81 : #define NS_FORWARD_SAFE_MOZISTORAGEERROR(_to) \
82 : NS_SCRIPTABLE NS_IMETHOD GetResult(PRInt32 *aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
83 : NS_SCRIPTABLE NS_IMETHOD GetMessage(nsACString & aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); }
84 :
85 : #if 0
86 : /* Use the code below as a template for the implementation class for this interface. */
87 :
88 : /* Header file */
89 : class _MYCLASS_ : public mozIStorageError
90 : {
91 : public:
92 : NS_DECL_ISUPPORTS
93 : NS_DECL_MOZISTORAGEERROR
94 :
95 : _MYCLASS_();
96 :
97 : private:
98 : ~_MYCLASS_();
99 :
100 : protected:
101 : /* additional members */
102 : };
103 :
104 : /* Implementation file */
105 : NS_IMPL_ISUPPORTS1(_MYCLASS_, mozIStorageError)
106 :
107 : _MYCLASS_::_MYCLASS_()
108 : {
109 : /* member initializers and constructor code */
110 : }
111 :
112 : _MYCLASS_::~_MYCLASS_()
113 : {
114 : /* destructor code */
115 : }
116 :
117 : /* readonly attribute long result; */
118 : NS_IMETHODIMP _MYCLASS_::GetResult(PRInt32 *aResult)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* readonly attribute AUTF8String message; */
124 : NS_IMETHODIMP _MYCLASS_::GetMessage(nsACString & aMessage)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* End of implementation class template. */
130 : #endif
131 :
132 :
133 : #endif /* __gen_mozIStorageError_h__ */
|