mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Read basic details from dive computer
Added classes for reading data from dive computer. This is at the basic level and I will expand it as I go along. Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Thiago Macieira <thiago@macieira.org>
This commit is contained in:
parent
791fbee260
commit
a7c9b25b05
6 changed files with 212 additions and 2 deletions
|
@ -4,6 +4,9 @@
|
|||
#include <QDialog>
|
||||
#include <QStringListModel>
|
||||
#include "../libdivecomputer.h"
|
||||
|
||||
class ConfigureDiveComputer;
|
||||
|
||||
namespace Ui {
|
||||
class ConfigureDiveComputerDialog;
|
||||
}
|
||||
|
@ -21,9 +24,17 @@ private slots:
|
|||
|
||||
void on_product_currentIndexChanged(const QString &product);
|
||||
|
||||
void readSettings();
|
||||
void configMessage(QString msg);
|
||||
void configError(QString err);
|
||||
void on_cancel_clicked();
|
||||
private:
|
||||
Ui::ConfigureDiveComputerDialog *ui;
|
||||
|
||||
ConfigureDiveComputer *config;
|
||||
device_data_t device_data;
|
||||
void getDeviceData();
|
||||
|
||||
QStringList vendorList;
|
||||
QHash<QString, QStringList> productList;
|
||||
QHash<QString, dc_descriptor_t *> descriptorLookup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue