44 #include <QtCore/QObject> 45 #include <QtNetwork/QTcpSocket> 47 #include <messages.pb.h> 49 #include "src/database-server/data-source/idatasource.h" 59 void send_var_val(
const QString &var_name,
double value);
74 message::ResponseStatus status, QString response);
82 void do_request(
const message::GetVariables &gv);
void send_var(const Variable &var)
Definition: client.cc:197
const QString host_
Definition: client.h:85
Definition: variable.h:44
void request_vars()
Definition: client.cc:236
void variablesReceived(const std::vector< Variable > &vals)
void do_request(const message::GetVariables &gv)
Definition: client.cc:277
QTcpSocket socket_
Definition: client.h:84
void send_var_val(const QString &var_name, double value)
Definition: client.cc:217
void responseReceived(message::MessageType *prev_msg, message::ResponseStatus status, QString response)
void request_var_values(const QString &var_name)
Definition: client.cc:241
bool is_connected() const
Definition: client.cc:293
void do_request(const message::GetValues &gv)
Definition: client.cc:261
~Client()
Definition: client.h:66
void connect()
Definition: client.cc:195
std::uint16_t port_
Definition: client.h:86