mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	* std::string -> qstring part 1 * more string migration * more string migration ... * ... * more qstring mogrations add sysinfo via json * remove unneccessary includes * integrate sysinfo into webui
		
			
				
	
	
		
			33 lines
		
	
	
		
			566 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			566 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();
 | |
| 
 | |
| private:
 | |
| 	Hyperion*            _hyperion;
 | |
| 	QString              _baseUrl;
 | |
| 	quint16              _port;
 | |
| 	StaticFileServing*   _server;
 | |
| 
 | |
| 	const QString        WEBCONFIG_DEFAULT_PATH = ":/webconfig";
 | |
| 	const quint16        WEBCONFIG_DEFAULT_PORT = 8099;
 | |
| };
 | |
| 
 | |
| #endif // WEBCONFIG_H
 | |
| 
 |