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

The glue between the DecoderHandler and the Decoder. More...

#include <decoderhandler.h>

Inheritance diagram for DecoderIOFactory:
MythObservable DecoderIOFactoryFile DecoderIOFactorySG DecoderIOFactoryShoutCast DecoderIOFactoryUrl

List of all members.

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)
DecodergetDecoder (void)
void doFailed (const QString &message)
void doInfo (const QString &message)
void doOperationStart (const QString &name)
void doOperationStop (void)
MetadatagetMetadata ()
QUrl & getUrl ()

Private Attributes

DecoderHandlerm_handler
Metadata m_meta
QUrl m_url

Detailed Description

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.


Constructor & Destructor Documentation

Definition at line 65 of file decoderhandler.cpp.

Definition at line 70 of file decoderhandler.cpp.


Member Function Documentation

virtual void DecoderIOFactory::start ( void  ) [pure virtual]
virtual void DecoderIOFactory::stop ( void  ) [pure virtual]
virtual QIODevice* DecoderIOFactory::takeInput ( void  ) [pure virtual]
void DecoderIOFactory::setUrl ( const QUrl &  url) [inline]
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 80 of file decoderhandler.cpp.

void DecoderIOFactory::doFailed ( const QString &  message) [protected]
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 101 of file decoderhandler.cpp.

Referenced by DecoderIOFactoryShoutCast::stop().

Metadata& DecoderIOFactory::getMetadata ( void  ) [inline, protected]
QUrl& DecoderIOFactory::getUrl ( ) [inline, protected]

Member Data Documentation

const uint DecoderIOFactory::DefaultPrebufferSize = 128 * 1024 [static]
const uint DecoderIOFactory::DefaultBufferSize = 256 * 1024 [static]

Definition at line 153 of file decoderhandler.h.

Referenced by DecoderIOFactoryUrl::replyFinished().

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.

Referenced by getUrl(), and setUrl().


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