aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/bin/webserver/diceserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/webserver/diceserver.h')
-rw-r--r--src/bin/webserver/diceserver.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/bin/webserver/diceserver.h b/src/bin/webserver/diceserver.h
new file mode 100644
index 0000000..fa32814
--- /dev/null
+++ b/src/bin/webserver/diceserver.h
@@ -0,0 +1,18 @@
+#include "diceparser.h"
+#include "qhttp/src/qhttpserver.hpp"
+#include <QObject>
+
+class DiceServer : public QObject
+{
+ Q_OBJECT
+public:
+ DiceServer(int port= 8085);
+ virtual ~DiceServer();
+
+ QString startDiceParsing(QString cmd);
+ QString diceToText(ExportedDiceResult& dice, bool highlight, bool homogeneous);
+
+private:
+ DiceParser* m_diceParser;
+ qhttp::server::QHttpServer* m_server;
+};