kwave  18.07.70
UndoAddMetaDataAction.h
Go to the documentation of this file.
1 /***************************************************************************
2  UndoAddMetaDataAction.h - Undo action for insertion of meta data
3  -------------------
4  begin : Wed Aug 16 2006
5  copyright : (C) 2006 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_ADD_META_DATA_ACTION_H
20 #define UNDO_ADD_META_DATA_ACTION_H
21 
22 #include "config.h"
23 
24 #include <QList>
25 #include <QString>
26 
27 #include "libkwave/MetaData.h"
28 #include "libkwave/MetaDataList.h"
29 #include "libkwave/Sample.h"
31 
32 namespace Kwave
33 {
34 
35  class SignalManager;
36 
41  {
42  public:
43 
48  explicit UndoAddMetaDataAction(const Kwave::MetaDataList &meta_data);
49 
51  virtual ~UndoAddMetaDataAction() Q_DECL_OVERRIDE;
52 
56  QString description() Q_DECL_OVERRIDE;
57 
59  virtual qint64 undoSize() Q_DECL_OVERRIDE;
60 
62  virtual qint64 redoSize() Q_DECL_OVERRIDE;
63 
65  virtual bool store(SignalManager &manager) Q_DECL_OVERRIDE;
66 
69  bool with_redo) Q_DECL_OVERRIDE;
70 
71  protected:
72 
74  QString m_description;
75 
78 
81 
83  QList<unsigned int> m_tracks;
84 
85  };
86 }
87 
88 #endif /* UNDO_ADD_META_DATA_ACTION_H */
89 
90 //***************************************************************************
91 //***************************************************************************
UndoAddMetaDataAction(const Kwave::MetaDataList &meta_data)
Definition: App.h:33
QString description() Q_DECL_OVERRIDE
virtual ~UndoAddMetaDataAction() Q_DECL_OVERRIDE
quint64 sample_index_t
Definition: Sample.h:28
virtual bool store(SignalManager &manager) Q_DECL_OVERRIDE
virtual qint64 undoSize() Q_DECL_OVERRIDE
virtual Kwave::UndoAction * undo(Kwave::SignalManager &manager, bool with_redo) Q_DECL_OVERRIDE
virtual qint64 redoSize() Q_DECL_OVERRIDE