summaryrefslogtreecommitdiffstats
path: root/qt-models/diveimportedmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/diveimportedmodel.h')
-rw-r--r--qt-models/diveimportedmodel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-models/diveimportedmodel.h b/qt-models/diveimportedmodel.h
index 468385f6a..2124daef2 100644
--- a/qt-models/diveimportedmodel.h
+++ b/qt-models/diveimportedmodel.h
@@ -23,6 +23,7 @@ public:
QHash<int, QByteArray> roleNames() const;
void deleteDeselected();
std::pair<struct dive_table, struct dive_site_table> consumeTables(); // Returns dives and sites and resets model.
+
int numDives() const;
Q_INVOKABLE void recordDives();
Q_INVOKABLE void startDownload();
@@ -43,12 +44,11 @@ signals:
void downloadFinished();
private:
- void repopulate(dive_table_t *table, dive_site_table_t *sites);
int firstIndex;
int lastIndex;
std::vector<char> checkStates; // char instead of bool to avoid silly pessimization of std::vector.
- struct dive_table *diveTable;
- struct dive_site_table *sitesTable;
+ struct dive_table diveTable;
+ struct dive_site_table sitesTable;
};
#endif