From 39a4090c0a6e1d8fe12516be06ee7b31dd4bc96d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 17 Oct 2020 16:07:39 +0200 Subject: devices: add devices in Command::importTable() Add a device_table parameters to Command::importTable() and add_imported_dives(). The content of this table will be added to the global device list (respectively removed on undo). This is currently a no-op, as the parser doesn't yet fill out the device table, but adds devices directly to the global device table. Signed-off-by: Berthold Stoeger --- core/subsurface-qt/divelistnotifier.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/subsurface-qt') diff --git a/core/subsurface-qt/divelistnotifier.h b/core/subsurface-qt/divelistnotifier.h index eb44d6cde..7f7162dac 100644 --- a/core/subsurface-qt/divelistnotifier.h +++ b/core/subsurface-qt/divelistnotifier.h @@ -10,6 +10,8 @@ #include +struct device; + // Dive and trip fields that can be edited. Use bit fields so that we can pass multiple fields at once. // Provides an inlined flag-based constructur because sadly C-style designated initializers are only supported since C++20. struct DiveField { @@ -125,6 +127,10 @@ signals: void picturesRemoved(dive *d, QVector filenames); void picturesAdded(dive *d, QVector pics); + // Devices related signals + void deviceAdded(int index); + void deviceDeleted(int index); + // Filter related signals void filterPresetAdded(int index); void filterPresetRemoved(int index); -- cgit v1.2.3-70-g09d2