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