kwave  18.07.70
UndoTransaction.h
Go to the documentation of this file.
1 /***************************************************************************
2  UndoTransaction.h - groups moulitple UndoAction objects together
3  -------------------
4  begin : Fri May 25 2001
5  copyright : (C) 2001 by Thomas Eschenbacher
6  email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de>
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef UNDO_TRANSACTION_H
19 #define UNDO_TRANSACTION_H
20 
21 #include "config.h"
22 
23 #include <QList>
24 #include <QString>
25 
26 class UndoAction;
27 
28 namespace Kwave {
29 
37  class UndoTransaction: public QList<UndoAction *>
38  {
39 
40  public:
41 
47  explicit UndoTransaction(const QString &name);
48 
50  virtual ~UndoTransaction();
51 
53  qint64 undoSize();
54 
56  qint64 redoSize();
57 
64  QString description();
65 
72  bool containsModification() const;
73 
77  void abort();
78 
82  bool isAborted() const { return m_aborted; }
83 
85  virtual void dump(const QString &indent);
86 
87  private:
88 
90  QString m_description;
91 
93  bool m_aborted;
94 
95  };
96 }
97 
98 #endif /* UNDO_TRANSACTION_H */
99 
100 //***************************************************************************
101 //***************************************************************************
Definition: App.h:33
UndoTransaction(const QString &name)
bool containsModification() const
const char name[16]
Definition: memcpy.c:510
virtual void dump(const QString &indent)