summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.h
diff options
context:
space:
mode:
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();