mirror of
https://github.com/BotChain-Robots/dev-tools.git
synced 2026-07-08 15:07:22 +02:00
Cleanup for release
This commit is contained in:
28
include/tabs/FirmwareUpdateTab.h
Normal file
28
include/tabs/FirmwareUpdateTab.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <atomic>
|
||||
#include "libcontrol.h"
|
||||
#include "rpc/RemoteManagement.h"
|
||||
#include <ftxui/component/component.hpp>
|
||||
|
||||
using namespace ftxui;
|
||||
|
||||
class FirmwareUpdateTab {
|
||||
public:
|
||||
FirmwareUpdateTab(std::shared_ptr<RobotController> robot_controller, uint8_t device_id);
|
||||
Component createComponent();
|
||||
|
||||
private:
|
||||
std::shared_ptr<RobotController> robot_controller_;
|
||||
std::shared_ptr<RemoteManagement> remote_management_;
|
||||
uint8_t device_id_;
|
||||
|
||||
// Firmware update state
|
||||
std::string firmware_file_path_;
|
||||
bool update_in_progress_ = false;
|
||||
int progress_ = 0;
|
||||
std::string update_status_message_;
|
||||
bool update_success_ = false;
|
||||
};
|
||||
Reference in New Issue
Block a user