#include <qmmp/tagmodel.h>
|
| | TagModel (ModelCaps f=DefaultCaps) |
| |
| virtual | ~TagModel ()=default |
| |
| virtual QString | name () const =0 |
| |
| virtual QList< Qmmp::MetaData > | keys () const |
| |
| virtual QString | value (Qmmp::MetaData key) const =0 |
| |
| virtual void | setValue (Qmmp::MetaData key, const QString &value)=0 |
| |
| virtual void | setValue (Qmmp::MetaData key, int value) |
| |
| virtual bool | exists () const |
| |
| virtual void | create () |
| |
| virtual void | remove () |
| |
| virtual void | save () |
| |
| ModelCaps | caps () const |
| |
The StateHandler class provides is the base interface class of tag editor.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ ModelCap
This enum describes tag editor capabilities
| Enumerator |
|---|
| CreateRemove | Can create/remove tag
|
| Save | Can save changes
|
◆ TagModel()
◆ ~TagModel()
◆ caps()
Returns capability flags.
◆ create()
◆ exists()
| virtual bool exists |
( |
| ) |
const |
|
virtual |
Returns true if this tag exists; otherwise returns false.
◆ keys()
| virtual QList< Qmmp::MetaData > keys |
( |
| ) |
const |
|
virtual |
Returns available keys. Default implementations returns all possible keys.
◆ name()
| virtual QString name |
( |
| ) |
const |
|
pure virtual |
Returns tag name. Subclass should reimplement this fucntion.
◆ remove()
◆ save()
◆ setValue() [1/2]
| virtual void setValue |
( |
Qmmp::MetaData | key, |
|
|
const QString & | value ) |
|
pure virtual |
Changes metadata string associated with the given key to value. Subclass should reimplement this fucntion.
◆ setValue() [2/2]
| virtual void setValue |
( |
Qmmp::MetaData | key, |
|
|
int | value ) |
|
virtual |
Changes metadata string associated with the given key to value. Subclass should reimplement this fucntion.
◆ value()
| virtual QString value |
( |
Qmmp::MetaData | key | ) |
const |
|
pure virtual |
Returns the metdata string associated with the given key. Subclass should reimplement this fucntion.
The documentation for this class was generated from the following file: