TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Member Functions | List of all members
EngineFactory Class Referenceabstract

Engine plugin interface. More...

#include <enginefactory.h>

Public Member Functions

virtual ~EngineFactory ()=default
 
virtual bool supports (const QString &source) const =0
 
virtual EngineProperties properties () const =0
 
virtual AbstractEnginecreate (QObject *parent=nullptr)=0
 
virtual QList< TrackInfo * > createPlayList (const QString &fileName, TrackInfo::Parts parts, QStringList *ignoredPaths)=0
 
virtual MetaDataModelcreateMetaDataModel (const QString &path, bool readOnly)=0
 

Detailed Description

Engine plugin interface.

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

Definition at line 51 of file enginefactory.h.

Constructor & Destructor Documentation

virtual EngineFactory::~EngineFactory ( )
virtualdefault

Object destructor.

Member Function Documentation

virtual AbstractEngine* EngineFactory::create ( QObject *  parent = nullptr)
pure virtual

Creates engine object.

Parameters
parentParent object File path
virtual MetaDataModel* EngineFactory::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.
virtual QList<TrackInfo*> EngineFactory::createPlayList ( const QString &  fileName,
TrackInfo::Parts  parts,
QStringList *  ignoredPaths 
)
pure virtual

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

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

Returns general plugin properties.

virtual bool EngineFactory::supports ( const QString &  source) const
pure virtual

Returns true if plugin supports source, otherwise returns false


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