Qmmp
Public Member Functions | List of all members
DecoderFactory Class Referenceabstract

#include <decoderfactory.h>

Public Member Functions

virtual ~DecoderFactory ()
 
virtual bool canDecode (QIODevice *d) const =0
 
virtual DecoderProperties properties () const =0
 
virtual Decodercreate (const QString &path, QIODevice *input=0)=0
 
virtual QList< TrackInfo * > createPlayList (const QString &fileName, TrackInfo::Parts parts, QStringList *ignoredPaths)=0
 
virtual MetaDataModelcreateMetaDataModel (const QString &path, bool readOnly)=0
 
virtual void showSettings (QWidget *parent)=0
 
virtual void showAbout (QWidget *parent)=0
 
virtual QString translation () const =0
 

Detailed Description

Input plugin interface (decoder factory).

Author
Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru

Constructor & Destructor Documentation

◆ ~DecoderFactory()

virtual ~DecoderFactory ( )
inlinevirtual

Object destructor.

Member Function Documentation

◆ canDecode()

virtual bool canDecode ( QIODevice *  d) const
pure virtual

Returns true if plugin can decode data provided by d, otherwise returns false

◆ create()

virtual Decoder* create ( const QString &  path,
QIODevice *  input = 0 
)
pure virtual

Creates decoder object.

Parameters
pathFile path
inputInput data (if required)

◆ createMetaDataModel()

virtual MetaDataModel* createMetaDataModel ( const QString &  path,
bool  readOnly 
)
pure virtual

Creats metadata object, which provides full access to file tags.

Parameters
pathFile path.
readOnlyOpen file in read-only mode (true - enabled, false - disable).
Returns
MetaDataModel pointer.

◆ createPlayList()

virtual QList<TrackInfo *> createPlayList ( const QString &  fileName,
TrackInfo::Parts  parts,
QStringList *  ignoredPaths 
)
pure virtual

Extracts metadata and audio information from file path and returns a list of TrackInfo items. One file may contain several playlist items (for example: cda disk or flac with embedded cue)

Parameters
fileNameFile path.
partsparts of metadata which should be extracted from file.
ignoredPathsPointer to a list of the files which should be ignored by the recursive search (useful to exclude cue data files from playlist).

◆ properties()

virtual DecoderProperties properties ( ) const
pure virtual

Returns decoder plugin properties.

◆ showAbout()

virtual void showAbout ( QWidget *  parent)
pure virtual

Shows about dialog.

Parameters
parentParent widget.

◆ showSettings()

virtual void showSettings ( QWidget *  parent)
pure virtual

Shows settings dialog.

Parameters
parentParent widget.

◆ translation()

virtual QString translation ( ) const
pure virtual

Returns translation file path without locale code and extension


The documentation for this class was generated from the following file: