#include #include "inputbusiness.h" InputBusiness::InputBusiness(InputManager *input, const QList &channels, ServerManager *server) : m_input(input) , m_channels(channels) , m_server(server) { } InputBusiness::~InputBusiness() { } void InputBusiness::readAndSend() { QList values; quint64 timestamp = time(nullptr); foreach (auto channel, m_channels) values.append(m_input->read(channel)); m_server->sendData(values, timestamp); }