qBittorrent
webapplication.cpp File Reference
#include "webapplication.h"
#include <algorithm>
#include <QDateTime>
#include <QDebug>
#include <QFile>
#include <QFileInfo>
#include <QJsonDocument>
#include <QMimeDatabase>
#include <QMimeType>
#include <QNetworkCookie>
#include <QRegularExpression>
#include <QUrl>
#include "base/algorithm.h"
#include "base/global.h"
#include "base/http/httperror.h"
#include "base/logger.h"
#include "base/preferences.h"
#include "base/types.h"
#include "base/utils/bytearray.h"
#include "base/utils/fs.h"
#include "base/utils/misc.h"
#include "base/utils/random.h"
#include "base/utils/string.h"
#include "api/apierror.h"
#include "api/appcontroller.h"
#include "api/authcontroller.h"
#include "api/logcontroller.h"
#include "api/rsscontroller.h"
#include "api/searchcontroller.h"
#include "api/synccontroller.h"
#include "api/torrentscontroller.h"
#include "api/transfercontroller.h"
Include dependency graph for webapplication.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{webapplication.cpp}
 

Functions

QStringMap anonymous_namespace{webapplication.cpp}::parseCookie (const QStringView cookieStr)
 
QUrl anonymous_namespace{webapplication.cpp}::urlFromHostHeader (const QString &hostHeader)
 
QString anonymous_namespace{webapplication.cpp}::getCachingInterval (QString contentType)
 

Variables

const int MAX_ALLOWED_FILESIZE = 10 * 1024 * 1024
 
const char C_SID [] = "SID"
 
const QString PATH_PREFIX_ICONS {QStringLiteral("/icons/")}
 
const QString WWW_FOLDER {QStringLiteral(":/www")}
 
const QString PUBLIC_FOLDER {QStringLiteral("/public")}
 
const QString PRIVATE_FOLDER {QStringLiteral("/private")}
 

Variable Documentation

◆ C_SID

const char C_SID[] = "SID"

◆ MAX_ALLOWED_FILESIZE

const int MAX_ALLOWED_FILESIZE = 10 * 1024 * 1024

Definition at line 65 of file webapplication.cpp.

Referenced by WebApplication::sendFile().

◆ PATH_PREFIX_ICONS

const QString PATH_PREFIX_ICONS {QStringLiteral("/icons/")}

Definition at line 68 of file webapplication.cpp.

Referenced by WebApplication::sendWebUIFile().

◆ PRIVATE_FOLDER

const QString PRIVATE_FOLDER {QStringLiteral("/private")}

Definition at line 71 of file webapplication.cpp.

Referenced by WebApplication::sendWebUIFile().

◆ PUBLIC_FOLDER

const QString PUBLIC_FOLDER {QStringLiteral("/public")}

Definition at line 70 of file webapplication.cpp.

Referenced by WebApplication::sendWebUIFile().

◆ WWW_FOLDER

const QString WWW_FOLDER {QStringLiteral(":/www")}

Definition at line 69 of file webapplication.cpp.

Referenced by WebApplication::configure().