mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Lift dis- and connect out from config operations
When working with ostc's via bluetooth, they will reboot and exit bluetooth mode when you send the disconnect command. Thats kinda inconvenient when you would like to read your settings, change something and write it back, you need to start bluetooth mode on your device twice. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f38f8ce4c9
commit
a42df06dbf
6 changed files with 212 additions and 228 deletions
|
@ -17,6 +17,7 @@ public:
|
|||
void readSettings(device_data_t *data);
|
||||
|
||||
enum states {
|
||||
OPEN,
|
||||
INITIAL,
|
||||
READING,
|
||||
WRITING,
|
||||
|
@ -36,6 +37,11 @@ public:
|
|||
bool restoreXMLBackup(QString fileName, DeviceDetails *details);
|
||||
void startFirmwareUpdate(QString fileName, device_data_t *data);
|
||||
void resetSettings(device_data_t *data);
|
||||
|
||||
QString dc_open(device_data_t *data);
|
||||
public
|
||||
slots:
|
||||
void dc_close(device_data_t *data);
|
||||
signals:
|
||||
void progress(int percent);
|
||||
void message(QString msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue