aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/bin/webserver/diceserver.h
blob: fa32814c6050ad6b448ce81a0fbcbd5776cb9924 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
};