|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
|
2 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 #ifndef nsTransactionList_h__ |
|
7 #define nsTransactionList_h__ |
|
8 |
|
9 #include "nsAutoPtr.h" |
|
10 #include "nsISupportsImpl.h" |
|
11 #include "nsITransactionList.h" |
|
12 #include "nsIWeakReferenceUtils.h" |
|
13 |
|
14 class nsITransaction; |
|
15 class nsITransactionManager; |
|
16 class nsTransactionItem; |
|
17 class nsTransactionStack; |
|
18 |
|
19 /** implementation of a transaction list object. |
|
20 * |
|
21 */ |
|
22 class nsTransactionList : public nsITransactionList |
|
23 { |
|
24 private: |
|
25 |
|
26 nsWeakPtr mTxnMgr; |
|
27 nsTransactionStack *mTxnStack; |
|
28 nsRefPtr<nsTransactionItem> mTxnItem; |
|
29 |
|
30 public: |
|
31 |
|
32 nsTransactionList(nsITransactionManager *aTxnMgr, nsTransactionStack *aTxnStack); |
|
33 nsTransactionList(nsITransactionManager *aTxnMgr, nsTransactionItem *aTxnItem); |
|
34 |
|
35 virtual ~nsTransactionList(); |
|
36 |
|
37 /* Macro for AddRef(), Release(), and QueryInterface() */ |
|
38 NS_DECL_ISUPPORTS |
|
39 |
|
40 /* nsITransactionManager method implementations. */ |
|
41 NS_DECL_NSITRANSACTIONLIST |
|
42 |
|
43 /* nsTransactionList specific methods. */ |
|
44 }; |
|
45 |
|
46 #endif // nsTransactionList_h__ |