mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
remove protobuf (part 2)
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
#ifndef STATICFILESERVING_H
|
||||
#define STATICFILESERVING_H
|
||||
|
||||
// locales includes
|
||||
#include "CgiHandler.h"
|
||||
|
||||
// qt includes
|
||||
#include <QMimeDatabase>
|
||||
|
||||
//#include "QtHttpServer.h"
|
||||
#include "QtHttpRequest.h"
|
||||
#include "QtHttpReply.h"
|
||||
#include "QtHttpHeader.h"
|
||||
#include "CgiHandler.h"
|
||||
|
||||
//utils includes
|
||||
#include <utils/Logger.h>
|
||||
|
||||
class StaticFileServing : public QObject {
|
||||
@@ -20,7 +18,15 @@ public:
|
||||
explicit StaticFileServing (QObject * parent = nullptr);
|
||||
virtual ~StaticFileServing (void);
|
||||
|
||||
///
|
||||
/// @brief Overwrite current base url
|
||||
///
|
||||
void setBaseUrl(const QString& url);
|
||||
///
|
||||
/// @brief Set a new SSDP description, if empty the description will be unset and clients will get a NotFound
|
||||
/// @param The description
|
||||
///
|
||||
void setSSDPDescription(const QString& desc);
|
||||
|
||||
public slots:
|
||||
void onRequestNeedsReply (QtHttpRequest * request, QtHttpReply * reply);
|
||||
@@ -30,6 +36,7 @@ private:
|
||||
QMimeDatabase * _mimeDb;
|
||||
CgiHandler _cgi;
|
||||
Logger * _log;
|
||||
QByteArray _ssdpDescription;
|
||||
|
||||
void printErrorToReply (QtHttpReply * reply, QtHttpReply::StatusCode code, QString errorMessage);
|
||||
|
||||
|
Reference in New Issue
Block a user