#ifndef UNDOCOMMANDS_H #define UNDOCOMMANDS_H #include #include "dive.h" class UndoDeleteDive : public QUndoCommand { public: UndoDeleteDive(QList diveList); virtual void undo(); virtual void redo(); private: QList dives; }; class UndoShiftTime : public QUndoCommand { public: UndoShiftTime(QList diveList, int amount); virtual void undo(); virtual void redo(); private: QList dives; int timeChanged; }; #endif // UNDOCOMMANDS_H