MythTV  master
Classes | Functions | Variables
netstream.cpp File Reference
#include "netstream.h"
#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 <QUrl>
#include <QSslConfiguration>
#include <QSslError>
#include <QSslSocket>
#include <QSslKey>
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdirs.h"
#include "libmythbase/mythlogging.h"
Include dependency graph for netstream.cpp:

Go to the source code of this file.

Classes

class  NetStreamRequest
 
class  NetStreamAbort
 

Functions

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)
 

Variables

static const QString LOC { QStringLiteral("[netstream] ") }
 
static QMutex s_mtx
 
static constexpr qint64 kMaxBuffer = 4LL * 1024 * 1024L
 

Function Documentation

◆ s_nRequest()

static QAtomicInt s_nRequest ( )
static

◆ Source() [1/2]

static QString Source ( const QNetworkRequest &  request)
inlinestatic

◆ Source() [2/2]

static QString Source ( const QNetworkReply *  reply)
inlinestatic

Definition at line 146 of file netstream.cpp.

◆ ContentLength()

static qlonglong ContentLength ( const QNetworkReply *  reply)
inlinestatic

Definition at line 310 of file netstream.cpp.

Referenced by NetStream::slotReadyRead().

◆ ContentRange()

static qlonglong ContentRange ( const QNetworkReply *  reply,
qulonglong &  first,
qulonglong &  last 
)
inlinestatic

Definition at line 318 of file netstream.cpp.

Referenced by NetStream::slotReadyRead().

Variable Documentation

◆ LOC

const QString LOC { QStringLiteral("[netstream] ") }
static

◆ s_mtx

QMutex s_mtx
static

Definition at line 51 of file netstream.cpp.

Referenced by CdDecoder::getCdioMutex(), and NAMThread::manager().

◆ kMaxBuffer

constexpr qint64 kMaxBuffer = 4LL * 1024 * 1024L
staticconstexpr

Definition at line 52 of file netstream.cpp.

Referenced by NetStream::slotReadyRead(), and NetStream::slotRequestStarted().