diff options
author | Fritz Elfert <felfert@to.com> | 2001-03-25 00:07:23 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2001-03-25 00:07:23 +0000 |
commit | 2df7dc38f93b9016a606aad3bf07e3dff2ab27e2 (patch) | |
tree | 241a41c00cb3d008f04900fa4b5f38317e0903cb /kde2/kpsion/kpsionconfig.cpp | |
parent | 0f1ffc4064c073854fa51949cb8e9c44cf8885ee (diff) | |
download | plptools-2df7dc38f93b9016a606aad3bf07e3dff2ab27e2.tar.gz plptools-2df7dc38f93b9016a606aad3bf07e3dff2ab27e2.tar.bz2 plptools-2df7dc38f93b9016a606aad3bf07e3dff2ab27e2.zip |
Implemented auto-backup
Diffstat (limited to 'kde2/kpsion/kpsionconfig.cpp')
-rw-r--r-- | kde2/kpsion/kpsionconfig.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kde2/kpsion/kpsionconfig.cpp b/kde2/kpsion/kpsionconfig.cpp index 7a0f6f4..976ae69 100644 --- a/kde2/kpsion/kpsionconfig.cpp +++ b/kde2/kpsion/kpsionconfig.cpp @@ -131,6 +131,21 @@ getConfigBackupInterval() { return l; } +int KPsionConfig:: +getIntervalDays(KConfig *config, int optIdx) { + config->setGroup(getSectionName(optIdx)); + int i = config->readNumEntry(getOptionName(optIdx)); + switch (i) { + case 8: + return 14; + case 9: + return 21; + case 10: + return 28; + } + return i; +} + /* * Local variables: * c-basic-offset: 4 |