mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-09-26 06:46:34 -04:00
HTTP server; changed namespace to qtwebapp
This commit is contained in:
parent
b226c594df
commit
be77fa82a3
@ -6,7 +6,7 @@
|
|||||||
#include "httpconnectionhandler.h"
|
#include "httpconnectionhandler.h"
|
||||||
#include "httpresponse.h"
|
#include "httpresponse.h"
|
||||||
|
|
||||||
using namespace stefanfrings;
|
using namespace qtwebapp;
|
||||||
|
|
||||||
HttpConnectionHandler::HttpConnectionHandler(QSettings* settings, HttpRequestHandler* requestHandler, QSslConfiguration* sslConfiguration)
|
HttpConnectionHandler::HttpConnectionHandler(QSettings* settings, HttpRequestHandler* requestHandler, QSslConfiguration* sslConfiguration)
|
||||||
: QThread()
|
: QThread()
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#include "httprequest.h"
|
#include "httprequest.h"
|
||||||
#include "httprequesthandler.h"
|
#include "httprequesthandler.h"
|
||||||
|
|
||||||
namespace stefanfrings {
|
namespace qtwebapp {
|
||||||
|
|
||||||
/** Alias type definition, for compatibility to different Qt versions */
|
/** Alias type definition, for compatibility to different Qt versions */
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include "httpconnectionhandlerpool.h"
|
#include "httpconnectionhandlerpool.h"
|
||||||
|
|
||||||
using namespace stefanfrings;
|
using namespace qtwebapp;
|
||||||
|
|
||||||
HttpConnectionHandlerPool::HttpConnectionHandlerPool(QSettings* settings, HttpRequestHandler* requestHandler)
|
HttpConnectionHandlerPool::HttpConnectionHandlerPool(QSettings* settings, HttpRequestHandler* requestHandler)
|
||||||
: QObject()
|
: QObject()
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include "httpglobal.h"
|
#include "httpglobal.h"
|
||||||
#include "httpconnectionhandler.h"
|
#include "httpconnectionhandler.h"
|
||||||
|
|
||||||
namespace stefanfrings {
|
namespace qtwebapp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Pool of http connection handlers. The size of the pool grows and
|
Pool of http connection handlers. The size of the pool grows and
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "httpcookie.h"
|
#include "httpcookie.h"
|
||||||
|
|
||||||
using namespace stefanfrings;
|
using namespace qtwebapp;
|
||||||
|
|
||||||
HttpCookie::HttpCookie()
|
HttpCookie::HttpCookie()
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include "httpglobal.h"
|
#include "httpglobal.h"
|
||||||
|
|
||||||
namespace stefanfrings {
|
namespace qtwebapp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
HTTP cookie as defined in RFC 2109. This class can also parse
|
HTTP cookie as defined in RFC 2109. This class can also parse
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include "httpconnectionhandlerpool.h"
|
#include "httpconnectionhandlerpool.h"
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
using namespace stefanfrings;
|
using namespace qtwebapp;
|
||||||
|
|
||||||
HttpListener::HttpListener(QSettings* settings, HttpRequestHandler* requestHandler, QObject *parent)
|
HttpListener::HttpListener(QSettings* settings, HttpRequestHandler* requestHandler, QObject *parent)
|
||||||
: QTcpServer(parent)
|
: QTcpServer(parent)
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include "httpconnectionhandlerpool.h"
|
#include "httpconnectionhandlerpool.h"
|
||||||
#include "httprequesthandler.h"
|
#include "httprequesthandler.h"
|
||||||
|
|
||||||
namespace stefanfrings {
|
namespace qtwebapp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Listens for incoming TCP connections and and passes all incoming HTTP requests to your implementation of HttpRequestHandler,
|
Listens for incoming TCP connections and and passes all incoming HTTP requests to your implementation of HttpRequestHandler,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include "httpcookie.h"
|
#include "httpcookie.h"
|
||||||
|
|
||||||
using namespace stefanfrings;
|
using namespace qtwebapp;
|
||||||
|
|
||||||
HttpRequest::HttpRequest(QSettings* settings)
|
HttpRequest::HttpRequest(QSettings* settings)
|
||||||
{
|
{
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
#include <QUuid>
|
#include <QUuid>
|
||||||
#include "httpglobal.h"
|
#include "httpglobal.h"
|
||||||
|
|
||||||
namespace stefanfrings {
|
namespace qtwebapp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This object represents a single HTTP request. It reads the request
|
This object represents a single HTTP request. It reads the request
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "httprequesthandler.h"
|
#include "httprequesthandler.h"
|
||||||
|
|
||||||
using namespace stefanfrings;
|
using namespace qtwebapp;
|
||||||
|
|
||||||
HttpRequestHandler::HttpRequestHandler(QObject* parent)
|
HttpRequestHandler::HttpRequestHandler(QObject* parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "httprequest.h"
|
#include "httprequest.h"
|
||||||
#include "httpresponse.h"
|
#include "httpresponse.h"
|
||||||
|
|
||||||
namespace stefanfrings {
|
namespace qtwebapp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The request handler generates a response for each HTTP request. Web Applications
|
The request handler generates a response for each HTTP request. Web Applications
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "httpresponse.h"
|
#include "httpresponse.h"
|
||||||
|
|
||||||
using namespace stefanfrings;
|
using namespace qtwebapp;
|
||||||
|
|
||||||
HttpResponse::HttpResponse(QTcpSocket* socket)
|
HttpResponse::HttpResponse(QTcpSocket* socket)
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include "httpglobal.h"
|
#include "httpglobal.h"
|
||||||
#include "httpcookie.h"
|
#include "httpcookie.h"
|
||||||
|
|
||||||
namespace stefanfrings {
|
namespace qtwebapp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This object represents a HTTP response, used to return something to the web client.
|
This object represents a HTTP response, used to return something to the web client.
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QUuid>
|
#include <QUuid>
|
||||||
|
|
||||||
using namespace stefanfrings;
|
using namespace qtwebapp;
|
||||||
|
|
||||||
HttpSession::HttpSession(bool canStore)
|
HttpSession::HttpSession(bool canStore)
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include <QReadWriteLock>
|
#include <QReadWriteLock>
|
||||||
#include "httpglobal.h"
|
#include "httpglobal.h"
|
||||||
|
|
||||||
namespace stefanfrings {
|
namespace qtwebapp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This class stores data for a single HTTP session.
|
This class stores data for a single HTTP session.
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QUuid>
|
#include <QUuid>
|
||||||
|
|
||||||
using namespace stefanfrings;
|
using namespace qtwebapp;
|
||||||
|
|
||||||
HttpSessionStore::HttpSessionStore(QSettings* settings, QObject* parent)
|
HttpSessionStore::HttpSessionStore(QSettings* settings, QObject* parent)
|
||||||
:QObject(parent)
|
:QObject(parent)
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include "httpresponse.h"
|
#include "httpresponse.h"
|
||||||
#include "httprequest.h"
|
#include "httprequest.h"
|
||||||
|
|
||||||
namespace stefanfrings {
|
namespace qtwebapp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Stores HTTP sessions and deletes them when they have expired.
|
Stores HTTP sessions and deletes them when they have expired.
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
|
|
||||||
using namespace stefanfrings;
|
using namespace qtwebapp;
|
||||||
|
|
||||||
StaticFileController::StaticFileController(QSettings* settings, QObject* parent)
|
StaticFileController::StaticFileController(QSettings* settings, QObject* parent)
|
||||||
:HttpRequestHandler(parent)
|
:HttpRequestHandler(parent)
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#include "httpresponse.h"
|
#include "httpresponse.h"
|
||||||
#include "httprequesthandler.h"
|
#include "httprequesthandler.h"
|
||||||
|
|
||||||
namespace stefanfrings {
|
namespace qtwebapp {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Delivers static files. It is usually called by the applications main request handler when
|
Delivers static files. It is usually called by the applications main request handler when
|
||||||
|
Loading…
Reference in New Issue
Block a user