mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
4533b34606
* make hyperion to singelton. remove arguments for config and hyperion - both are gettable via Hyperion::getInstance * refactor hyperiond * remove qt4 comapt make zeroconf mandatory refactor hyperiond * xbmcchecker is now a singleton * cleanup in hyperiond zeroconf switchable between static and shared linking * fix xbmcchecker * extensive refactoring of hyperiond webserver: make client ip information availabel in request object - preparation for ip filters proto/json server, use hyperion::getInstance instead of hyperion argument * move creation of hyperion core into hyperionDeamon class cleanup
36 lines
770 B
C++
36 lines
770 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"
|
|
#include "QtHttpRequest.h"
|
|
|
|
class CgiHandler : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
CgiHandler (Hyperion * hyperion, 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);
|
|
|
|
private:
|
|
Hyperion* _hyperion;
|
|
QtHttpReply * _reply;
|
|
const Json::Value &_hyperionConfig;
|
|
};
|
|
|
|
#endif // CGIHANDLER_H
|
|
|
|
|