Qmmp
Public Types | Public Member Functions | List of all members
TagModel Class Referenceabstract

#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::MetaDatakeys ()
 
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 ()
 

Detailed Description

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

Member Enumeration Documentation

◆ Caps

enum Caps

This enum describes tag editor capabilities

Enumerator
NoOptions 

No capabilities

CreateRemove 

Can create/remove tag

Save 

Can save changes

Constructor & Destructor Documentation

◆ TagModel()

Constructor.

Parameters
fCapabilities.

◆ ~TagModel()

virtual ~TagModel ( )
virtual

Destructor.

Member Function Documentation

◆ caps()

int caps ( )

Returns capability flags.

◆ create()

virtual void create ( )
virtual

Creates tag.

◆ exists()

virtual bool exists ( )
virtual

Returns true if this tag exists; otherwise returns false.

◆ keys()

virtual QList<Qmmp::MetaData> keys ( )
virtual

Returns available keys. Default implementations returns all possible keys.

◆ name()

virtual const QString name ( )
pure virtual

Returns tag name. Subclass should reimplement this fucntion.

◆ remove()

virtual void remove ( )
virtual

Removes tag.

◆ save()

virtual void save ( )
virtual

Saves tag.

◆ 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 const QString value ( Qmmp::MetaData  key)
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: