MythTV  master
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
HttpStatus Class Reference

#include <httpstatus.h>

Inheritance diagram for HttpStatus:
Inheritance graph
[legend]
Collaboration diagram for HttpStatus:
Collaboration graph
[legend]

Public Member Functions

 HttpStatus (QMap< int, EncoderLink * > *tvList, Scheduler *sched, AutoExpire *expirer, bool bIsMaster)
 
virtual ~HttpStatus ()=default
 
void SetMainServer (MainServer *mainServer)
 
QStringList GetBasePaths () override
 
bool ProcessRequest (HTTPRequest *pRequest) override
 
- Public Member Functions inherited from HttpServerExtension
 HttpServerExtension (const QString &sName, const QString &sSharePath)
 
virtual ~HttpServerExtension ()=default
 
virtual bool ProcessOptions (HTTPRequest *pRequest)
 Handle an OPTIONS request. More...
 
virtual int GetSocketTimeout () const
 

Private Member Functions

void GetStatusXML (HTTPRequest *pRequest)
 
void GetStatusHTML (HTTPRequest *pRequest)
 
void FillStatusXML (QDomDocument *pDoc)
 

Static Private Member Functions

static HttpStatusMethod GetMethod (const QString &sURI)
 
static void PrintStatus (QTextStream &os, QDomDocument *pDoc)
 
static int PrintEncoderStatus (QTextStream &os, const QDomElement &encoders)
 
static int PrintScheduled (QTextStream &os, const QDomElement &scheduled)
 
static int PrintFrontends (QTextStream &os, const QDomElement &frontends)
 
static int PrintBackends (QTextStream &os, const QDomElement &backends)
 
static int PrintJobQueue (QTextStream &os, const QDomElement &jobs)
 
static int PrintMachineInfo (QTextStream &os, const QDomElement &info)
 
static int PrintMiscellaneousInfo (QTextStream &os, const QDomElement &info)
 
static void FillProgramInfo (QDomDocument *pDoc, QDomNode &node, ProgramInfo *pInfo, bool bIncChannel=true, bool bDetails=true)
 
static void FillChannelInfo (QDomElement &channel, ProgramInfo *pInfo, bool bDetails=true)
 

Private Attributes

Schedulerm_pSched
 
QMap< int, EncoderLink * > * m_pEncoders
 
AutoExpirem_pExpirer
 
MainServerm_pMainServer
 
bool m_bIsMaster
 
int m_nPreRollSeconds
 
QMutex m_settingLock
 

Additional Inherited Members

- Public Attributes inherited from HttpServerExtension
QString m_sName
 
QString m_sSharePath
 
int m_nSocketTimeout
 
uint m_nSupportedMethods
 

Detailed Description

Definition at line 42 of file httpstatus.h.

Constructor & Destructor Documentation

◆ HttpStatus()

HttpStatus::HttpStatus ( QMap< int, EncoderLink * > *  tvList,
Scheduler sched,
AutoExpire expirer,
bool  bIsMaster 
)

Definition at line 48 of file httpstatus.cpp.

◆ ~HttpStatus()

virtual HttpStatus::~HttpStatus ( )
virtualdefault

Member Function Documentation

◆ GetMethod()

HttpStatusMethod HttpStatus::GetMethod ( const QString &  sURI)
staticprivate

Definition at line 66 of file httpstatus.cpp.

Referenced by ProcessRequest().

◆ GetStatusXML()

void HttpStatus::GetStatusXML ( HTTPRequest pRequest)
private

Definition at line 129 of file httpstatus.cpp.

Referenced by ProcessRequest().

◆ GetStatusHTML()

void HttpStatus::GetStatusHTML ( HTTPRequest pRequest)
private

Definition at line 153 of file httpstatus.cpp.

Referenced by ProcessRequest().

◆ FillStatusXML()

void HttpStatus::FillStatusXML ( QDomDocument *  pDoc)
private

Definition at line 173 of file httpstatus.cpp.

Referenced by GetStatusHTML(), and GetStatusXML().

◆ PrintStatus()

void HttpStatus::PrintStatus ( QTextStream &  os,
QDomDocument *  pDoc 
)
staticprivate

Definition at line 624 of file httpstatus.cpp.

Referenced by GetStatusHTML().

◆ PrintEncoderStatus()

int HttpStatus::PrintEncoderStatus ( QTextStream &  os,
const QDomElement &  encoders 
)
staticprivate

Definition at line 707 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintScheduled()

int HttpStatus::PrintScheduled ( QTextStream &  os,
const QDomElement &  scheduled 
)
staticprivate

Definition at line 851 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintFrontends()

int HttpStatus::PrintFrontends ( QTextStream &  os,
const QDomElement &  frontends 
)
staticprivate

Definition at line 982 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintBackends()

int HttpStatus::PrintBackends ( QTextStream &  os,
const QDomElement &  backends 
)
staticprivate

Definition at line 1020 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintJobQueue()

int HttpStatus::PrintJobQueue ( QTextStream &  os,
const QDomElement &  jobs 
)
staticprivate

Definition at line 1059 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintMachineInfo()

int HttpStatus::PrintMachineInfo ( QTextStream &  os,
const QDomElement &  info 
)
staticprivate

Definition at line 1200 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintMiscellaneousInfo()

int HttpStatus::PrintMiscellaneousInfo ( QTextStream &  os,
const QDomElement &  info 
)
staticprivate

Definition at line 1444 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ FillProgramInfo()

void HttpStatus::FillProgramInfo ( QDomDocument *  pDoc,
QDomNode &  node,
ProgramInfo pInfo,
bool  bIncChannel = true,
bool  bDetails = true 
)
staticprivate

Definition at line 1496 of file httpstatus.cpp.

Referenced by FillStatusXML().

◆ FillChannelInfo()

void HttpStatus::FillChannelInfo ( QDomElement &  channel,
ProgramInfo pInfo,
bool  bDetails = true 
)
staticprivate

Definition at line 1595 of file httpstatus.cpp.

Referenced by FillProgramInfo().

◆ SetMainServer()

void HttpStatus::SetMainServer ( MainServer mainServer)
inline

Definition at line 88 of file httpstatus.h.

Referenced by run_backend().

◆ GetBasePaths()

QStringList HttpStatus::GetBasePaths ( )
overridevirtual

Implements HttpServerExtension.

Definition at line 80 of file httpstatus.cpp.

◆ ProcessRequest()

bool HttpStatus::ProcessRequest ( HTTPRequest pRequest)
overridevirtual

Implements HttpServerExtension.

Definition at line 89 of file httpstatus.cpp.

Member Data Documentation

◆ m_pSched

Scheduler* HttpStatus::m_pSched
private

Definition at line 46 of file httpstatus.h.

Referenced by FillStatusXML(), and HttpStatus().

◆ m_pEncoders

QMap<int, EncoderLink *>* HttpStatus::m_pEncoders
private

Definition at line 47 of file httpstatus.h.

Referenced by FillStatusXML(), and HttpStatus().

◆ m_pExpirer

AutoExpire* HttpStatus::m_pExpirer
private

Definition at line 48 of file httpstatus.h.

Referenced by HttpStatus().

◆ m_pMainServer

MainServer* HttpStatus::m_pMainServer
private

Definition at line 49 of file httpstatus.h.

Referenced by FillStatusXML(), HttpStatus(), and SetMainServer().

◆ m_bIsMaster

bool HttpStatus::m_bIsMaster
private

Definition at line 50 of file httpstatus.h.

Referenced by FillStatusXML(), and HttpStatus().

◆ m_nPreRollSeconds

int HttpStatus::m_nPreRollSeconds
private

Definition at line 51 of file httpstatus.h.

Referenced by HttpStatus().

◆ m_settingLock

QMutex HttpStatus::m_settingLock
private

Definition at line 52 of file httpstatus.h.


The documentation for this class was generated from the following files: