mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
ebbb6b9440
* Update Hyperion.h * Update ImageProcessorFactory.h * Update ProtoConnection.h * Update WebConfig.h * Update CMakeLists.txt * Update Hyperion.cpp * Update CMakeLists.txt * Update CMakeLists.txt * Update CgiHandler.cpp * Update CgiHandler.h * Update WebConfig.cpp * Update CMakeLists.txt * Update hyperion-remote.cpp * Update JsonConnection.cpp * Update JsonConnection.h * Update hyperiond.cpp * Update hyperiond.h * Delete JsonFactory.h * Delete JsonSchemaChecker.h * Delete JsonSchemaChecker.cpp * Update WebConfig.cpp
37 lines
843 B
C++
37 lines
843 B
C++
#ifndef CGIHANDLER_H
|
|
#define CGIHANDLER_H
|
|
|
|
#include <QObject>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
|
|
#include <hyperion/Hyperion.h>
|
|
|
|
#include "QtHttpReply.h"
|
|
#include "QtHttpRequest.h"
|
|
|
|
class CgiHandler : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
CgiHandler (Hyperion * hyperion, QString baseUrl, QObject * parent = NULL);
|
|
virtual ~CgiHandler (void);
|
|
|
|
void exec(const QStringList & args,QtHttpRequest * request, QtHttpReply * reply);
|
|
|
|
// cgi commands
|
|
void cmd_cfg_jsonserver(const QStringList & args, QtHttpReply * reply);
|
|
void cmd_cfg_hyperion (const QStringList & args, QtHttpReply * reply);
|
|
void cmd_runscript (const QStringList & args, QtHttpReply * reply);
|
|
|
|
private:
|
|
Hyperion* _hyperion;
|
|
QtHttpReply * _reply;
|
|
const QJsonObject &_hyperionConfig;
|
|
const QString _baseUrl;
|
|
};
|
|
|
|
#endif // CGIHANDLER_H
|
|
|
|
|