aboutsummaryrefslogtreecommitdiff
path: root/server-v1/source/EpistmoolServer/Server.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-27 00:13:08 +0000
committerrtk0c <[email protected]>2022-06-27 00:13:08 +0000
commit8a23aa89a58d3a90d5851b449b5552e1fcdcaded (patch)
tree86a527705eafe1ba36d6d5744afeddad196c0eeb /server-v1/source/EpistmoolServer/Server.hpp
parent9ad9af9f2596b91e1dd65e71543f75b0644e8283 (diff)
(From git) Initial server setup
git-svn-id: file:///home/arch/svn/epistmool/trunk@4 71f44415-077c-4ad7-a976-72ddbf76608f
Diffstat (limited to 'server-v1/source/EpistmoolServer/Server.hpp')
-rw-r--r--server-v1/source/EpistmoolServer/Server.hpp28
1 files changed, 28 insertions, 0 deletions
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 <QJsonDocument>
+#include <QObject>
+
+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