mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Add a private table for downloaded dives
This still isn't actually used, just puts it in place. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6f25713408
commit
e43ea018fa
2 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,7 @@ typedef struct device_data_t
|
||||||
bool libdc_log;
|
bool libdc_log;
|
||||||
bool libdc_dump;
|
bool libdc_dump;
|
||||||
FILE *libdc_logfile;
|
FILE *libdc_logfile;
|
||||||
|
struct dive_table *download_table;
|
||||||
} device_data_t;
|
} device_data_t;
|
||||||
|
|
||||||
const char *do_libdivecomputer_import(device_data_t *data);
|
const char *do_libdivecomputer_import(device_data_t *data);
|
||||||
|
|
|
@ -38,6 +38,8 @@ namespace DownloadFromDcGlobal {
|
||||||
const char *err_string;
|
const char *err_string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct dive_table downloadTable;
|
||||||
|
|
||||||
DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f),
|
DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f),
|
||||||
thread(0),
|
thread(0),
|
||||||
downloading(false),
|
downloading(false),
|
||||||
|
@ -49,6 +51,7 @@ DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) :
|
||||||
ostcFirmwareCheck(0),
|
ostcFirmwareCheck(0),
|
||||||
currentState(INITIAL)
|
currentState(INITIAL)
|
||||||
{
|
{
|
||||||
|
clear_table(&downloadTable);
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
ui.progressBar->hide();
|
ui.progressBar->hide();
|
||||||
ui.progressBar->setMinimum(0);
|
ui.progressBar->setMinimum(0);
|
||||||
|
|
Loading…
Reference in a new issue