#pragma once #include "ByteCommand.h" #include namespace Incart::DeviceWebApi { class DeviceWebApiSimpleCommand : public Usb::ByteCommand { private: QTcpSocket* m_socket; public: DeviceWebApiSimpleCommand(const std::string& name, uint32_t uid, QTcpSocket* socket, const std::vector& bytes, int timeoutInterval = 1000) : ByteCommand(name, uid, bytes, timeoutInterval) , m_socket(socket) { } DeviceWebApiSimpleCommand(const std::string& name, uint32_t uid, QTcpSocket* socket, std::vector&& bytes, int timeoutInterval = 1000) : ByteCommand(name, uid, std::move(bytes), timeoutInterval) , m_socket(socket) { } QTcpSocket* getSocket() { return m_socket; } }; } // namespace Incart::DeviceWebApi