mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
webui - "cgi" handler and multiple fixes (#700)
* initial commit of webconfig * update example config with webconfig and fix format of file update debian postinst script for install example config * fix compiling add new web server command "serverinfo" to use in webapp to retrieve json port * change web default port to 8099 * add cgi engine to webserver * fix include
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <QString>
|
||||
#include <string>
|
||||
#include <utils/jsonschema/JsonFactory.h>
|
||||
#include <hyperion/Hyperion.h>
|
||||
|
||||
class StaticFileServing;
|
||||
|
||||
@@ -12,8 +13,7 @@ class WebConfig : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
WebConfig (std::string baseUrl, quint16 port, quint16 jsonPort, QObject * parent = NULL);
|
||||
WebConfig (const Json::Value &config, QObject * parent = NULL);
|
||||
WebConfig (Hyperion *hyperion, QObject * parent = NULL);
|
||||
|
||||
virtual ~WebConfig (void);
|
||||
|
||||
@@ -21,10 +21,9 @@ public:
|
||||
void stop();
|
||||
|
||||
private:
|
||||
QObject* _parent;
|
||||
Hyperion* _hyperion;
|
||||
QString _baseUrl;
|
||||
quint16 _port;
|
||||
quint16 _jsonPort;
|
||||
StaticFileServing* _server;
|
||||
|
||||
const std::string WEBCONFIG_DEFAULT_PATH = "/usr/share/hyperion/webconfig";
|
||||
|
Reference in New Issue
Block a user