#pragma once #include #include #include "ExeGet.h" //#include namespace Incart::Net::WebSockets { class WebTerminalExeGet : public WebApi::exeGet { Q_OBJECT public: WebTerminalExeGet() : exeGet() {} void exe(WebApi::ParsingURI& uri, QTcpSocket* _socket) override { QList commands = uri.getCommands(); QString fname = QCoreApplication::applicationDirPath() + "/" + QString(Common::JConfig::getRg("PathToWebTerminal").toString()) + "index.html"; std::cout << __FUNCTION__ << ": " << fname.toUtf8().constData() << std::endl; file_reader(fname, "html"); //CTerminal() << __FUNCTION__ << m_resp->getHttp(); // вывод кадра ответа sendResponse(_socket); } }; } // namespace Incart::Net::WebSockets