![]() |
LeechCraft
0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
|
Pending tags fetch handle. More...
#include "itagsfetcher.h"
Public Member Functions | |
virtual | ~IPendingTagsFetch () |
virtual QObject * | GetQObject ()=0 |
Returns this object as a QObject. More... | |
virtual AudioInfo | GetResult () const =0 |
Returns the found audio metadata. More... | |
Protected Member Functions | |
virtual void | ready (const QString &filename, const Media::AudioInfo &info)=0 |
Emitted when the search result if ready and fetched. More... | |
Pending tags fetch handle.
Interface to a pending tags fetch job. A descendant of this class is returned from ITagsFetcher::FetchTags() method.
This class has some signals (ready()), and one can use the GetQObject() method to get an object of this class as a QObject and connect to those signals.
QObject::deleteLater()
, for example) after ready() signal is emitted. Thus the calling code should never delete it explicitly, neither it should use this object after ready() signal or connect to this signals via Qt::QueuedConnection
.Definition at line 55 of file itagsfetcher.h.
|
inlinevirtual |
Definition at line 58 of file itagsfetcher.h.
|
pure virtual |
Returns this object as a QObject.
This function can be used to connect to the signals of this class.
|
pure virtual |
Returns the found audio metadata.
Returns the best matching audio info, if any, for the file this tags fetch job corresponds to.
|
protectedpure virtual |
Emitted when the search result if ready and fetched.
The object will be invalid after this signal is emitted and the event loop is run.
[out] | filename | The filename this tags fetch job corresponds to. |
[out] | info | The audio track metadata fetched for the filename. |