1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/editor/txmgr/idl/nsITransaction.idl
3 : */
4 :
5 : #ifndef __gen_nsITransaction_h__
6 : #define __gen_nsITransaction_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 :
18 : /* starting interface: nsITransaction */
19 : #define NS_ITRANSACTION_IID_STR "58e330c1-7b48-11d2-98b9-00805f297d89"
20 :
21 : #define NS_ITRANSACTION_IID \
22 : {0x58e330c1, 0x7b48, 0x11d2, \
23 : { 0x98, 0xb9, 0x00, 0x80, 0x5f, 0x29, 0x7d, 0x89 }}
24 :
25 4265 : class NS_NO_VTABLE NS_SCRIPTABLE nsITransaction : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRANSACTION_IID)
29 :
30 : /* void doTransaction (); */
31 : NS_SCRIPTABLE NS_IMETHOD DoTransaction(void) = 0;
32 :
33 : /* void undoTransaction (); */
34 : NS_SCRIPTABLE NS_IMETHOD UndoTransaction(void) = 0;
35 :
36 : /* void redoTransaction (); */
37 : NS_SCRIPTABLE NS_IMETHOD RedoTransaction(void) = 0;
38 :
39 : /* readonly attribute boolean isTransient; */
40 : NS_SCRIPTABLE NS_IMETHOD GetIsTransient(bool *aIsTransient) = 0;
41 :
42 : /* boolean merge (in nsITransaction aTransaction); */
43 : NS_SCRIPTABLE NS_IMETHOD Merge(nsITransaction *aTransaction, bool *_retval NS_OUTPARAM) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(nsITransaction, NS_ITRANSACTION_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_NSITRANSACTION \
51 : NS_SCRIPTABLE NS_IMETHOD DoTransaction(void); \
52 : NS_SCRIPTABLE NS_IMETHOD UndoTransaction(void); \
53 : NS_SCRIPTABLE NS_IMETHOD RedoTransaction(void); \
54 : NS_SCRIPTABLE NS_IMETHOD GetIsTransient(bool *aIsTransient); \
55 : NS_SCRIPTABLE NS_IMETHOD Merge(nsITransaction *aTransaction, bool *_retval NS_OUTPARAM);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSITRANSACTION(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD DoTransaction(void) { return _to DoTransaction(); } \
60 : NS_SCRIPTABLE NS_IMETHOD UndoTransaction(void) { return _to UndoTransaction(); } \
61 : NS_SCRIPTABLE NS_IMETHOD RedoTransaction(void) { return _to RedoTransaction(); } \
62 : NS_SCRIPTABLE NS_IMETHOD GetIsTransient(bool *aIsTransient) { return _to GetIsTransient(aIsTransient); } \
63 : NS_SCRIPTABLE NS_IMETHOD Merge(nsITransaction *aTransaction, bool *_retval NS_OUTPARAM) { return _to Merge(aTransaction, _retval); }
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
66 : #define NS_FORWARD_SAFE_NSITRANSACTION(_to) \
67 : NS_SCRIPTABLE NS_IMETHOD DoTransaction(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoTransaction(); } \
68 : NS_SCRIPTABLE NS_IMETHOD UndoTransaction(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->UndoTransaction(); } \
69 : NS_SCRIPTABLE NS_IMETHOD RedoTransaction(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RedoTransaction(); } \
70 : NS_SCRIPTABLE NS_IMETHOD GetIsTransient(bool *aIsTransient) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsTransient(aIsTransient); } \
71 : NS_SCRIPTABLE NS_IMETHOD Merge(nsITransaction *aTransaction, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Merge(aTransaction, _retval); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class nsTransaction : public nsITransaction
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSITRANSACTION
82 :
83 : nsTransaction();
84 :
85 : private:
86 : ~nsTransaction();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS1(nsTransaction, nsITransaction)
94 :
95 : nsTransaction::nsTransaction()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsTransaction::~nsTransaction()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* void doTransaction (); */
106 : NS_IMETHODIMP nsTransaction::DoTransaction()
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* void undoTransaction (); */
112 : NS_IMETHODIMP nsTransaction::UndoTransaction()
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* void redoTransaction (); */
118 : NS_IMETHODIMP nsTransaction::RedoTransaction()
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* readonly attribute boolean isTransient; */
124 : NS_IMETHODIMP nsTransaction::GetIsTransient(bool *aIsTransient)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* boolean merge (in nsITransaction aTransaction); */
130 : NS_IMETHODIMP nsTransaction::Merge(nsITransaction *aTransaction, bool *_retval NS_OUTPARAM)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : #endif /* __gen_nsITransaction_h__ */
|