MythTV  master
Classes | Macros | Functions | Variables
netstream.cpp File Reference
#include "netstream.h"
#include <cstdlib>
#include <cstddef>
#include <cstdio>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QNetworkProxy>
#include <QNetworkDiskCache>
#include <QSslConfiguration>
#include <QSslError>
#include <QSslSocket>
#include <QSslKey>
#include <QFile>
#include <QUrl>
#include <QThread>
#include <QMutexLocker>
#include <QEvent>
#include <QCoreApplication>
#include <QAtomicInt>
#include <QMetaType>
#include <QDesktopServices>
#include <QScopedPointer>
#include "mythlogging.h"
#include "mythcorecontext.h"
#include "mythdirs.h"
Include dependency graph for netstream.cpp:

Go to the source code of this file.

Classes

class  NetStreamRequest
 
class  NetStreamAbort
 

Macros

#define LOC   "[netstream] "
 

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, qlonglong &first, qlonglong &last)
 

Variables

static QMutex s_mtx
 
const qint64 kMaxBuffer = 4 * 1024 * 1024L
 

Macro Definition Documentation

◆ LOC

#define LOC   "[netstream] "

Definition at line 44 of file netstream.cpp.

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 153 of file netstream.cpp.

◆ ContentLength()

static qlonglong ContentLength ( const QNetworkReply *  reply)
inlinestatic

Definition at line 309 of file netstream.cpp.

Referenced by NetStream::slotReadyRead().

◆ ContentRange()

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

Definition at line 317 of file netstream.cpp.

Referenced by NetStream::slotReadyRead().

Variable Documentation

◆ s_mtx

QMutex s_mtx
static

Definition at line 51 of file netstream.cpp.

Referenced by NAMThread::manager().

◆ kMaxBuffer

const qint64 kMaxBuffer = 4 * 1024 * 1024L

Definition at line 52 of file netstream.cpp.

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