Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsITransactionList.idl
3 : */
4 :
5 : #ifndef __gen_nsITransactionList_h__
6 : #define __gen_nsITransactionList_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 nsITransaction; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsITransactionList */
21 : #define NS_ITRANSACTIONLIST_IID_STR "d007ceff-c978-486a-b697-384ca01997be"
22 :
23 : #define NS_ITRANSACTIONLIST_IID \
24 : {0xd007ceff, 0xc978, 0x486a, \
25 : { 0xb6, 0x97, 0x38, 0x4c, 0xa0, 0x19, 0x97, 0xbe }}
26 :
27 0 : class NS_NO_VTABLE nsITransactionList : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRANSACTIONLIST_IID)
31 :
32 : /* readonly attribute long numItems; */
33 : NS_IMETHOD GetNumItems(int32_t *aNumItems) = 0;
34 :
35 : /* boolean itemIsBatch (in long aIndex); */
36 : NS_IMETHOD ItemIsBatch(int32_t aIndex, bool *_retval) = 0;
37 :
38 : /* nsITransaction getItem (in long aIndex); */
39 : NS_IMETHOD GetItem(int32_t aIndex, nsITransaction * *_retval) = 0;
40 :
41 : /* void getData (in long aIndex, [optional] out unsigned long aLength, [array, size_is (aLength), retval] out nsISupports aData); */
42 : NS_IMETHOD GetData(int32_t aIndex, uint32_t *aLength, nsISupports * **aData) = 0;
43 :
44 : /* long getNumChildrenForItem (in long aIndex); */
45 : NS_IMETHOD GetNumChildrenForItem(int32_t aIndex, int32_t *_retval) = 0;
46 :
47 : /* nsITransactionList getChildListForItem (in long aIndex); */
48 : NS_IMETHOD GetChildListForItem(int32_t aIndex, nsITransactionList * *_retval) = 0;
49 :
50 : };
51 :
52 : NS_DEFINE_STATIC_IID_ACCESSOR(nsITransactionList, NS_ITRANSACTIONLIST_IID)
53 :
54 : /* Use this macro when declaring classes that implement this interface. */
55 : #define NS_DECL_NSITRANSACTIONLIST \
56 : NS_IMETHOD GetNumItems(int32_t *aNumItems) override; \
57 : NS_IMETHOD ItemIsBatch(int32_t aIndex, bool *_retval) override; \
58 : NS_IMETHOD GetItem(int32_t aIndex, nsITransaction * *_retval) override; \
59 : NS_IMETHOD GetData(int32_t aIndex, uint32_t *aLength, nsISupports * **aData) override; \
60 : NS_IMETHOD GetNumChildrenForItem(int32_t aIndex, int32_t *_retval) override; \
61 : NS_IMETHOD GetChildListForItem(int32_t aIndex, nsITransactionList * *_retval) override;
62 :
63 : /* Use this macro when declaring the members of this interface when the
64 : class doesn't implement the interface. This is useful for forwarding. */
65 : #define NS_DECL_NON_VIRTUAL_NSITRANSACTIONLIST \
66 : nsresult GetNumItems(int32_t *aNumItems); \
67 : nsresult ItemIsBatch(int32_t aIndex, bool *_retval); \
68 : nsresult GetItem(int32_t aIndex, nsITransaction * *_retval); \
69 : nsresult GetData(int32_t aIndex, uint32_t *aLength, nsISupports * **aData); \
70 : nsresult GetNumChildrenForItem(int32_t aIndex, int32_t *_retval); \
71 : nsresult GetChildListForItem(int32_t aIndex, nsITransactionList * *_retval);
72 :
73 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
74 : #define NS_FORWARD_NSITRANSACTIONLIST(_to) \
75 : NS_IMETHOD GetNumItems(int32_t *aNumItems) override { return _to GetNumItems(aNumItems); } \
76 : NS_IMETHOD ItemIsBatch(int32_t aIndex, bool *_retval) override { return _to ItemIsBatch(aIndex, _retval); } \
77 : NS_IMETHOD GetItem(int32_t aIndex, nsITransaction * *_retval) override { return _to GetItem(aIndex, _retval); } \
78 : NS_IMETHOD GetData(int32_t aIndex, uint32_t *aLength, nsISupports * **aData) override { return _to GetData(aIndex, aLength, aData); } \
79 : NS_IMETHOD GetNumChildrenForItem(int32_t aIndex, int32_t *_retval) override { return _to GetNumChildrenForItem(aIndex, _retval); } \
80 : NS_IMETHOD GetChildListForItem(int32_t aIndex, nsITransactionList * *_retval) override { return _to GetChildListForItem(aIndex, _retval); }
81 :
82 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
83 : #define NS_FORWARD_SAFE_NSITRANSACTIONLIST(_to) \
84 : NS_IMETHOD GetNumItems(int32_t *aNumItems) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumItems(aNumItems); } \
85 : NS_IMETHOD ItemIsBatch(int32_t aIndex, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ItemIsBatch(aIndex, _retval); } \
86 : NS_IMETHOD GetItem(int32_t aIndex, nsITransaction * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItem(aIndex, _retval); } \
87 : NS_IMETHOD GetData(int32_t aIndex, uint32_t *aLength, nsISupports * **aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aIndex, aLength, aData); } \
88 : NS_IMETHOD GetNumChildrenForItem(int32_t aIndex, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumChildrenForItem(aIndex, _retval); } \
89 : NS_IMETHOD GetChildListForItem(int32_t aIndex, nsITransactionList * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildListForItem(aIndex, _retval); }
90 :
91 : #if 0
92 : /* Use the code below as a template for the implementation class for this interface. */
93 :
94 : /* Header file */
95 : class nsTransactionList : public nsITransactionList
96 : {
97 : public:
98 : NS_DECL_ISUPPORTS
99 : NS_DECL_NSITRANSACTIONLIST
100 :
101 : nsTransactionList();
102 :
103 : private:
104 : ~nsTransactionList();
105 :
106 : protected:
107 : /* additional members */
108 : };
109 :
110 : /* Implementation file */
111 : NS_IMPL_ISUPPORTS(nsTransactionList, nsITransactionList)
112 :
113 : nsTransactionList::nsTransactionList()
114 : {
115 : /* member initializers and constructor code */
116 : }
117 :
118 : nsTransactionList::~nsTransactionList()
119 : {
120 : /* destructor code */
121 : }
122 :
123 : /* readonly attribute long numItems; */
124 : NS_IMETHODIMP nsTransactionList::GetNumItems(int32_t *aNumItems)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* boolean itemIsBatch (in long aIndex); */
130 : NS_IMETHODIMP nsTransactionList::ItemIsBatch(int32_t aIndex, bool *_retval)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* nsITransaction getItem (in long aIndex); */
136 : NS_IMETHODIMP nsTransactionList::GetItem(int32_t aIndex, nsITransaction * *_retval)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* void getData (in long aIndex, [optional] out unsigned long aLength, [array, size_is (aLength), retval] out nsISupports aData); */
142 : NS_IMETHODIMP nsTransactionList::GetData(int32_t aIndex, uint32_t *aLength, nsISupports * **aData)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* long getNumChildrenForItem (in long aIndex); */
148 : NS_IMETHODIMP nsTransactionList::GetNumChildrenForItem(int32_t aIndex, int32_t *_retval)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* nsITransactionList getChildListForItem (in long aIndex); */
154 : NS_IMETHODIMP nsTransactionList::GetChildListForItem(int32_t aIndex, nsITransactionList * *_retval)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* End of implementation class template. */
160 : #endif
161 :
162 :
163 : #endif /* __gen_nsITransactionList_h__ */
|