mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
webui fix and serverinfo (#699)
* 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
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
#define WEBCONFIG_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <string>
|
||||
#include <utils/jsonschema/JsonFactory.h>
|
||||
|
||||
class StaticFileServing;
|
||||
|
||||
@@ -10,17 +12,23 @@ class WebConfig : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit WebConfig (std::string baseUrl, quint16 port, QObject * parent = NULL);
|
||||
WebConfig (std::string baseUrl, quint16 port, quint16 jsonPort, QObject * parent = NULL);
|
||||
WebConfig (const Json::Value &config, QObject * parent = NULL);
|
||||
|
||||
virtual ~WebConfig (void);
|
||||
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
private:
|
||||
QObject * _parent;
|
||||
QObject* _parent;
|
||||
QString _baseUrl;
|
||||
quint16 _port;
|
||||
StaticFileServing * _server;
|
||||
quint16 _jsonPort;
|
||||
StaticFileServing* _server;
|
||||
|
||||
const std::string WEBCONFIG_DEFAULT_PATH = "/usr/share/hyperion/webconfig";
|
||||
const quint16 WEBCONFIG_DEFAULT_PORT = 8099;
|
||||
};
|
||||
|
||||
#endif // WEBCONFIG_H
|
||||
|
Reference in New Issue
Block a user