kwave  18.07.70
UndoTransactionGuard.h
Go to the documentation of this file.
1 /***************************************************************************
2  UndoTransactionGuard.h - guard class for undo transactions
3  -------------------
4  begin : Sat May 26, 2001
5  copyright : (C) 2001 by Thomas Eschenbacher
6  email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de>
7 
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 #ifndef UNDO_TRANSACTION_GUARD_H
20 #define UNDO_TRANSACTION_GUARD_H
21 
22 #include "config.h"
23 
24 #include <QtGlobal>
25 
26 class QString;
27 
28 namespace Kwave {
29 
30  class SignalManager;
31  class UndoAction;
32  class Plugin;
33 
40  class Q_DECL_EXPORT UndoTransactionGuard
41  {
42 
43  public:
52  const QString &name = QString());
53 
63  explicit UndoTransactionGuard(Kwave::Plugin &plugin,
64  const QString &name = QString());
65 
67  virtual ~UndoTransactionGuard();
68 
82  bool registerUndoAction(UndoAction *action);
83 
88  void abort();
89 
90  private:
91 
94 
97 
98  };
99 
100 }
101 
102 #endif /* UNDO_TRANSACTION_GUARD_H */
103 
104 //***************************************************************************
105 //***************************************************************************
Definition: App.h:33
const char name[16]
Definition: memcpy.c:510
Kwave::SignalManager & m_manager