remove protobuf (part 2)

This commit is contained in:
Paulchen-Panther
2018-12-30 22:07:53 +01:00
parent 559311e18c
commit 38950edf35
54 changed files with 1441 additions and 377 deletions

View File

@@ -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);