#include "netstream.h"
#include <algorithm>
#include <cstddef>
#include <cstdio>
#include <cinttypes>
#include <utility>
#include <QAtomicInt>
#include <QCoreApplication>
#include <QDesktopServices>
#include <QElapsedTimer>
#include <QEvent>
#include <QFile>
#include <QMetaType>
#include <QMutexLocker>
#include <QNetworkAccessManager>
#include <QNetworkDiskCache>
#include <QNetworkInterface>
#include <QNetworkProxy>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QThread>
#include <QTimeZone>
#include <QUrl>
#include <QSslConfiguration>
#include <QSslError>
#include <QSslSocket>
#include <QSslKey>
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdirs.h"
#include "libmythbase/mythlogging.h"
Go to the source code of this file.
|
static QAtomicInt | s_nRequest (1) |
|
static QString | Source (const QNetworkRequest &request) |
|
static QString | Source (const QNetworkReply *reply) |
|
static qlonglong | ContentLength (const QNetworkReply *reply) |
|
static qlonglong | ContentRange (const QNetworkReply *reply, qulonglong &first, qulonglong &last) |
|
|
static const QString | LOC { QStringLiteral("[netstream] ") } |
|
static QMutex | s_mtx |
|
static constexpr qint64 | kMaxBuffer = 4LL * 1024 * 1024L |
|
◆ s_nRequest()
static QAtomicInt s_nRequest |
( |
1 |
| ) |
|
|
static |
◆ Source() [1/2]
static QString Source |
( |
const QNetworkRequest & |
request | ) |
|
|
inlinestatic |
◆ Source() [2/2]
static QString Source |
( |
const QNetworkReply * |
reply | ) |
|
|
inlinestatic |
◆ ContentLength()
static qlonglong ContentLength |
( |
const QNetworkReply * |
reply | ) |
|
|
inlinestatic |
◆ ContentRange()
static qlonglong ContentRange |
( |
const QNetworkReply * |
reply, |
|
|
qulonglong & |
first, |
|
|
qulonglong & |
last |
|
) |
| |
|
inlinestatic |
◆ LOC
const QString LOC { QStringLiteral("[netstream] ") } |
|
static |
Definition at line 46 of file netstream.cpp.
Referenced by NetStream::Abort(), NAMThread::AbortRequest(), ContentRange(), NAMThread::GetLastModified(), NetStream::Request(), NAMThread::run(), NetStream::safe_read(), NetStream::Seek(), NetStream::slotFinished(), NetStream::slotReadyRead(), NetStream::slotRequestStarted(), NetStream::slotSslErrors(), and NAMThread::StartRequest().
◆ s_mtx
◆ kMaxBuffer
constexpr qint64 kMaxBuffer = 4LL * 1024 * 1024L |
|
staticconstexpr |