mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
simulators
remove function
This commit is contained in:
@@ -8,11 +8,7 @@ Simulators::Simulators(uint16_t port, QObject *parent) : QObject(parent), m_serv
|
|||||||
{
|
{
|
||||||
INSERT_SIMULATOR(Test_Sim);
|
INSERT_SIMULATOR(Test_Sim);
|
||||||
INSERT_SIMULATOR(Can_Debugger);
|
INSERT_SIMULATOR(Can_Debugger);
|
||||||
setup_connections();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Simulators::setup_connections()
|
|
||||||
{
|
|
||||||
connect(m_server, &Websocket::on_message, this, [this](QWebSocket *conn, QString message) {
|
connect(m_server, &Websocket::on_message, this, [this](QWebSocket *conn, QString message) {
|
||||||
QString response = message_parser(message);
|
QString response = message_parser(message);
|
||||||
if (response.isEmpty() || response == "{}")
|
if (response.isEmpty() || response == "{}")
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ class Simulators : public QObject
|
|||||||
};
|
};
|
||||||
|
|
||||||
Simulators(uint16_t port, QString can_dev, QObject *parent = nullptr);
|
Simulators(uint16_t port, QString can_dev, QObject *parent = nullptr);
|
||||||
void setup_connections();
|
|
||||||
std::string active_simulator_name() const;
|
std::string active_simulator_name() const;
|
||||||
void run();
|
void run();
|
||||||
void stop();
|
void stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user