#include <metadatamanager.h>
Public Member Functions | |
MetaDataManager () | |
~MetaDataManager () | |
QList< FileInfo * > | createPlayList (const QString &path, bool useMetaData=true) const |
MetaDataModel * | createMetaDataModel (const QString &url, QObject *parent=0) const |
QStringList | filters () const |
QStringList | nameFilters () const |
QStringList | protocols () const |
bool | supports (const QString &file) const |
QPixmap | getCover (const QString &fileName) |
QString | getCoverPath (const QString &fileName) |
void | clearCoverChache () |
Static Public Member Functions | |
static MetaDataManager * | instance () |
static void | destroy () |
MetaDataManager | ( | ) |
Constructor. Use MetaDataManager::instance() instead.
~MetaDataManager | ( | ) |
Destructor. Use MetaDataManager::destroy() instead.
void clearCoverChache | ( | ) |
Clears cover path cache.
MetaDataModel* createMetaDataModel | ( | const QString & | url, | |
QObject * | parent = 0 | |||
) | const |
Creats metadata object, which provides full access to file tags.
url | File path or URL. | |
parent | Parent object. |
QList<FileInfo *> createPlayList | ( | const QString & | path, | |
bool | useMetaData = true | |||
) | const |
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)
path | Source file path. | |
useMetaData | Metadata usage (true - use, - do not use) |
static void destroy | ( | ) | [static] |
Destroys MetaDataManager object.
QStringList filters | ( | ) | const |
Returns a list of file name filters with description, i.e. "MPEG Files (*.mp3 *.mpg)"
QPixmap getCover | ( | const QString & | fileName | ) |
Returns cover pixmap for the given file fileName, or returns an empty pixmap if cover is not available.
QString getCoverPath | ( | const QString & | fileName | ) |
Returns cover file path for the given file fileName, or returns an empty string if cover file is not available. This function does not work with embedded covers.
static MetaDataManager* instance | ( | ) | [static] |
Returns a pointer to the MetaDataManager instance.
QStringList nameFilters | ( | ) | const |
Returns a list of file name filters, i.e. "*.mp3 *.mpg"
QStringList protocols | ( | ) | const |
Returns a list of the suported protocols
bool supports | ( | const QString & | file | ) | const |
Returns true if file is supported and exists, otherwise returns false