mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
- Adapt server code for QtWebapp namespace 'stefanfrings' - Implement custom modifications needed by v1 controller via template engine - Unify iphone and ipad templates
31 lines
857 B
C++
31 lines
857 B
C++
/**
|
|
@file
|
|
@author Stefan Frings
|
|
*/
|
|
|
|
#ifndef REQUESTMAPPER_H
|
|
#define REQUESTMAPPER_H
|
|
|
|
#include "httprequesthandler.h"
|
|
#include <QMutex>
|
|
|
|
class RequestMapper : public stefanfrings::HttpRequestHandler
|
|
{
|
|
Q_OBJECT
|
|
Q_DISABLE_COPY(RequestMapper)
|
|
public:
|
|
RequestMapper(QObject *parent = nullptr);
|
|
|
|
void service(stefanfrings::HttpRequest &request, stefanfrings::HttpResponse &response) override;
|
|
void loadSessionV1(stefanfrings::HttpRequest &request, stefanfrings::HttpResponse &response);
|
|
void loadSessionV2(stefanfrings::HttpRequest &request, stefanfrings::HttpResponse &response);
|
|
|
|
private:
|
|
void serviceV1(stefanfrings::HttpRequest &request, stefanfrings::HttpResponse &response);
|
|
void serviceV2(stefanfrings::HttpRequest &request, stefanfrings::HttpResponse &response);
|
|
|
|
static QMutex mutex;
|
|
};
|
|
|
|
#endif // REQUESTMAPPER_H
|