DBox2EPG Class Reference

#include <dbox2epg.h>

List of all members.


Detailed Description

Definition at line 20 of file dbox2epg.h.


Public Slots

void httpRequestFinished (int requestID, bool error)
 Reads the results and updates the database accordingly.
void deleteLater (void)
 Safer alternative to just deleting DVBChannel directly.

Public Member Functions

 DBox2EPG ()
 ~DBox2EPG ()
void TeardownAll (void)
void Init (DBox2DBOptions *dbox2_options, int cardid, DBox2Channel *channel)
void ScheduleRequestEPG (const QString &channelNumber)
void Shutdown (void)

Private Member Functions

void UpdateDB (uint chanid, const QDateTime &startTime, const QDateTime &endTime, const QString &title, const QString &description, const QString &category)
void RequestEPG (const QString &channelNumber)
int GetChannelID (const QString &channelnumber)
void run (void)

Static Private Member Functions

static QString ParseNextLine (const QByteArray &buffer, int &pos, int size)
static bool UseOnAirGuide (uint chanid)
 Returns use on air guide status of channel.

Private Attributes

QHttp * http
DBox2DBOptionsm_dbox2options
DBox2Channelm_dbox2channel
QMap< int, QString > m_channelnumbers
int m_cardid
int m_channelCount
int m_channelIndex
bool m_isRunning
bool m_inProgress
bool m_pendingRequest
QString m_requestedChannel
QString m_currentEPGRequestChannel
int m_currentEPGRequestID

Constructor & Destructor Documentation

DBox2EPG::DBox2EPG (  ) 

Definition at line 24 of file dbox2epg.cpp.

DBox2EPG::~DBox2EPG (  ) 

Definition at line 42 of file dbox2epg.cpp.


Member Function Documentation

void DBox2EPG::TeardownAll ( void   ) 

Definition at line 57 of file dbox2epg.cpp.

Referenced by deleteLater(), and ~DBox2EPG().

void DBox2EPG::Init ( DBox2DBOptions dbox2_options,
int  cardid,
DBox2Channel channel 
)

Definition at line 71 of file dbox2epg.cpp.

Referenced by DBox2Channel::HttpRequestDone().

void DBox2EPG::ScheduleRequestEPG ( const QString &  channelNumber  ) 

Definition at line 130 of file dbox2epg.cpp.

Referenced by DBox2Channel::HttpChannelChangeDone().

void DBox2EPG::Shutdown ( void   ) 

Definition at line 85 of file dbox2epg.cpp.

Referenced by DBox2Channel::TeardownAll().

void DBox2EPG::httpRequestFinished ( int  requestID,
bool  error 
) [slot]

Reads the results and updates the database accordingly.

This is called by the HTTP object once a request has been finished.

Definition at line 212 of file dbox2epg.cpp.

Referenced by DBox2EPG(), and TeardownAll().

void DBox2EPG::deleteLater ( void   )  [slot]

Safer alternative to just deleting DVBChannel directly.

Definition at line 50 of file dbox2epg.cpp.

Referenced by DBox2Channel::TeardownAll().

void DBox2EPG::UpdateDB ( uint  chanid,
const QDateTime &  startTime,
const QDateTime &  endTime,
const QString &  title,
const QString &  description,
const QString &  category 
) [private]

Definition at line 161 of file dbox2epg.cpp.

Referenced by httpRequestFinished().

QString DBox2EPG::ParseNextLine ( const QByteArray &  buffer,
int &  pos,
int  size 
) [static, private]

Definition at line 281 of file dbox2epg.cpp.

Referenced by httpRequestFinished().

bool DBox2EPG::UseOnAirGuide ( uint  chanid  )  [static, private]

Returns use on air guide status of channel.

Parameters:
chanid Channel ID of channel.

Definition at line 328 of file dbox2epg.cpp.

Referenced by run().

void DBox2EPG::RequestEPG ( const QString &  channelNumber  )  [private]

Definition at line 136 of file dbox2epg.cpp.

Referenced by run().

int DBox2EPG::GetChannelID ( const QString &  channelnumber  )  [private]

Definition at line 295 of file dbox2epg.cpp.

Referenced by httpRequestFinished(), and run().

void DBox2EPG::run ( void   )  [private]

Definition at line 90 of file dbox2epg.cpp.


Member Data Documentation

QHttp* DBox2EPG::http [private]

Definition at line 53 of file dbox2epg.h.

Referenced by DBox2EPG(), httpRequestFinished(), Init(), RequestEPG(), and TeardownAll().

Definition at line 54 of file dbox2epg.h.

Referenced by Init(), and RequestEPG().

Definition at line 55 of file dbox2epg.h.

Referenced by httpRequestFinished(), Init(), RequestEPG(), and run().

QMap<int,QString> DBox2EPG::m_channelnumbers [private]

Definition at line 56 of file dbox2epg.h.

int DBox2EPG::m_cardid [private]

Definition at line 58 of file dbox2epg.h.

Referenced by GetChannelID(), httpRequestFinished(), Init(), and RequestEPG().

int DBox2EPG::m_channelCount [private]

Definition at line 59 of file dbox2epg.h.

int DBox2EPG::m_channelIndex [private]

Definition at line 60 of file dbox2epg.h.

Definition at line 61 of file dbox2epg.h.

Referenced by run(), and Shutdown().

Definition at line 62 of file dbox2epg.h.

Definition at line 63 of file dbox2epg.h.

Referenced by run(), and ScheduleRequestEPG().

QString DBox2EPG::m_requestedChannel [private]

Definition at line 64 of file dbox2epg.h.

Referenced by run(), and ScheduleRequestEPG().

Definition at line 66 of file dbox2epg.h.

Referenced by httpRequestFinished(), and RequestEPG().

Definition at line 67 of file dbox2epg.h.

Referenced by httpRequestFinished(), and RequestEPG().


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