mirror of
https://github.com/BotChain-Robots/dev-tools.git
synced 2026-07-08 15:07:22 +02:00
24 lines
636 B
C++
24 lines
636 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <chrono>
|
|
#include "libcontrol.h"
|
|
#include <ftxui/component/component.hpp>
|
|
|
|
using namespace ftxui;
|
|
|
|
class InformationTab {
|
|
public:
|
|
InformationTab(std::shared_ptr<RobotController> robot_controller, uint8_t device_id);
|
|
Component createComponent();
|
|
|
|
private:
|
|
std::shared_ptr<RobotController> robot_controller_;
|
|
uint8_t device_id_;
|
|
|
|
std::string getModuleTypeString(ModuleType type);
|
|
std::string getConnectionTypeString(Messaging::ConnectionType type);
|
|
std::string formatTimeSince(const std::chrono::time_point<std::chrono::system_clock>& time_point);
|
|
};
|