1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/editor/txmgr/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 "97f863f3-f886-11d4-9d39-0060b0f8baff"
22 :
23 : #define NS_ITRANSACTIONLIST_IID \
24 : {0x97f863f3, 0xf886, 0x11d4, \
25 : { 0x9d, 0x39, 0x00, 0x60, 0xb0, 0xf8, 0xba, 0xff }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsITransactionList : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRANSACTIONLIST_IID)
31 :
32 : /* readonly attribute long numItems; */
33 : NS_SCRIPTABLE NS_IMETHOD GetNumItems(PRInt32 *aNumItems) = 0;
34 :
35 : /* boolean itemIsBatch (in long aIndex); */
36 : NS_SCRIPTABLE NS_IMETHOD ItemIsBatch(PRInt32 aIndex, bool *_retval NS_OUTPARAM) = 0;
37 :
38 : /* nsITransaction getItem (in long aIndex); */
39 : NS_SCRIPTABLE NS_IMETHOD GetItem(PRInt32 aIndex, nsITransaction * *_retval NS_OUTPARAM) = 0;
40 :
41 : /* long getNumChildrenForItem (in long aIndex); */
42 : NS_SCRIPTABLE NS_IMETHOD GetNumChildrenForItem(PRInt32 aIndex, PRInt32 *_retval NS_OUTPARAM) = 0;
43 :
44 : /* nsITransactionList getChildListForItem (in long aIndex); */
45 : NS_SCRIPTABLE NS_IMETHOD GetChildListForItem(PRInt32 aIndex, nsITransactionList * *_retval NS_OUTPARAM) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsITransactionList, NS_ITRANSACTIONLIST_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSITRANSACTIONLIST \
53 : NS_SCRIPTABLE NS_IMETHOD GetNumItems(PRInt32 *aNumItems); \
54 : NS_SCRIPTABLE NS_IMETHOD ItemIsBatch(PRInt32 aIndex, bool *_retval NS_OUTPARAM); \
55 : NS_SCRIPTABLE NS_IMETHOD GetItem(PRInt32 aIndex, nsITransaction * *_retval NS_OUTPARAM); \
56 : NS_SCRIPTABLE NS_IMETHOD GetNumChildrenForItem(PRInt32 aIndex, PRInt32 *_retval NS_OUTPARAM); \
57 : NS_SCRIPTABLE NS_IMETHOD GetChildListForItem(PRInt32 aIndex, nsITransactionList * *_retval NS_OUTPARAM);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSITRANSACTIONLIST(_to) \
61 : NS_SCRIPTABLE NS_IMETHOD GetNumItems(PRInt32 *aNumItems) { return _to GetNumItems(aNumItems); } \
62 : NS_SCRIPTABLE NS_IMETHOD ItemIsBatch(PRInt32 aIndex, bool *_retval NS_OUTPARAM) { return _to ItemIsBatch(aIndex, _retval); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetItem(PRInt32 aIndex, nsITransaction * *_retval NS_OUTPARAM) { return _to GetItem(aIndex, _retval); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetNumChildrenForItem(PRInt32 aIndex, PRInt32 *_retval NS_OUTPARAM) { return _to GetNumChildrenForItem(aIndex, _retval); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetChildListForItem(PRInt32 aIndex, nsITransactionList * *_retval NS_OUTPARAM) { return _to GetChildListForItem(aIndex, _retval); }
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
68 : #define NS_FORWARD_SAFE_NSITRANSACTIONLIST(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD GetNumItems(PRInt32 *aNumItems) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumItems(aNumItems); } \
70 : NS_SCRIPTABLE NS_IMETHOD ItemIsBatch(PRInt32 aIndex, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ItemIsBatch(aIndex, _retval); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetItem(PRInt32 aIndex, nsITransaction * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItem(aIndex, _retval); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetNumChildrenForItem(PRInt32 aIndex, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumChildrenForItem(aIndex, _retval); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetChildListForItem(PRInt32 aIndex, nsITransactionList * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildListForItem(aIndex, _retval); }
74 :
75 : #if 0
76 : /* Use the code below as a template for the implementation class for this interface. */
77 :
78 : /* Header file */
79 : class nsTransactionList : public nsITransactionList
80 : {
81 : public:
82 : NS_DECL_ISUPPORTS
83 : NS_DECL_NSITRANSACTIONLIST
84 :
85 : nsTransactionList();
86 :
87 : private:
88 : ~nsTransactionList();
89 :
90 : protected:
91 : /* additional members */
92 : };
93 :
94 : /* Implementation file */
95 : NS_IMPL_ISUPPORTS1(nsTransactionList, nsITransactionList)
96 :
97 : nsTransactionList::nsTransactionList()
98 : {
99 : /* member initializers and constructor code */
100 : }
101 :
102 : nsTransactionList::~nsTransactionList()
103 : {
104 : /* destructor code */
105 : }
106 :
107 : /* readonly attribute long numItems; */
108 : NS_IMETHODIMP nsTransactionList::GetNumItems(PRInt32 *aNumItems)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* boolean itemIsBatch (in long aIndex); */
114 : NS_IMETHODIMP nsTransactionList::ItemIsBatch(PRInt32 aIndex, bool *_retval NS_OUTPARAM)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* nsITransaction getItem (in long aIndex); */
120 : NS_IMETHODIMP nsTransactionList::GetItem(PRInt32 aIndex, nsITransaction * *_retval NS_OUTPARAM)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* long getNumChildrenForItem (in long aIndex); */
126 : NS_IMETHODIMP nsTransactionList::GetNumChildrenForItem(PRInt32 aIndex, PRInt32 *_retval NS_OUTPARAM)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* nsITransactionList getChildListForItem (in long aIndex); */
132 : NS_IMETHODIMP nsTransactionList::GetChildListForItem(PRInt32 aIndex, nsITransactionList * *_retval NS_OUTPARAM)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* End of implementation class template. */
138 : #endif
139 :
140 :
141 : #endif /* __gen_nsITransactionList_h__ */
|