#include <tagmodel.h>
Public Types | |
| enum | Caps { NoOptions = 0x0, CreateRemove = 0x1, Save = 0x2 } |
Public Member Functions | |
| TagModel (int f=TagModel::CreateRemove|TagModel::Save) | |
| virtual const QString | name ()=0 |
| virtual QList< Qmmp::MetaData > | keys () |
| virtual const QString | value (Qmmp::MetaData key)=0 |
| virtual void | setValue (Qmmp::MetaData key, const QString &value)=0 |
| virtual void | setValue (Qmmp::MetaData key, int value) |
| virtual bool | exists () |
| virtual void | create () |
| virtual void | remove () |
| virtual void | save () |
| int | caps () |
| enum TagModel::Caps |
| TagModel::TagModel | ( | int | f = TagModel::CreateRemove|TagModel::Save |
) |
Constructor.
| f | Capabilities. |
| int TagModel::caps | ( | ) |
Returns capability flags.
| virtual void TagModel::create | ( | ) | [virtual] |
Creates tag.
| virtual bool TagModel::exists | ( | ) | [virtual] |
Returns true if this tag exists; otherwise returns false.
| virtual QList<Qmmp::MetaData> TagModel::keys | ( | ) | [virtual] |
Returns available keys. Default implementations returns all possible keys.
| virtual const QString TagModel::name | ( | ) | [pure virtual] |
Returns tag name. Subclass should reimplement this fucntion.
| virtual void TagModel::remove | ( | ) | [virtual] |
Removes tag.
| virtual void TagModel::save | ( | ) | [virtual] |
Saves tag.
| virtual void TagModel::setValue | ( | Qmmp::MetaData | key, | |
| int | value | |||
| ) | [virtual] |
Changes metadata string associated with the given key to value. Subclass should reimplement this fucntion.
| virtual void TagModel::setValue | ( | Qmmp::MetaData | key, | |
| const QString & | value | |||
| ) | [pure virtual] |
Changes metadata string associated with the given key to value. Subclass should reimplement this fucntion.
| virtual const QString TagModel::value | ( | Qmmp::MetaData | key | ) | [pure virtual] |
Returns the metdata string associated with the given key. Subclass should reimplement this fucntion.
1.5.9