summaryrefslogtreecommitdiffstats
path: root/commands/command_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'commands/command_event.h')
-rw-r--r--commands/command_event.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/commands/command_event.h b/commands/command_event.h
index ddfe6f7d4..eec5cb262 100644
--- a/commands/command_event.h
+++ b/commands/command_event.h
@@ -70,6 +70,18 @@ private:
event *eventToRemove; // for undo and redo
};
+class RemoveEvent : public EventBase {
+public:
+ RemoveEvent(struct dive *d, int dcNr, struct event *ev);
+private:
+ bool workToBeDone() override;
+ void undoit() override;
+ void redoit() override;
+
+ OwningEventPtr eventToAdd; // for undo
+ event *eventToRemove; // for redo
+};
+
} // namespace Command
#endif // COMMAND_EVENT_H