Initial Release
[vicar] / src / vicar-lib / src / gconfutility.h
1 /*
2 @version: 0.2
3 @author: Sudheer K. <scifi.guy@hotmail.com>
4 @license: GNU General Public License
5 */
6
7 #ifndef GCONFUTILITY_H
8 #define GCONFUTILITY_H
9
10 #include <QObject>
11 #include <gconf/gconf-client.h>
12
13 #define APPLICATION_NAME "vicar"
14 #define GCONF_DIR "/apps/Maemo/" APPLICATION_NAME "/"
15
16 class GConfUtility : public QObject
17  {
18 Q_OBJECT
19 public:
20     GConfUtility(QObject *parent = 0);
21     ~GConfUtility();
22     void setGconfValueString(QString strKey,QString strValue);
23     QString getGconfValueString(QString strKey);
24
25     void setGconfValueBoolean(QString strKey,bool boolValue);
26     bool getGconfValueBoolean(QString strKey);
27
28     void setGconfValueInteger(QString strKey,int intValue);
29     int getGconfValueInteger(QString strKey);
30
31 private:
32      GConfClient *gconfClient;
33 };
34
35 #endif // GCONFUTILITY_H