aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/webserver/diceserver.h
blob: 330b71a36301eafb2f3136eb0940be34e25e45f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <QObject>
#include "diceparser.h"
#include "qhttp/src/qhttpserver.hpp"


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;
};