#include <metadatamodel.h>
The MetaDataModel is the base interface class of metadata access.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ DialogHint
Details dialog settings.
Enumerator |
---|
IsCoverEditable | Enable cover editor.
|
CompletePropertyList | Show properties from extraProperties() only (ignore other sources)
|
◆ MetaDataModel()
MetaDataModel |
( |
bool |
readOnly, |
|
|
DialogHints |
hints = DialogHints() |
|
) |
| |
Constructor.
- Parameters
-
readOnly | Open file in read-only mode (true - enabled, false - disable). |
hints | Details dialog settings. |
◆ ~MetaDataModel()
◆ cover()
virtual QPixmap cover |
( |
| ) |
const |
|
virtual |
Returns cover pixmap. Subclass should reimplement this function. Default implementation returns empty pixmap.
◆ coverPath()
virtual QString coverPath |
( |
| ) |
const |
|
virtual |
Returns path to cover pixmap.
◆ descriptions()
Returns a list of long descriptions. Default implemetation returns empty array.
◆ dialogHints()
const DialogHints& dialogHints |
( |
| ) |
const |
Returns details dialog hints.
◆ extraProperties()
Returns extra properties of the media source (in addition to the Qmmp::TrackProperty values). Default implemetation returns empty array.
◆ isReadOnly()
bool isReadOnly |
( |
| ) |
const |
Returns true if file is opened in read only mode. Otherwise returns false.
◆ removeCover()
virtual void removeCover |
( |
| ) |
|
|
virtual |
Removes cover. Subclass should reimplement this function. Default implementation does nothing.
◆ setCover()
virtual void setCover |
( |
const QPixmap & |
pix | ) |
|
|
virtual |
Sets cover.
- Parameters
-
pix | Cover pixmap. Subclass should reimplement this function. Default implementation does nothing. |
◆ setDialogHints()
void setDialogHints |
( |
const DialogHints & |
hints | ) |
|
|
protected |
Changes details dialog hints to hints
◆ setReadOnly()
void setReadOnly |
( |
bool |
readOnly | ) |
|
|
protected |
Enables/Disables read only mode (true - enabled, false - disable).
- Parameters
-
readOnly | read only mode (true - enabled, false - disable). |
◆ tags()
virtual QList<TagModel* > tags |
( |
| ) |
const |
|
virtual |
Returns a list of available tags. Subclass should reimplement this function. Default implementation returns empty array.
The documentation for this class was generated from the following file: