]> git.sesse.net Git - vlc/blob - plugins/kde/QConfigItem.h
* ALL: got rid of p_object->p_this which is now useless.
[vlc] / plugins / kde / QConfigItem.h
1 #ifndef _KCONFIGITEM_H_
2 #define _KCONFIGITEM_H_
3 #include <qobject.h>
4 #include <qstring.h>
5 /*
6   A class to handle the information for one configuration item. 
7 */
8
9 class QConfigItem : public QObject
10 {
11     Q_OBJECT
12  public:
13     QConfigItem(QObject *parent, QString name, int iType, int i_val);
14     QConfigItem(QObject *parent, QString name, int iType, float f_val);
15     QConfigItem(QObject *parent, QString name, int iType, QString s_val);
16     ~QConfigItem();
17
18     int getType();
19     float fValue();
20     int iValue();
21     QString sValue();
22
23  public slots:
24     void setValue(int val);
25     void setValue(float val);
26     void setValue(double val);
27     void setValue(const QString &val);
28     
29  private:
30     int iVal, type;
31     float fVal;
32     QString sVal;
33 };
34 #endif