|
MythTV
0.26-pre
|
Class for starting stream decoding. More...
#include <decoderhandler.h>
Class for starting stream decoding.
This class handles starting the Decoder for the MusicPlayer via DecoderIOFactorys.
It operates on a playlist, either created with a single file, by loading a .pls or downloading it, and for each entry creates an appropriate DecoderIOFactory. The creator is simply a intermediate class that translates the next URL in the playlist to QIODevice. Ie. the DecoderIOFactoryFile just returns a QFile, whereas the DecoderIOFactoryShoutcast returns a QSocket subclass, where reads do the necessary translation of the shoutcast stream.
Definition at line 79 of file decoderhandler.h.
Definition at line 84 of file decoderhandler.h.
Definition at line 291 of file decoderhandler.cpp.
| DecoderHandler::~DecoderHandler | ( | void | ) | [virtual] |
Definition at line 302 of file decoderhandler.cpp.
| Decoder* DecoderHandler::getDecoder | ( | void | ) | [inline] |
Definition at line 94 of file decoderhandler.h.
Referenced by MusicPlayer::getDecoder(), and DecoderIOFactory::getDecoder().
| void DecoderHandler::start | ( | Metadata * | mdata | ) |
Definition at line 307 of file decoderhandler.cpp.
Referenced by MusicPlayer::play().
Definition at line 399 of file decoderhandler.cpp.
Referenced by MusicPlayer::stopDecoder(), and ~DecoderHandler().
| void DecoderHandler::customEvent | ( | QEvent * | e | ) |
Definition at line 431 of file decoderhandler.cpp.
Definition at line 346 of file decoderhandler.cpp.
Referenced by next().
Definition at line 360 of file decoderhandler.cpp.
Referenced by MusicPlayer::nextAuto(), and start().
| void DecoderHandler::error | ( | const QString & | msg | ) |
Definition at line 339 of file decoderhandler.cpp.
| void DecoderHandler::doOperationStart | ( | const QString & | name | ) | [protected] |
Definition at line 552 of file decoderhandler.cpp.
Referenced by createPlaylistFromRemoteUrl(), and DecoderIOFactory::doOperationStart().
| void DecoderHandler::doOperationStop | ( | void | ) | [protected] |
Definition at line 559 of file decoderhandler.cpp.
Referenced by createPlaylistFromRemoteUrl(), DecoderIOFactory::doConnectDecoder(), DecoderIOFactory::doFailed(), DecoderIOFactory::doOperationStop(), and stop().
| void DecoderHandler::doConnectDecoder | ( | const QUrl & | url, |
| const QString & | format | ||
| ) | [protected] |
Definition at line 513 of file decoderhandler.cpp.
Referenced by DecoderIOFactory::doConnectDecoder().
| void DecoderHandler::doFailed | ( | const QUrl & | url, |
| const QString & | message | ||
| ) | [protected] |
Definition at line 537 of file decoderhandler.cpp.
Referenced by doConnectDecoder(), DecoderIOFactory::doFailed(), and start().
| void DecoderHandler::doInfo | ( | const QString & | message | ) | [protected] |
Definition at line 546 of file decoderhandler.cpp.
Referenced by DecoderIOFactory::doInfo().
| bool DecoderHandler::createPlaylist | ( | const QUrl & | url | ) | [private] |
Definition at line 440 of file decoderhandler.cpp.
Referenced by start().
| bool DecoderHandler::createPlaylistForSingleFile | ( | const QUrl & | url | ) | [private] |
Definition at line 458 of file decoderhandler.cpp.
Referenced by createPlaylist().
| bool DecoderHandler::createPlaylistFromFile | ( | const QUrl & | url | ) | [private] |
Definition at line 472 of file decoderhandler.cpp.
Referenced by createPlaylist().
| bool DecoderHandler::createPlaylistFromRemoteUrl | ( | const QUrl & | url | ) | [private] |
Definition at line 486 of file decoderhandler.cpp.
Referenced by createPlaylist().
| bool DecoderHandler::haveIOFactory | ( | void | ) | [inline, private] |
Definition at line 116 of file decoderhandler.h.
Referenced by createIOFactory(), deleteIOFactory(), and next().
| DecoderIOFactory* DecoderHandler::getIOFactory | ( | void | ) | [inline, private] |
Definition at line 117 of file decoderhandler.h.
Referenced by doConnectDecoder(), and next().
| void DecoderHandler::createIOFactory | ( | const QUrl & | url | ) | [private] |
Definition at line 569 of file decoderhandler.cpp.
Referenced by next().
| void DecoderHandler::deleteIOFactory | ( | void | ) | [private] |
Definition at line 584 of file decoderhandler.cpp.
Referenced by createIOFactory(), next(), and stop().
friend class DecoderIOFactory [friend] |
Definition at line 82 of file decoderhandler.h.
int DecoderHandler::m_state [private] |
Definition at line 121 of file decoderhandler.h.
Referenced by deleteIOFactory(), done(), next(), start(), and stop().
int DecoderHandler::m_playlist_pos [private] |
Definition at line 122 of file decoderhandler.h.
PlayListFile DecoderHandler::m_playlist [private] |
Definition at line 123 of file decoderhandler.h.
Referenced by createPlaylistForSingleFile(), createPlaylistFromFile(), createPlaylistFromRemoteUrl(), done(), next(), and start().
DecoderIOFactory* DecoderHandler::m_io_factory [private] |
Definition at line 124 of file decoderhandler.h.
Referenced by createIOFactory(), deleteIOFactory(), getIOFactory(), and haveIOFactory().
Decoder* DecoderHandler::m_decoder [private] |
Definition at line 125 of file decoderhandler.h.
Referenced by doConnectDecoder(), getDecoder(), and stop().
Metadata* DecoderHandler::m_meta [private] |
Definition at line 126 of file decoderhandler.h.
Referenced by createIOFactory(), next(), and start().
bool DecoderHandler::m_op [private] |
Definition at line 127 of file decoderhandler.h.
Referenced by doOperationStart(), and doOperationStop().
uint DecoderHandler::m_redirects [private] |
Definition at line 128 of file decoderhandler.h.
Referenced by start().
const uint DecoderHandler::MaxRedirects = 3 [static, private] |
Definition at line 130 of file decoderhandler.h.
1.7.6.1