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;
|
|
|
|
|
|
|
|
const std::string WEBCONFIG_DEFAULT_PATH = "/usr/share/hyperion/webconfig";
|
|
|
|
const quint16 WEBCONFIG_DEFAULT_PORT = 8099;
|
2016-06-12 22:27:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WEBCONFIG_H
|
|
|
|
|