Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/mozIStorageRow.idl
3 : */
4 :
5 : #ifndef __gen_mozIStorageRow_h__
6 : #define __gen_mozIStorageRow_h__
7 :
8 :
9 : #ifndef __gen_mozIStorageValueArray_h__
10 : #include "mozIStorageValueArray.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 nsIVariant; /* forward declaration */
18 :
19 :
20 : /* starting interface: mozIStorageRow */
21 : #define MOZISTORAGEROW_IID_STR "62d1b6bd-cbfe-4f9b-aee1-0ead4af4e6dc"
22 :
23 : #define MOZISTORAGEROW_IID \
24 : {0x62d1b6bd, 0xcbfe, 0x4f9b, \
25 : { 0xae, 0xe1, 0x0e, 0xad, 0x4a, 0xf4, 0xe6, 0xdc }}
26 :
27 4 : class NS_NO_VTABLE mozIStorageRow : public mozIStorageValueArray {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZISTORAGEROW_IID)
31 :
32 : /* nsIVariant getResultByIndex (in unsigned long aIndex); */
33 : NS_IMETHOD GetResultByIndex(uint32_t aIndex, nsIVariant * *_retval) = 0;
34 :
35 : /* nsIVariant getResultByName (in AUTF8String aName); */
36 : NS_IMETHOD GetResultByName(const nsACString & aName, nsIVariant * *_retval) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(mozIStorageRow, MOZISTORAGEROW_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_MOZISTORAGEROW \
44 : NS_IMETHOD GetResultByIndex(uint32_t aIndex, nsIVariant * *_retval) override; \
45 : NS_IMETHOD GetResultByName(const nsACString & aName, nsIVariant * *_retval) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_MOZISTORAGEROW \
50 : nsresult GetResultByIndex(uint32_t aIndex, nsIVariant * *_retval); \
51 : nsresult GetResultByName(const nsACString & aName, nsIVariant * *_retval);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_MOZISTORAGEROW(_to) \
55 : NS_IMETHOD GetResultByIndex(uint32_t aIndex, nsIVariant * *_retval) override { return _to GetResultByIndex(aIndex, _retval); } \
56 : NS_IMETHOD GetResultByName(const nsACString & aName, nsIVariant * *_retval) override { return _to GetResultByName(aName, _retval); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_MOZISTORAGEROW(_to) \
60 : NS_IMETHOD GetResultByIndex(uint32_t aIndex, nsIVariant * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResultByIndex(aIndex, _retval); } \
61 : NS_IMETHOD GetResultByName(const nsACString & aName, nsIVariant * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResultByName(aName, _retval); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class _MYCLASS_ : public mozIStorageRow
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_MOZISTORAGEROW
72 :
73 : _MYCLASS_();
74 :
75 : private:
76 : ~_MYCLASS_();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(_MYCLASS_, mozIStorageRow)
84 :
85 : _MYCLASS_::_MYCLASS_()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : _MYCLASS_::~_MYCLASS_()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* nsIVariant getResultByIndex (in unsigned long aIndex); */
96 : NS_IMETHODIMP _MYCLASS_::GetResultByIndex(uint32_t aIndex, nsIVariant * *_retval)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* nsIVariant getResultByName (in AUTF8String aName); */
102 : NS_IMETHODIMP _MYCLASS_::GetResultByName(const nsACString & aName, nsIVariant * *_retval)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : #endif /* __gen_mozIStorageRow_h__ */
|