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:
31
include/DeviceListApp.h
Normal file
31
include/DeviceListApp.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "libcontrol.h"
|
||||
#include <ftxui/component/component.hpp>
|
||||
|
||||
using namespace ftxui;
|
||||
|
||||
class DeviceDetailsApp;
|
||||
|
||||
class DeviceListApp {
|
||||
public:
|
||||
DeviceListApp();
|
||||
void run();
|
||||
|
||||
private:
|
||||
std::shared_ptr<RobotController> robot_controller_;
|
||||
std::vector<uint8_t> device_ids_;
|
||||
std::vector<std::string> device_list_entries_;
|
||||
int selected_device_ = 0;
|
||||
Component main_component_;
|
||||
|
||||
void refreshDevices();
|
||||
void setupUI();
|
||||
void openDeviceDetails();
|
||||
};
|
||||
Reference in New Issue
Block a user