#include <dbox2epg.h>
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 |
| DBox2DBOptions * | m_dbox2options |
| DBox2Channel * | m_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 |
| DBox2EPG::DBox2EPG | ( | ) |
Definition at line 24 of file dbox2epg.cpp.
| DBox2EPG::~DBox2EPG | ( | ) |
Definition at line 42 of file dbox2epg.cpp.
| void DBox2EPG::TeardownAll | ( | void | ) |
| void DBox2EPG::Init | ( | DBox2DBOptions * | dbox2_options, | |
| int | cardid, | |||
| DBox2Channel * | channel | |||
| ) |
| void DBox2EPG::ScheduleRequestEPG | ( | const QString & | channelNumber | ) |
| void DBox2EPG::Shutdown | ( | void | ) |
| 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] |
| QString DBox2EPG::ParseNextLine | ( | const QByteArray & | buffer, | |
| int & | pos, | |||
| int | size | |||
| ) | [static, private] |
Returns use on air guide status of channel.
| chanid | Channel ID of channel. |
Definition at line 328 of file dbox2epg.cpp.
Referenced by run().
| void DBox2EPG::RequestEPG | ( | const QString & | channelNumber | ) | [private] |
| int DBox2EPG::GetChannelID | ( | const QString & | channelnumber | ) | [private] |
| void DBox2EPG::run | ( | void | ) | [private] |
Definition at line 90 of file dbox2epg.cpp.
QHttp* DBox2EPG::http [private] |
Definition at line 53 of file dbox2epg.h.
Referenced by DBox2EPG(), httpRequestFinished(), Init(), RequestEPG(), and TeardownAll().
DBox2DBOptions* DBox2EPG::m_dbox2options [private] |
DBox2Channel* DBox2EPG::m_dbox2channel [private] |
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.
bool DBox2EPG::m_isRunning [private] |
bool DBox2EPG::m_inProgress [private] |
Definition at line 62 of file dbox2epg.h.
bool DBox2EPG::m_pendingRequest [private] |
QString DBox2EPG::m_requestedChannel [private] |
QString DBox2EPG::m_currentEPGRequestChannel [private] |
int DBox2EPG::m_currentEPGRequestID [private] |
1.5.5