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