implemented infinite backoff (fixes #311767)
[dasher.git] / Src / DasherCore / GnomeSettingsStore.h
blob6c5785946c368f6c83fea5fa523d8cdd5c5b95e9
1 #ifndef __gnomesettingsstore_h__
2 #define __gnomesettingsstore_h__
4 #include <string>
6 #include <gconf/gconf.h>
7 #include <gconf/gconf-client.h>
8 #include <gconf/gconf-enum-types.h>
10 #include "SettingsStore.h"
12 #include <stdio.h>
14 class CGnomeSettingsStore:public CSettingsStore {
15 public:
16 CGnomeSettingsStore(Dasher::CEventHandler * pEventHandler);
17 ~CGnomeSettingsStore();
19 void NotificationCallback(GConfClient * pClient, guint iCNXN_ID, GConfEntry * pEntry);
21 private:
22 bool LoadSetting(const std::string & Key, bool * Value);
23 bool LoadSetting(const std::string & Key, long *Value);
24 bool LoadSetting(const std::string & Key, std::string * Value);
26 void SaveSetting(const std::string & Key, bool Value);
27 void SaveSetting(const std::string & Key, long Value);
28 void SaveSetting(const std::string & Key, const std::string & Value);
30 GConfClient *the_gconf_client;
31 GConfEngine *gconfengine;
34 #endif