Enable libdivecomputer log or dump from the UI

Pick filenames for these functions as they are selected.
Use the windows-safe fopen function.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-12-24 16:26:00 -08:00
parent 4de739b935
commit d42cc5a40c
6 changed files with 113 additions and 31 deletions

View file

@ -44,6 +44,10 @@ public slots:
void onDownloadThreadFinished();
void updateProgressBar();
void runDialog();
void checkLogFile(int state);
void checkDumpFile(int state);
void pickDumpFile();
void pickLogFile();
private:
void markChildrenAsDisabled();
@ -63,7 +67,8 @@ private:
QStringListModel *productModel;
void fill_computer_list();
void fill_device_list();
QString logFile;
QString dumpFile;
QTimer *timer;
public: