mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
* 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
35 lines
719 B
C++
35 lines
719 B
C++
#ifndef CGIHANDLER_H
|
|
#define CGIHANDLER_H
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
|
|
#include <utils/jsonschema/JsonFactory.h>
|
|
#include <hyperion/Hyperion.h>
|
|
|
|
#include "QtHttpReply.h"
|
|
|
|
class CgiHandler : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
CgiHandler (Hyperion * hyperion, QObject * parent = NULL);
|
|
virtual ~CgiHandler (void);
|
|
|
|
void exec(const QStringList & args, QtHttpReply * reply);
|
|
|
|
// cgi commands
|
|
void cmd_cfg_jsonserver(const QStringList & args, QtHttpReply * reply);
|
|
void cmd_cfg_hyperion (const QStringList & args, QtHttpReply * reply);
|
|
|
|
private:
|
|
Hyperion* _hyperion;
|
|
QtHttpReply * _reply;
|
|
const Json::Value &_hyperionConfig;
|
|
};
|
|
|
|
#endif // CGIHANDLER_H
|
|
|
|
|