diff options
| author | JF <jf@codingfield.com> | 2020-05-02 12:16:57 (GMT) |
|---|---|---|
| committer | JF <jf@codingfield.com> | 2020-05-02 12:16:57 (GMT) |
| commit | e20fdfa494ed8b1b6a62b71ca605a6a801e54e4e (patch) | |
| tree | c1d0eef1ae68f37b0e2338198b4304ac74eea25f /src/Components/Ble/BleController.h | |
| parent | 87c6556ad049077ab14398637031ea029b321baf (diff) | |
Add new screen that is displayed during the OTA transfert.
Diffstat (limited to 'src/Components/Ble/BleController.h')
| -rw-r--r-- | src/Components/Ble/BleController.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Components/Ble/BleController.h b/src/Components/Ble/BleController.h index f2bd77e..65a5ef8 100644 --- a/src/Components/Ble/BleController.h +++ b/src/Components/Ble/BleController.h @@ -12,8 +12,20 @@ namespace Pinetime { bool IsConnected() const {return isConnected;} void Connect(); void Disconnect(); + + void StartFirmwareUpdate(); + void StopFirmwareUpdate(); + void FirmwareUpdateTotalBytes(uint32_t totalBytes); + void FirmwareUpdateCurrentBytes(uint32_t currentBytes); + + bool IsFirmwareUpdating() const { return isFirmwareUpdating; } + uint32_t FirmwareUpdateTotalBytes() const { return firmwareUpdateTotalBytes; } + uint32_t FirmwareUpdateCurrentBytes() const { return firmwareUpdateCurrentBytes; } private: bool isConnected = false; + bool isFirmwareUpdating = false; + uint32_t firmwareUpdateTotalBytes = 0; + uint32_t firmwareUpdateCurrentBytes = 0; }; } |
