|
MythTV
0.26-pre
|
The glue between the DecoderHandler and the Decoder. More...
#include <decoderhandler.h>
Public Member Functions | |
| DecoderIOFactory (DecoderHandler *parent) | |
| virtual | ~DecoderIOFactory () |
| virtual void | start (void)=0 |
| virtual void | stop (void)=0 |
| virtual QIODevice * | takeInput (void)=0 |
| void | setUrl (const QUrl &url) |
| void | setMeta (Metadata *meta) |
Static Public Attributes | |
| static const uint | DefaultPrebufferSize = 128 * 1024 |
| static const uint | DefaultBufferSize = 256 * 1024 |
| static const uint | MaxRedirects = 3 |
Protected Member Functions | |
| void | doConnectDecoder (const QString &format) |
| Decoder * | getDecoder (void) |
| void | doFailed (const QString &message) |
| void | doInfo (const QString &message) |
| void | doOperationStart (const QString &name) |
| void | doOperationStop (void) |
| Metadata & | getMetadata () |
| QUrl & | getUrl () |
Private Attributes | |
| DecoderHandler * | m_handler |
| Metadata | m_meta |
| QUrl | m_url |
The glue between the DecoderHandler and the Decoder.
The DecoderIOFactory is responsible for opening the QIODevice that is given to the Decoder....
Definition at line 138 of file decoderhandler.h.
| DecoderIOFactory::DecoderIOFactory | ( | DecoderHandler * | parent | ) |
Definition at line 65 of file decoderhandler.cpp.
| DecoderIOFactory::~DecoderIOFactory | ( | void | ) | [virtual] |
Definition at line 70 of file decoderhandler.cpp.
| virtual void DecoderIOFactory::start | ( | void | ) | [pure virtual] |
Implemented in DecoderIOFactoryUrl, DecoderIOFactorySG, DecoderIOFactoryFile, and DecoderIOFactoryShoutCast.
Referenced by DecoderHandler::next().
| virtual void DecoderIOFactory::stop | ( | void | ) | [pure virtual] |
Implemented in DecoderIOFactoryUrl, DecoderIOFactorySG, DecoderIOFactoryFile, and DecoderIOFactoryShoutCast.
Referenced by DecoderHandler::deleteIOFactory().
| virtual QIODevice* DecoderIOFactory::takeInput | ( | void | ) | [pure virtual] |
Implemented in DecoderIOFactoryUrl, DecoderIOFactorySG, DecoderIOFactoryFile, and DecoderIOFactoryShoutCast.
| void DecoderIOFactory::setUrl | ( | const QUrl & | url | ) | [inline] |
Definition at line 148 of file decoderhandler.h.
Referenced by DecoderIOFactoryShoutCast::checkResponseOK(), DecoderHandler::next(), and DecoderIOFactoryUrl::replyFinished().
| void DecoderIOFactory::setMeta | ( | Metadata * | meta | ) | [inline] |
Definition at line 149 of file decoderhandler.h.
Referenced by DecoderHandler::next().
| void DecoderIOFactory::doConnectDecoder | ( | const QString & | format | ) | [protected] |
Definition at line 74 of file decoderhandler.cpp.
Referenced by DecoderIOFactoryUrl::doStart(), DecoderIOFactoryShoutCast::periodicallyCheckBuffered(), DecoderIOFactoryFile::start(), and DecoderIOFactorySG::start().
| Decoder * DecoderIOFactory::getDecoder | ( | void | ) | [protected] |
Definition at line 80 of file decoderhandler.cpp.
| void DecoderIOFactory::doFailed | ( | const QString & | message | ) | [protected] |
Definition at line 85 of file decoderhandler.cpp.
Referenced by DecoderIOFactoryShoutCast::periodicallyCheckBuffered(), DecoderIOFactoryShoutCast::periodicallyCheckResponse(), DecoderIOFactoryUrl::replyFinished(), and DecoderIOFactoryShoutCast::shoutcastChangedState().
| void DecoderIOFactory::doInfo | ( | const QString & | message | ) | [protected] |
Definition at line 91 of file decoderhandler.cpp.
| void DecoderIOFactory::doOperationStart | ( | const QString & | name | ) | [protected] |
Definition at line 96 of file decoderhandler.cpp.
Referenced by DecoderIOFactoryShoutCast::shoutcastChangedState(), DecoderIOFactoryShoutCast::start(), and DecoderIOFactoryUrl::start().
| void DecoderIOFactory::doOperationStop | ( | void | ) | [protected] |
Definition at line 101 of file decoderhandler.cpp.
Referenced by DecoderIOFactoryShoutCast::stop().
| Metadata& DecoderIOFactory::getMetadata | ( | void | ) | [inline, protected] |
Definition at line 162 of file decoderhandler.h.
Referenced by DecoderIOFactoryShoutCast::shoutcastMeta(), DecoderIOFactoryFile::start(), and DecoderIOFactoryShoutCast::stop().
| QUrl& DecoderIOFactory::getUrl | ( | ) | [inline, protected] |
Definition at line 163 of file decoderhandler.h.
Referenced by doConnectDecoder(), doFailed(), DecoderIOFactoryUrl::doStart(), DecoderIOFactoryShoutCast::start(), DecoderIOFactoryFile::start(), DecoderIOFactorySG::start(), and DecoderIOFactoryUrl::start().
const uint DecoderIOFactory::DefaultPrebufferSize = 128 * 1024 [static] |
Definition at line 151 of file decoderhandler.h.
Referenced by DecoderIOFactoryUrl::readyRead(), and ShoutCastIODevice::socketReadyRead().
const uint DecoderIOFactory::DefaultBufferSize = 256 * 1024 [static] |
Definition at line 152 of file decoderhandler.h.
Referenced by DecoderIOFactoryUrl::readyRead(), and ShoutCastIODevice::socketReadyRead().
const uint DecoderIOFactory::MaxRedirects = 3 [static] |
Definition at line 153 of file decoderhandler.h.
Referenced by DecoderIOFactoryUrl::replyFinished().
DecoderHandler* DecoderIOFactory::m_handler [private] |
Definition at line 166 of file decoderhandler.h.
Referenced by DecoderIOFactory(), doConnectDecoder(), doFailed(), doInfo(), doOperationStart(), doOperationStop(), and getDecoder().
Metadata DecoderIOFactory::m_meta [private] |
Definition at line 167 of file decoderhandler.h.
Referenced by getMetadata(), and setMeta().
QUrl DecoderIOFactory::m_url [private] |
Definition at line 168 of file decoderhandler.h.
1.7.6.1