mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Const correctness, override keyword, a bunch of stuff..
This commit is contained in:
@@ -10,19 +10,20 @@
|
||||
#include "QtHttpReply.h"
|
||||
#include "QtHttpRequest.h"
|
||||
|
||||
class CgiHandler : public QObject {
|
||||
class CgiHandler : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CgiHandler (QObject * parent = NULL);
|
||||
CgiHandler(QObject * parent = nullptr);
|
||||
|
||||
void setBaseUrl(const QString& url);
|
||||
void exec(const QStringList & args,QtHttpRequest * request, QtHttpReply * reply);
|
||||
void exec(const QStringList & args, QtHttpRequest * request, QtHttpReply * reply);
|
||||
|
||||
private:
|
||||
// CGI commands
|
||||
void cmd_cfg_jsonserver();
|
||||
void cmd_runscript ();
|
||||
void cmd_runscript();
|
||||
|
||||
QtHttpReply * _reply;
|
||||
QtHttpRequest * _request;
|
||||
|
@@ -24,7 +24,7 @@ class QtHttpServerWrapper : public QTcpServer
|
||||
|
||||
public:
|
||||
explicit QtHttpServerWrapper (QObject * parent = Q_NULLPTR);
|
||||
virtual ~QtHttpServerWrapper (void);
|
||||
~QtHttpServerWrapper() override;
|
||||
|
||||
void setUseSecure (const bool ssl = true);
|
||||
|
||||
|
@@ -11,12 +11,13 @@
|
||||
|
||||
#include <utils/Logger.h>
|
||||
|
||||
class StaticFileServing : public QObject {
|
||||
class StaticFileServing : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit StaticFileServing (QObject * parent = nullptr);
|
||||
virtual ~StaticFileServing ();
|
||||
explicit StaticFileServing (QObject * parent = nullptr);
|
||||
~StaticFileServing() override;
|
||||
|
||||
///
|
||||
/// @brief Overwrite current base url
|
||||
@@ -29,7 +30,7 @@ public:
|
||||
void setSSDPDescription(const QString& desc);
|
||||
|
||||
public slots:
|
||||
void onRequestNeedsReply (QtHttpRequest * request, QtHttpReply * reply);
|
||||
void onRequestNeedsReply (QtHttpRequest * request, QtHttpReply * reply);
|
||||
|
||||
private:
|
||||
QString _baseUrl;
|
||||
|
@@ -9,7 +9,8 @@ class QtHttpRequest;
|
||||
class Hyperion;
|
||||
class JsonAPI;
|
||||
|
||||
class WebSocketClient : public QObject {
|
||||
class WebSocketClient : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
WebSocketClient(QtHttpRequest* request, QTcpSocket* sock, bool localConnection, QObject* parent);
|
||||
|
Reference in New Issue
Block a user