DBox2Channel Class Reference

#include <dbox2channel.h>

Inheritance diagram for DBox2Channel:

ChannelBase

List of all members.


Detailed Description

Definition at line 45 of file dbox2channel.h.


Public Member Functions

 DBox2Channel (TVRec *parent, DBox2DBOptions *dbox2_options, int cardid)
 ~DBox2Channel (void)
bool SetChannelByString (const QString &chan)
bool Open (void)
 Opens the channel changing hardware for use.
bool IsOpen (void) const
 Reports whether channel is already open.
void Close (void)
 Closes the channel changing hardware to use.
void SwitchToLastChannel (void)
QString GetChannelNameFromNumber (const QString &)
QString GetChannelNumberFromName (const QString &channelName)
QString GetChannelID (const QString &)
void EPGFinished (void)
void RecorderAlive (bool)
void SetRecorder (DBox2Recorder *)

Private Member Functions

void HttpChannelChangeDone (bool error)
void HttpRequestDone (bool error)
void TeardownAll (void)
void LoadChannels (void)
void RequestChannelChange (QString)
QString GetDefaultChannel (void)

Private Attributes

DBox2DBOptionsm_dbox2options
int m_cardid
bool m_channelListReady
QString m_lastChannel
QString m_requestChannel
DBox2EPGm_epg
bool m_recorderAlive
DBox2Recorderm_recorder
QHttp * http
QHttp * httpChanger
DBox2CRelaym_relay
int m_dbox2channelcount
QMap< int, QString > m_dbox2channelids
QMap< int, QString > m_dbox2channelnames
QMutex m_lock

Friends

class DBox2CRelay

Constructor & Destructor Documentation

DBox2Channel::DBox2Channel ( TVRec parent,
DBox2DBOptions dbox2_options,
int  cardid 
)

Definition at line 47 of file dbox2channel.cpp.

DBox2Channel::~DBox2Channel ( void   )  [inline]

Definition at line 51 of file dbox2channel.h.


Member Function Documentation

bool DBox2Channel::SetChannelByString ( const QString &  chan  )  [virtual]

Implements ChannelBase.

Definition at line 120 of file dbox2channel.cpp.

Referenced by EPGFinished(), HttpRequestDone(), RecorderAlive(), and SwitchToLastChannel().

bool DBox2Channel::Open ( void   )  [virtual]

Opens the channel changing hardware for use.

Implements ChannelBase.

Definition at line 209 of file dbox2channel.cpp.

bool DBox2Channel::IsOpen ( void   )  const [inline, virtual]

Reports whether channel is already open.

Implements ChannelBase.

Definition at line 55 of file dbox2channel.h.

void DBox2Channel::Close ( void   )  [virtual]

Closes the channel changing hardware to use.

Implements ChannelBase.

Definition at line 219 of file dbox2channel.cpp.

void DBox2Channel::SwitchToLastChannel ( void   ) 

Definition at line 112 of file dbox2channel.cpp.

Referenced by DBox2Recorder::httpRequestFinished().

QString DBox2Channel::GetChannelNameFromNumber ( const QString &  channelnumber  ) 

Definition at line 351 of file dbox2channel.cpp.

Referenced by DBox2EPG::RequestEPG(), and SetChannelByString().

QString DBox2Channel::GetChannelNumberFromName ( const QString &  channelName  ) 

Definition at line 369 of file dbox2channel.cpp.

QString DBox2Channel::GetChannelID ( const QString &  name  ) 

Definition at line 342 of file dbox2channel.cpp.

Referenced by DBox2EPG::RequestEPG(), and SetChannelByString().

void DBox2Channel::EPGFinished ( void   ) 

Definition at line 428 of file dbox2channel.cpp.

Referenced by DBox2EPG::httpRequestFinished(), and DBox2EPG::run().

void DBox2Channel::RecorderAlive ( bool  alive  ) 

void DBox2Channel::SetRecorder ( DBox2Recorder rec  ) 

Definition at line 106 of file dbox2channel.cpp.

Referenced by DBox2Recorder::DBox2Recorder(), and DBox2Recorder::TeardownAll().

void DBox2Channel::HttpChannelChangeDone ( bool  error  )  [private]

Definition at line 309 of file dbox2channel.cpp.

Referenced by DBox2Channel(), and DBox2CRelay::HttpChannelChangeDone().

void DBox2Channel::HttpRequestDone ( bool  error  )  [private]

Definition at line 239 of file dbox2channel.cpp.

Referenced by DBox2Channel(), and DBox2CRelay::HttpRequestDone().

void DBox2Channel::TeardownAll ( void   )  [private]

Definition at line 67 of file dbox2channel.cpp.

Referenced by ~DBox2Channel().

void DBox2Channel::LoadChannels ( void   )  [private]

Definition at line 224 of file dbox2channel.cpp.

Referenced by DBox2Channel().

void DBox2Channel::RequestChannelChange ( QString  channelID  )  [private]

Definition at line 289 of file dbox2channel.cpp.

Referenced by SetChannelByString().

QString DBox2Channel::GetDefaultChannel ( void   )  [private]

Definition at line 393 of file dbox2channel.cpp.

Referenced by SetChannelByString().


Friends And Related Function Documentation

friend class DBox2CRelay [friend]

Definition at line 47 of file dbox2channel.h.


Member Data Documentation

Definition at line 77 of file dbox2channel.h.

Referenced by HttpRequestDone(), LoadChannels(), and RequestChannelChange().

int DBox2Channel::m_cardid [private]

Definition at line 79 of file dbox2channel.h.

Referenced by HttpRequestDone(), and SetChannelByString().

QString DBox2Channel::m_lastChannel [private]

Definition at line 80 of file dbox2channel.h.

Referenced by SetChannelByString(), and SwitchToLastChannel().

QString DBox2Channel::m_requestChannel [private]

Definition at line 81 of file dbox2channel.h.

Referenced by HttpRequestDone(), and SetChannelByString().

Definition at line 82 of file dbox2channel.h.

Referenced by HttpChannelChangeDone(), HttpRequestDone(), and TeardownAll().

Definition at line 83 of file dbox2channel.h.

Referenced by EPGFinished(), HttpChannelChangeDone(), IsOpen(), and RecorderAlive().

Definition at line 84 of file dbox2channel.h.

Referenced by HttpChannelChangeDone(), SetChannelByString(), and SetRecorder().

QHttp* DBox2Channel::http [private]

Definition at line 86 of file dbox2channel.h.

Referenced by DBox2Channel(), HttpRequestDone(), LoadChannels(), and TeardownAll().

QHttp* DBox2Channel::httpChanger [private]

Definition at line 88 of file dbox2channel.h.

Referenced by DBox2Channel(), and TeardownAll().

Definition at line 90 of file dbox2channel.h.

Referenced by GetChannelID(), and HttpRequestDone().

QMap<int,QString> DBox2Channel::m_dbox2channelids [private]

Definition at line 91 of file dbox2channel.h.

Referenced by GetChannelID(), and HttpRequestDone().

QMap<int,QString> DBox2Channel::m_dbox2channelnames [private]

Definition at line 92 of file dbox2channel.h.

Referenced by GetChannelID(), and HttpRequestDone().

QMutex DBox2Channel::m_lock [private]

Definition at line 94 of file dbox2channel.h.

Referenced by HttpChannelChangeDone(), SetChannelByString(), and SetRecorder().


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

Generated on Sat Dec 18 05:16:01 2010 for MythTV by  doxygen 1.5.5