|
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
|
2 * |
|
3 * This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #ifndef nsSHTransaction_h |
|
8 #define nsSHTransaction_h |
|
9 |
|
10 // Helper Classes |
|
11 #include "nsCOMPtr.h" |
|
12 |
|
13 // Needed interfaces |
|
14 #include "nsISHTransaction.h" |
|
15 |
|
16 class nsISHEntry; |
|
17 |
|
18 class nsSHTransaction: public nsISHTransaction |
|
19 { |
|
20 public: |
|
21 NS_DECL_ISUPPORTS |
|
22 NS_DECL_NSISHTRANSACTION |
|
23 |
|
24 nsSHTransaction(); |
|
25 |
|
26 protected: |
|
27 virtual ~nsSHTransaction(); |
|
28 |
|
29 |
|
30 protected: |
|
31 bool mPersist; |
|
32 |
|
33 nsISHTransaction * mPrev; // Weak Reference |
|
34 nsCOMPtr<nsISHTransaction> mNext; |
|
35 nsCOMPtr<nsISHEntry> mSHEntry; |
|
36 }; |
|
37 |
|
38 |
|
39 #endif /* nsSHTransaction_h */ |