MythTV  master
Public Member Functions | Static Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes | Static Private Member Functions | List of all members
VBox Class Reference

#include <vboxutils.h>

Public Member Functions

 VBox (QString url)
 
 ~VBox (void)=default
 
bool isConnected (void)
 
bool checkConnection (void)
 
bool checkVersion (QString &version)
 
QDomDocument * getBoardInfo (void)
 
QStringList getTuners (void)
 returns a list of tuners in the format 'TUNERNO TUNERTYPE' eg '1 DVBT/T2' More...
 
vbox_chan_map_tgetChannels (void)
 

Static Public Member Functions

static QStringList probeDevices (void)
 
static QString getIPFromVideoDevice (const QString &dev)
 

Protected Types

enum  ErrorCode {
  SUCCESS = 0, UNKNOWN_METHOD = 1, GENERAL_ERROR = 2, MISSING_PARAMETER = 3,
  ILLEGAL_PARAMETER = 4, REQUEST_REJECTED = 5, MISSING_METHOD = 6, REQUEST_TIMEOUT = 7,
  REQUEST_ABOTRED = 8
}
 

Static Protected Member Functions

static bool sendQuery (const QString &query, QDomDocument *xmlDoc)
 

Protected Attributes

QString m_url
 

Static Private Member Functions

static QStringList doUPNPSearch (void)
 
static QString getFirstText (QDomElement &element)
 
static QString getStrValue (const QDomElement &element, const QString &name, int index=0)
 
static int getIntValue (const QDomElement &element, const QString &name, int index=0)
 

Detailed Description

Definition at line 16 of file vboxutils.h.

Member Enumeration Documentation

◆ ErrorCode

enum VBox::ErrorCode
protected
Enumerator
SUCCESS 
UNKNOWN_METHOD 
GENERAL_ERROR 
MISSING_PARAMETER 
ILLEGAL_PARAMETER 
REQUEST_REJECTED 
MISSING_METHOD 
REQUEST_TIMEOUT 
REQUEST_ABOTRED 

Definition at line 35 of file vboxutils.h.

Constructor & Destructor Documentation

◆ VBox()

VBox::VBox ( QString  url)
inlineexplicit

Definition at line 19 of file vboxutils.h.

Referenced by doUPNPSearch().

◆ ~VBox()

VBox::~VBox ( void  )
default

Member Function Documentation

◆ probeDevices()

QStringList VBox::probeDevices ( void  )
static

Definition at line 29 of file vboxutils.cpp.

Referenced by getIPFromVideoDevice(), and CardUtil::ProbeVideoDevices().

◆ getIPFromVideoDevice()

QString VBox::getIPFromVideoDevice ( const QString &  dev)
static

Definition at line 149 of file vboxutils.cpp.

Referenced by VBoxChannelFetcher::run().

◆ isConnected()

bool VBox::isConnected ( void  )

◆ checkConnection()

bool VBox::checkConnection ( void  )

Definition at line 209 of file vboxutils.cpp.

Referenced by CardUtil::GetVBoxdesc().

◆ checkVersion()

bool VBox::checkVersion ( QString &  version)

Definition at line 215 of file vboxutils.cpp.

Referenced by CardUtil::GetVBoxdesc().

◆ getBoardInfo()

QDomDocument * VBox::getBoardInfo ( void  )

Definition at line 193 of file vboxutils.cpp.

Referenced by checkConnection(), checkVersion(), and getTuners().

◆ getTuners()

QStringList VBox::getTuners ( void  )

returns a list of tuners in the format 'TUNERNO TUNERTYPE' eg '1 DVBT/T2'

Definition at line 271 of file vboxutils.cpp.

Referenced by doUPNPSearch().

◆ getChannels()

vbox_chan_map_t * VBox::getChannels ( void  )

◆ sendQuery()

bool VBox::sendQuery ( const QString &  query,
QDomDocument *  xmlDoc 
)
staticprotected

Definition at line 358 of file vboxutils.cpp.

Referenced by getBoardInfo(), and getChannels().

◆ doUPNPSearch()

QStringList VBox::doUPNPSearch ( void  )
staticprivate

Definition at line 66 of file vboxutils.cpp.

Referenced by probeDevices().

◆ getFirstText()

QString VBox::getFirstText ( QDomElement &  element)
staticprivate

Definition at line 426 of file vboxutils.cpp.

Referenced by getStrValue().

◆ getStrValue()

QString VBox::getStrValue ( const QDomElement &  element,
const QString &  name,
int  index = 0 
)
staticprivate

Definition at line 405 of file vboxutils.cpp.

Referenced by checkVersion(), getChannels(), getIntValue(), getTuners(), and sendQuery().

◆ getIntValue()

int VBox::getIntValue ( const QDomElement &  element,
const QString &  name,
int  index = 0 
)
staticprivate

Definition at line 419 of file vboxutils.cpp.

Referenced by getTuners(), and sendQuery().

Member Data Documentation

◆ m_url

QString VBox::m_url
protected

Definition at line 50 of file vboxutils.h.

Referenced by getBoardInfo(), and getChannels().


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