summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-01-08 10:12:11 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-08 07:40:33 -0800
commitdb367ae0a28088be9438e1479c97da14e4b5737c (patch)
treefa785c6d0b7985f6b413f63aecb7ddf660eef253 /qt-ui/downloadfromdivecomputer.h
parent5f4770a5bd361b2bf0675f3e0de869242861f8e3 (diff)
downloadsubsurface-db367ae0a28088be9438e1479c97da14e4b5737c.tar.gz
Dive d/l selection UI:: Add skeleton for the dialog
So the user can remove the ones they don't like. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.h')
-rw-r--r--qt-ui/downloadfromdivecomputer.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.h b/qt-ui/downloadfromdivecomputer.h
index dcb568c9e..799b0c991 100644
--- a/qt-ui/downloadfromdivecomputer.h
+++ b/qt-ui/downloadfromdivecomputer.h
@@ -5,6 +5,7 @@
#include <QThread>
#include <QHash>
#include <QMap>
+#include <QAbstractTableModel>
#include "libdivecomputer.h"
#include "configuredivecomputerdialog.h"
@@ -24,6 +25,20 @@ private:
device_data_t *data;
};
+class DiveImportedModel : public QAbstractTableModel
+{
+ Q_OBJECT
+public:
+ DiveImportedModel(QObject *o);
+ int columnCount(const QModelIndex& index = QModelIndex()) const;
+ int rowCount(const QModelIndex& index = QModelIndex()) const;
+ QVariant data(const QModelIndex& index, int role) const;
+ void setImportedDivesIndexes(int first, int last);
+private:
+ int firstIndex;
+ int lastIndex;
+};
+
class DownloadFromDCWidget : public QDialog {
Q_OBJECT
public:
@@ -77,6 +92,7 @@ private:
QTimer *timer;
bool dumpWarningShown;
OstcFirmwareCheck *ostcFirmwareCheck;
+ DiveImportedModel *diveImportedModel;
public:
bool preferDownloaded();