Qmmp
tagmodel.h
1 /***************************************************************************
2  * Copyright (C) 2009-2012 by Ilya Kotov *
3  * forkotov02@ya.ru *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19  ***************************************************************************/
20 
21 #ifndef TAGMODEL_H
22 #define TAGMODEL_H
23 
24 #include <QString>
25 #include <QList>
26 #include "qmmp.h"
27 
31 class TagModel
32 {
33 public:
37  enum Caps
38  {
39  NoOptions = 0x0,
40  CreateRemove = 0x1,
41  Save = 0x2,
42  };
51  virtual ~TagModel();
56  virtual const QString name() = 0;
60  virtual QList<Qmmp::MetaData> keys();
65  virtual const QString value(Qmmp::MetaData key) = 0;
70  virtual void setValue(Qmmp::MetaData key, const QString &value) = 0;
75  virtual void setValue(Qmmp::MetaData key, int value);
79  virtual bool exists();
83  virtual void create();
87  virtual void remove();
91  virtual void save();
95  int caps();
96 
97 private:
98  int m_f;
99 };
100 
101 #endif // TAGMODEL_H
Caps
Definition: tagmodel.h:37
virtual bool exists()
virtual ~TagModel()
int caps()
virtual void create()
The StateHandler class provides is the base interface class of tag editor.
Definition: tagmodel.h:31
Definition: tagmodel.h:41
virtual void save()
MetaData
Definition: qmmp.h:63
virtual const QString name()=0
virtual const QString value(Qmmp::MetaData key)=0
Definition: tagmodel.h:40
virtual QList< Qmmp::MetaData > keys()
virtual void setValue(Qmmp::MetaData key, const QString &value)=0
TagModel(int f=TagModel::CreateRemove|TagModel::Save)
Definition: tagmodel.h:39