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

#include <mythbackend/httpstatus.h>

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

Public Member Functions

 HttpStatus (QMap< int, EncoderLink * > *tvList, Scheduler *sched, AutoExpire *expirer, bool bIsMaster)
 
 ~HttpStatus () override=default
 
void SetMainServer (MainServer *mainServer)
 
QStringList GetBasePaths () override
 
bool ProcessRequest (HTTPRequest *pRequest) override
 
- Public Member Functions inherited from HttpServerExtension
 HttpServerExtension (QString sName, QString sSharePath)
 
 ~HttpServerExtension () override=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 {nullptr}
 
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 { -1 }
 
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 53 of file httpstatus.cpp.

◆ ~HttpStatus()

HttpStatus::~HttpStatus ( )
overridedefault

Member Function Documentation

◆ GetMethod()

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

Definition at line 68 of file httpstatus.cpp.

Referenced by ProcessRequest().

◆ GetStatusXML()

void HttpStatus::GetStatusXML ( HTTPRequest pRequest)
private

Definition at line 131 of file httpstatus.cpp.

Referenced by ProcessRequest().

◆ GetStatusHTML()

void HttpStatus::GetStatusHTML ( HTTPRequest pRequest)
private

Definition at line 159 of file httpstatus.cpp.

Referenced by ProcessRequest().

◆ FillStatusXML()

void HttpStatus::FillStatusXML ( QDomDocument *  pDoc)
private

Definition at line 179 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 711 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintScheduled()

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

Definition at line 855 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintFrontends()

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

Definition at line 988 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintBackends()

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

Definition at line 1026 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintJobQueue()

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

Definition at line 1065 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintMachineInfo()

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

Definition at line 1210 of file httpstatus.cpp.

Referenced by PrintStatus().

◆ PrintMiscellaneousInfo()

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

Definition at line 1456 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 1510 of file httpstatus.cpp.

Referenced by FillStatusXML().

◆ FillChannelInfo()

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

Definition at line 1609 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 82 of file httpstatus.cpp.

◆ ProcessRequest()

bool HttpStatus::ProcessRequest ( HTTPRequest pRequest)
overridevirtual

Implements HttpServerExtension.

Definition at line 91 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().

◆ m_pEncoders

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

Definition at line 47 of file httpstatus.h.

Referenced by FillStatusXML().

◆ m_pExpirer

AutoExpire* HttpStatus::m_pExpirer
private

Definition at line 48 of file httpstatus.h.

◆ m_pMainServer

MainServer* HttpStatus::m_pMainServer {nullptr}
private

Definition at line 49 of file httpstatus.h.

Referenced by FillStatusXML(), and SetMainServer().

◆ m_bIsMaster

bool HttpStatus::m_bIsMaster
private

Definition at line 50 of file httpstatus.h.

Referenced by FillStatusXML().

◆ 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: