diff options
Diffstat (limited to 'desktop-widgets/command_divelist.h')
-rw-r--r-- | desktop-widgets/command_divelist.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/desktop-widgets/command_divelist.h b/desktop-widgets/command_divelist.h index 77116c302..8cf8986e3 100644 --- a/desktop-widgets/command_divelist.h +++ b/desktop-widgets/command_divelist.h @@ -104,6 +104,26 @@ private: dive * currentDive; }; +class ImportDives : public DiveListBase { +public: + // Note: dives and trips are consumed - after the call they will be empty. + ImportDives(struct dive_table *dives, struct trip_table *trips, + bool prefer_imported, bool downloaded, bool merge_all_trips, + const QString &source); +private: + void undoit() override; + void redoit() override; + bool workToBeDone() override; + + // For redo and undo + DivesAndTripsToAdd divesToAdd; + std::vector<dive *> divesToRemove; + + // For undo + std::vector<dive *> selection; + dive * currentDive; +}; + class DeleteDive : public DiveListBase { public: DeleteDive(const QVector<dive *> &divesToDelete); |