diff options
Diffstat (limited to 'kde2/kpsion/kpsionconfig.cpp')
-rw-r--r-- | kde2/kpsion/kpsionconfig.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kde2/kpsion/kpsionconfig.cpp b/kde2/kpsion/kpsionconfig.cpp index d6119a0..3896a80 100644 --- a/kde2/kpsion/kpsionconfig.cpp +++ b/kde2/kpsion/kpsionconfig.cpp @@ -43,6 +43,7 @@ KPsionConfig::KPsionConfig() { optionNames.insert(OPT_DRIVES, QString("Psion/Drives_%1")); optionNames.insert(OPT_LASTFULL, QString("Psion/LastFull_%1_%1")); optionNames.insert(OPT_LASTINC, QString("Psion/LastInc_%1_%1")); + optionNames.insert(OPT_SYNCTIME, QString("Psion/SyncTime_%1")); defaults.insert(DEF_INCINTERVAL, QString("1")); defaults.insert(DEF_FULLINTERVAL, QString("7")); @@ -51,6 +52,7 @@ KPsionConfig::KPsionConfig() { defaults.insert(DEF_SERIALSPEED, QString("4")); defaults.insert(DEF_BACKUPGEN, QString("3")); defaults.insert(DEF_NCPDPATH, QString("ncpd")); + defaults.insert(DEF_SYNCTIME, QString("false")); } const QString KPsionConfig:: @@ -68,6 +70,14 @@ getIntDefault(int optIdx) { return (*it).toInt(); } +bool KPsionConfig:: +getBoolDefault(int optIdx) { + cfgMap::Iterator it = defaults.find(optIdx); + if (it == defaults.end()) + return false; + return ((*it).compare("true") == 0); +} + const QString KPsionConfig:: getOptionName(int optIdx) { cfgMap::Iterator it = optionNames.find(optIdx); |