mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
6625a318ac
* add deployment * add correct api key * fix cmake lists and add heroku app name * Update .gitmodules sync modules with upstream * add possibility to start hyperiond as systray app * cleanup * - new command line options: --desktop --service to set desired mode (systray icon / console only) - auto detect x server - if avail run in gui mode - on osx always run in gui mode - use existing icon from webconfig, instead of own icon - add ability to no gice a config file name. If config not given, default config file will be set (home dir, or hyperiond dir, depending on writable state) * fix warnings and compile error * use own icon for systray purpose * use new logo * - set application properties - fix force service mode
35 lines
605 B
C++
35 lines
605 B
C++
#ifndef WEBCONFIG_H
|
|
#define WEBCONFIG_H
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <hyperion/Hyperion.h>
|
|
|
|
class StaticFileServing;
|
|
|
|
class WebConfig : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
WebConfig (QObject * parent = NULL);
|
|
|
|
virtual ~WebConfig (void);
|
|
|
|
void start();
|
|
void stop();
|
|
|
|
quint16 getPort() { return _port; };
|
|
|
|
private:
|
|
Hyperion* _hyperion;
|
|
QString _baseUrl;
|
|
quint16 _port;
|
|
StaticFileServing* _server;
|
|
|
|
const QString WEBCONFIG_DEFAULT_PATH = ":/webconfig";
|
|
const quint16 WEBCONFIG_DEFAULT_PORT = 8099;
|
|
};
|
|
|
|
#endif // WEBCONFIG_H
|
|
|