summaryrefslogtreecommitdiffstats
path: root/commands/command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'commands/command.cpp')
-rw-r--r--commands/command.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/commands/command.cpp b/commands/command.cpp
index 6ce7f18bd..4125d994b 100644
--- a/commands/command.cpp
+++ b/commands/command.cpp
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
#include "command.h"
+#include "command_device.h"
#include "command_divelist.h"
#include "command_divesite.h"
#include "command_edit.h"
@@ -380,6 +381,16 @@ void addPictures(const std::vector<PictureListForAddition> &pictures)
execute(new AddPictures(pictures));
}
+void removeDevice(int idx)
+{
+ execute(new RemoveDevice(idx));
+}
+
+void editDeviceNickname(int idx, const QString &nickname)
+{
+ execute(new EditDeviceNickname(idx, nickname));
+}
+
void createFilterPreset(const QString &name, const FilterData &data)
{
execute(new CreateFilterPreset(name, data));