mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
integrated webserver ... (#697)
* initial commit of webconfig * update example config with webconfig and fix format of file update debian postinst script for install example config
This commit is contained in:
27
include/webconfig/WebConfig.h
Normal file
27
include/webconfig/WebConfig.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef WEBCONFIG_H
|
||||
#define WEBCONFIG_H
|
||||
|
||||
#include <QObject>
|
||||
#include <string>
|
||||
|
||||
class StaticFileServing;
|
||||
|
||||
class WebConfig : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit WebConfig (std::string baseUrl, quint16 port, QObject * parent = NULL);
|
||||
virtual ~WebConfig (void);
|
||||
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
private:
|
||||
QObject * _parent;
|
||||
QString _baseUrl;
|
||||
quint16 _port;
|
||||
StaticFileServing * _server;
|
||||
};
|
||||
|
||||
#endif // WEBCONFIG_H
|
||||
|
Reference in New Issue
Block a user