From 8a23aa89a58d3a90d5851b449b5552e1fcdcaded Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 27 Jun 2022 00:13:08 +0000 Subject: (From git) Initial server setup git-svn-id: file:///home/arch/svn/epistmool/trunk@4 71f44415-077c-4ad7-a976-72ddbf76608f --- server-v1/source/EpistmoolServer/Server.hpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 server-v1/source/EpistmoolServer/Server.hpp (limited to 'server-v1/source/EpistmoolServer/Server.hpp') diff --git a/server-v1/source/EpistmoolServer/Server.hpp b/server-v1/source/EpistmoolServer/Server.hpp new file mode 100644 index 0000000..5c2c6d2 --- /dev/null +++ b/server-v1/source/EpistmoolServer/Server.hpp @@ -0,0 +1,28 @@ +#pragma once + +#include "EpistmoolServer/Connection.hpp" +#include "EpistmoolServer/Session.hpp" +#include "all_fwd.hpp" + +#include +#include + +namespace Epistmool::Server { + +class Server : public QObject +{ + Q_OBJECT + class Private; + +private: + ConnectionManager mConnectionManager; + SessionManager mSessionManager; + +public: + explicit Server(QObject* parent = nullptr); + +public slots: + void onMessage(const QJsonDocument& message, Epistmool::Server::ConnectionId connId); +}; + +} // namespace Epistmool::Server -- cgit v1.2.3-70-g09d2