oopapidocs
2.0
|
A wrapper around Phonon::MediaSource. More...
#include <phononitem.h>
Public Member Functions | |
virtual void | setFileName (QString name) |
changes the fileName. | |
virtual QTime | trackTime () const |
bool | checkMetaData () const |
Protected Member Functions | |
PhononItem (QString path=QString(), QObject *parent=0) | |
Friends | |
class | Phonon::MetaDataLoader |
A wrapper around Phonon::MediaSource.
Grabs metadata for media files from metadata tags, in a non-blocking way using the Phonon API. Phonon creates at least 1 thread for each metadata fetch.
Don't create lots of instances of this directly - use MetaDataLoader.
Tested on Linux, Qt 4.7.1. It seems to not work with MP3s on Windows, but that is also true of the Qt 4.7 phonon mediaplayer example (in loading metadata, that is)
Definition at line 25 of file phononitem.h.
PhononItem::PhononItem | ( | QString | path = QString() , |
QObject * | parent = 0 |
||
) | [explicit, protected] |
Definition at line 8 of file phononitem.cpp.
References setFileName().
bool PhononItem::checkMetaData | ( | ) | const |
Definition at line 30 of file phononitem.cpp.
Referenced by trackTime().
void PhononItem::setFileName | ( | QString | name | ) | [virtual] |
changes the fileName.
Clears resources. Does not initiate fetching of metadata.
Reimplemented from MetaDataValue.
Definition at line 15 of file phononitem.cpp.
Referenced by PhononItem().
QTime PhononItem::trackTime | ( | ) | const [virtual] |
Reimplemented from MetaDataValue.
Definition at line 169 of file phononitem.cpp.
References checkMetaData().