]> git.sesse.net Git - vlc/blob - plugins/kde/QConfigItem.cpp
* ALL: got rid of p_object->p_this which is now useless.
[vlc] / plugins / kde / QConfigItem.cpp
1 #include "QConfigItem.h"
2 #include <vlc/vlc.h>
3 QConfigItem::QConfigItem(QObject *parent, QString name, int iType, int i_val) :
4     QObject(parent, name)
5 {
6     type = iType;
7     iVal = i_val;
8 }
9
10 QConfigItem::QConfigItem(QObject *parent, QString name, int iType, float f_val) :
11     QObject(parent, name)
12 {
13     type = iType;
14     fVal = f_val;
15 }
16
17 QConfigItem::QConfigItem(QObject *parent, QString name, int iType, QString s_val) :
18     QObject(parent, name)
19 {
20     type = iType;
21     sVal = s_val;
22 }
23
24 QConfigItem::~QConfigItem()
25 {
26     ;
27 }
28
29 int QConfigItem::getType()
30 {
31     return type;
32 }
33
34 int QConfigItem::iValue()
35 {
36     return iVal;
37 }
38
39 float QConfigItem::fValue()
40 {
41     return fVal;
42 }
43
44 QString QConfigItem::sValue()
45 {
46     return sVal;
47 }
48
49 void QConfigItem::setValue(int val)
50 {
51     iVal = val;
52 }
53
54 void QConfigItem::setValue(float val)
55 {
56     fVal = val;
57 }
58
59 void QConfigItem::setValue(double val)
60 {
61     fVal = (float)val;
62 }
63
64 void QConfigItem::setValue(const QString &val)
65 {
66     sVal = val;
67 }