The MetaDataModel is the base interface class of metadata access.
More...
#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
Definition at line 78 of file metadatamodel.h.
Details dialog settings.
| Enumerator |
|---|
| IsCoverEditable |
Enable cover editor.
|
| CompletePropertyList |
Show properties from extraProperties() only (ignore other sources)
|
| IsCueEditable |
Enable CUE editor.
|
Definition at line 84 of file metadatamodel.h.
| MetaDataModel::MetaDataModel |
( |
bool |
readOnly, |
|
|
DialogHints |
hints = DialogHints() |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
| readOnly | Open file in read-only mode (true - enabled, false - disable). |
| hints | Details dialog settings. |
| virtual MetaDataModel::~MetaDataModel |
( |
| ) |
|
|
virtualdefault |
| virtual QImage MetaDataModel::cover |
( |
| ) |
const |
|
virtual |
| virtual QString MetaDataModel::coverPath |
( |
| ) |
const |
|
virtual |
Returns path to cover pixmap.
| virtual QString MetaDataModel::cue |
( |
| ) |
const |
|
virtual |
Returns CUE file or tag content if necessary. Default implementation returns empty string.
| virtual QList<MetaDataItem> MetaDataModel::descriptions |
( |
| ) |
const |
|
virtual |
| const DialogHints& MetaDataModel::dialogHints |
( |
| ) |
const |
Returns details dialog hints.
| virtual QList<MetaDataItem> MetaDataModel::extraProperties |
( |
| ) |
const |
|
virtual |
| bool MetaDataModel::isReadOnly |
( |
| ) |
const |
Returns true if file is opened in read only mode. Otherwise returns false.
| virtual QString MetaDataModel::lyrics |
( |
| ) |
const |
|
virtual |
| virtual void MetaDataModel::removeCover |
( |
| ) |
|
|
virtual |
| virtual void MetaDataModel::removeCue |
( |
| ) |
|
|
virtual |
Removes CUE file or tag. Default implementation does nothing.
| virtual void MetaDataModel::setCover |
( |
const QImage & |
img | ) |
|
|
virtual |
Sets cover.
- Parameters
-
| img | Cover image. Subclass should reimplement this function. Default implementation does nothing. |
Referenced by MusicSongMeta::saveInformation().
| virtual void MetaDataModel::setCue |
( |
const QString & |
content | ) |
|
|
virtual |
Updates CUE file or tag content. Default implementation doesn nothing.
| void MetaDataModel::setDialogHints |
( |
const DialogHints & |
hints | ) |
|
|
protected |
Changes details dialog hints to hints
| void MetaDataModel::setReadOnly |
( |
bool |
readOnly | ) |
|
|
protected |
Enables/Disables read only mode (true - enabled, false - disable).
- Parameters
-
| readOnly | read only mode (true - enabled, false - disable). |
| virtual QList<TagModel*> MetaDataModel::tags |
( |
| ) |
const |
|
virtual |
Returns a list of available tags. Subclass should reimplement this function. Default implementation returns empty array.
Referenced by MusicSongMeta::saveInformation().
| DialogHints MetaDataModel::m_dialogHints |
|
private |
| bool MetaDataModel::m_readOnly |
|
private |
The documentation for this class was generated from the following file: