HTTP server; changed namespace to qtwebapp

This commit is contained in:
f4exb 2017-11-11 09:32:15 +01:00
parent b226c594df
commit be77fa82a3
20 changed files with 20 additions and 20 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@
#include "httpcookie.h" #include "httpcookie.h"
using namespace stefanfrings; using namespace qtwebapp;
HttpCookie::HttpCookie() HttpCookie::HttpCookie()
{ {

View File

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

View File

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

View File

@ -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,

View File

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

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@
#include "httpresponse.h" #include "httpresponse.h"
using namespace stefanfrings; using namespace qtwebapp;
HttpResponse::HttpResponse(QTcpSocket* socket) HttpResponse::HttpResponse(QTcpSocket* socket)
{ {

View File

@ -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.

View File

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

View File

@ -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.

View File

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

View File

@ -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.

View File

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

View File

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