summaryrefslogtreecommitdiffstats
path: root/qt-ui/undocommands.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/undocommands.h')
-rw-r--r--qt-ui/undocommands.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/qt-ui/undocommands.h b/qt-ui/undocommands.h
new file mode 100644
index 000000000..9a7803f9e
--- /dev/null
+++ b/qt-ui/undocommands.h
@@ -0,0 +1,17 @@
+#ifndef UNDOCOMMANDS_H
+#define UNDOCOMMANDS_H
+
+#include <QUndoCommand>
+#include "dive.h"
+
+class UndoDeleteDive : public QUndoCommand {
+public:
+ UndoDeleteDive(QList<struct dive*> diveList);
+ virtual void undo();
+ virtual void redo();
+
+private:
+ QList<struct dive*> dives;
+};
+
+#endif // UNDOCOMMANDS_H