diff options
Diffstat (limited to 'desktop-widgets/command_private.h')
-rw-r--r-- | desktop-widgets/command_private.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/desktop-widgets/command_private.h b/desktop-widgets/command_private.h index 06e4516c1..a75ff9bba 100644 --- a/desktop-widgets/command_private.h +++ b/desktop-widgets/command_private.h @@ -4,13 +4,12 @@ #ifndef COMMAND_PRIVATE_H #define COMMAND_PRIVATE_H +#include "core/dive.h" + #include <vector> #include <utility> #include <QVector> -struct dive; -struct dive_trip; - namespace Command { // Generally, signals are sent in batches per trip. To avoid writing the same loop @@ -56,6 +55,14 @@ void processByTrip(Vector &divesIn, Function action) } +// Reset the selection to the dives of the "selection" vector and send the appropriate signals. +// Set the current dive to "currentDive". "currentDive" must be an element of "selection" (or +// null if "seletion" is empty). Return true if the selection or current dive changed. +bool setSelection(const std::vector<dive *> &selection, dive *currentDive); + +// Get currently selectd dives +std::vector<dive *> getDiveSelection(); + } // namespace Command #endif // COMMAND_PRIVATE_H |