aboutsummaryrefslogtreecommitdiff
path: root/server-v1/source/EpistmoolServer/Server.hpp
diff options
context:
space:
mode:
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