#include <qmmp/decoderfactory.h>
Input plugin interface (decoder factory).
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ ~DecoderFactory()
◆ 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 = nullptr ) |
|
pure virtual |
Creates decoder object.
- Parameters
-
| path | File path |
| input | Input 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
-
| path | File path. |
| readOnly | Open 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
-
| fileName | File path. |
| parts | parts of metadata which should be extracted from file. |
| ignoredPaths | Pointer to a list of the files which should be ignored by the recursive search (useful to exclude cue data files from playlist). |
◆ createSettings()
| virtual QDialog * createSettings |
( |
QWidget * | parent | ) |
|
|
pure virtual |
Creates settings dialog.
- Parameters
-
- Returns
- Settings dialog pointer.
◆ properties()
Returns decoder plugin properties.
◆ showAbout()
| virtual void showAbout |
( |
QWidget * | parent | ) |
|
|
pure virtual |
Shows about dialog.
- Parameters
-
◆ 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: