File indexing completed on 2024-05-12 05:39:26

0001 #include "diceparser.h"
0002 #include "qhttp/src/qhttpserver.hpp"
0003 #include <QObject>
0004 
0005 class DiceServer : public QObject
0006 {
0007     Q_OBJECT
0008 public:
0009     DiceServer(int port= 8085);
0010     virtual ~DiceServer();
0011 
0012     QString startDiceParsing(QString cmd);
0013     QString diceToText(ExportedDiceResult& dice, bool highlight, bool homogeneous);
0014 
0015 private:
0016     DiceParser* m_diceParser;
0017     qhttp::server::QHttpServer* m_server;
0018 };