MythTV  0.26-pre
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
CetonStreamHandler Class Reference

#include <cetonstreamhandler.h>

Inheritance diagram for CetonStreamHandler:
StreamHandler MThread DeviceReaderCB

List of all members.

Public Member Functions

bool IsConnected (void) const
bool IsCableCardInstalled () const
bool EnterPowerSavingMode (void)
bool TuneFrequency (uint frequency, const QString &modulation)
bool TuneProgram (uint program)
bool TuneVChannel (const QString &vchannel)
uint GetProgramNumber (void) const

Static Public Member Functions

static CetonStreamHandlerGet (const QString &devicename)
static void Return (CetonStreamHandler *&ref)

Private Member Functions

 CetonStreamHandler (const QString &)
bool Connect (void)
bool Open (void)
void Close (void)
virtual void run (void)
 Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
bool VerifyTuning (void)
void RepeatTuning (void)
bool TunerOff (void)
bool PerformTuneVChannel (const QString &vchannel)
void ClearProgramNumber (void)
QString GetVar (const QString &section, const QString &variable) const
QStringList GetProgramList ()
bool HttpRequest (const QString &method, const QString &script, const QUrl &params, QString &response, uint &status_code) const

Private Attributes

QString _ip_address
bool _using_rtp
uint _card
uint _tuner
QString _device_path
bool _using_cablecard
bool _connected
bool _valid
uint _last_frequency
QString _last_modulation
uint _last_program
QString _last_vchannel
QTime _read_timer

Static Private Attributes

static QMutex _handlers_lock
static QMap< QString,
CetonStreamHandler * > 
_handlers
static QMap< QString, uint_handlers_refcnt
static QMap< QString, bool_info_queried

Detailed Description

Definition at line 27 of file cetonstreamhandler.h.


Constructor & Destructor Documentation

CetonStreamHandler::CetonStreamHandler ( const QString &  device) [private]

Definition at line 108 of file cetonstreamhandler.cpp.

Referenced by Get().


Member Function Documentation

CetonStreamHandler * CetonStreamHandler::Get ( const QString &  devicename) [static]

Definition at line 341 of file cetonstreamhandler.cpp.

Referenced by CetonChannel::Open().

Definition at line 323 of file cetonstreamhandler.cpp.

Referenced by CetonChannel::EnterPowerSavingMode().

bool CetonStreamHandler::TuneFrequency ( uint  frequency,
const QString &  modulation 
)

Definition at line 426 of file cetonstreamhandler.cpp.

Referenced by RepeatTuning(), CetonChannel::Tune(), and TunerOff().

Definition at line 470 of file cetonstreamhandler.cpp.

Referenced by RepeatTuning(), and CetonChannel::SetChannelByString().

bool CetonStreamHandler::TuneVChannel ( const QString &  vchannel)

Definition at line 529 of file cetonstreamhandler.cpp.

Referenced by RepeatTuning(), CetonChannel::Tune(), and TunerOff().

Definition at line 555 of file cetonstreamhandler.cpp.

Referenced by CetonChannel::SetChannelByString().

Definition at line 314 of file cetonstreamhandler.cpp.

Referenced by Open().

Definition at line 300 of file cetonstreamhandler.cpp.

Referenced by Get().

Definition at line 305 of file cetonstreamhandler.cpp.

Referenced by Return().

void CetonStreamHandler::run ( void  ) [private, virtual]

Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.

Note:
If you override this method you must call RunProlog before you do any work and RunEpilog before you exit the run method.

Reimplemented from MThread.

Definition at line 191 of file cetonstreamhandler.cpp.

Definition at line 346 of file cetonstreamhandler.cpp.

Referenced by run().

Definition at line 404 of file cetonstreamhandler.cpp.

Referenced by run().

Definition at line 417 of file cetonstreamhandler.cpp.

Referenced by Close(), and EnterPowerSavingMode().

bool CetonStreamHandler::PerformTuneVChannel ( const QString &  vchannel) [private]

Definition at line 505 of file cetonstreamhandler.cpp.

Referenced by ClearProgramNumber(), and TuneVChannel().

Definition at line 541 of file cetonstreamhandler.cpp.

Referenced by TuneVChannel().

QString CetonStreamHandler::GetVar ( const QString &  section,
const QString &  variable 
) const [private]
QStringList CetonStreamHandler::GetProgramList ( ) [private]

Definition at line 610 of file cetonstreamhandler.cpp.

Referenced by TuneProgram().

bool CetonStreamHandler::HttpRequest ( const QString &  method,
const QString &  script,
const QUrl &  params,
QString &  response,
uint status_code 
) const [private]

Member Data Documentation

Definition at line 69 of file cetonstreamhandler.h.

Referenced by CetonStreamHandler(), GetProgramList(), GetVar(), HttpRequest(), and run().

Definition at line 70 of file cetonstreamhandler.h.

Referenced by CetonStreamHandler(), and run().

Definition at line 71 of file cetonstreamhandler.h.

Referenced by CetonStreamHandler().

Definition at line 73 of file cetonstreamhandler.h.

Referenced by CetonStreamHandler(), and run().

Definition at line 74 of file cetonstreamhandler.h.

Referenced by CetonStreamHandler(), IsCableCardInstalled(), and TunerOff().

Definition at line 75 of file cetonstreamhandler.h.

Referenced by Close(), Connect(), and IsConnected().

Definition at line 76 of file cetonstreamhandler.h.

Referenced by CetonStreamHandler(), and Connect().

Definition at line 78 of file cetonstreamhandler.h.

Referenced by RepeatTuning(), TuneFrequency(), and VerifyTuning().

Definition at line 79 of file cetonstreamhandler.h.

Referenced by RepeatTuning(), TuneFrequency(), and VerifyTuning().

Definition at line 80 of file cetonstreamhandler.h.

Referenced by RepeatTuning(), TuneProgram(), and VerifyTuning().

Definition at line 81 of file cetonstreamhandler.h.

Referenced by RepeatTuning(), and TuneVChannel().

Definition at line 82 of file cetonstreamhandler.h.

Referenced by run().

QMutex CetonStreamHandler::_handlers_lock [static, private]

Definition at line 85 of file cetonstreamhandler.h.

Referenced by Get(), and Return().

QMap< QString, CetonStreamHandler * > CetonStreamHandler::_handlers [static, private]

Definition at line 86 of file cetonstreamhandler.h.

Referenced by Get(), and Return().

QMap< QString, uint > CetonStreamHandler::_handlers_refcnt [static, private]

Definition at line 87 of file cetonstreamhandler.h.

Referenced by Get(), and Return().

QMap< QString, bool > CetonStreamHandler::_info_queried [static, private]

Definition at line 88 of file cetonstreamhandler.h.

Referenced by CetonStreamHandler().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends