2016-06-12 22:27:24 +02:00
|
|
|
#ifndef WEBCONFIG_H
|
|
|
|
#define WEBCONFIG_H
|
|
|
|
|
|
|
|
#include <QObject>
|
2016-06-13 22:54:08 +02:00
|
|
|
#include <QString>
|
2016-06-12 22:27:24 +02:00
|
|
|
#include <string>
|
2016-06-13 22:54:08 +02:00
|
|
|
#include <utils/jsonschema/JsonFactory.h>
|
2016-06-14 20:14:06 +02:00
|
|
|
#include <hyperion/Hyperion.h>
|
2016-06-12 22:27:24 +02:00
|
|
|
|
|
|
|
class StaticFileServing;
|
|
|
|
|
|
|
|
class WebConfig : public QObject {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2016-06-17 01:25:40 +02:00
|
|
|
WebConfig (QObject * parent = NULL);
|
2016-06-13 22:54:08 +02:00
|
|
|
|
2016-06-12 22:27:24 +02:00
|
|
|
virtual ~WebConfig (void);
|
|
|
|
|
|
|
|
void start();
|
|
|
|
void stop();
|
|
|
|
|
|
|
|
private:
|
2016-06-14 20:14:06 +02:00
|
|
|
Hyperion* _hyperion;
|
2016-06-12 22:27:24 +02:00
|
|
|
QString _baseUrl;
|
|
|
|
quint16 _port;
|
2016-06-13 22:54:08 +02:00
|
|
|
StaticFileServing* _server;
|
|
|
|
|
2016-09-14 13:51:28 +02:00
|
|
|
const QString WEBCONFIG_DEFAULT_PATH = ":/webconfig";
|
2016-06-13 22:54:08 +02:00
|
|
|
const quint16 WEBCONFIG_DEFAULT_PORT = 8099;
|
2016-06-12 22:27:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WEBCONFIG_H
|
|
|
|
|