diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-17 16:07:39 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-24 09:51:37 -0700 |
commit | 39a4090c0a6e1d8fe12516be06ee7b31dd4bc96d (patch) | |
tree | 7587930b64bf95ec3a652cf761e6ded573931364 /core/subsurface-qt | |
parent | fadea413cdb4644b821369b27fad6e5f019d32c2 (diff) | |
download | subsurface-39a4090c0a6e1d8fe12516be06ee7b31dd4bc96d.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurface-qt')
-rw-r--r-- | core/subsurface-qt/divelistnotifier.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <QObject> +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<QString> filenames); void picturesAdded(dive *d, QVector<PictureObj> pics); + // Devices related signals + void deviceAdded(int index); + void deviceDeleted(int index); + // Filter related signals void filterPresetAdded(int index); void filterPresetRemoved(int index); |