-rw-r--r-- | libkdepim/kpimprefs.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libkdepim/kpimprefs.cpp b/libkdepim/kpimprefs.cpp index 140a286..a9ea330 100644 --- a/libkdepim/kpimprefs.cpp +++ b/libkdepim/kpimprefs.cpp | |||
@@ -19,48 +19,54 @@ | |||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* | 24 | /* |
25 | Enhanced Version of the file for platform independent KDE tools. | 25 | Enhanced Version of the file for platform independent KDE tools. |
26 | Copyright (c) 2004 Ulf Schenk | 26 | Copyright (c) 2004 Ulf Schenk |
27 | 27 | ||
28 | $Id$ | 28 | $Id$ |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <kglobal.h> | 31 | #include <kglobal.h> |
32 | #include <kconfig.h> | 32 | #include <kconfig.h> |
33 | #include <klocale.h> | 33 | #include <klocale.h> |
34 | #include <kdebug.h> | 34 | #include <kdebug.h> |
35 | 35 | ||
36 | #include "kpimprefs.h" | 36 | #include "kpimprefs.h" |
37 | 37 | ||
38 | KPimPrefs::KPimPrefs( const QString &name ) : | 38 | KPimPrefs::KPimPrefs( const QString &name ) : |
39 | KPrefs( name ) | 39 | KPrefs( name ) |
40 | { | 40 | { |
41 | } | 41 | } |
42 | 42 | ||
43 | KPimPrefs::~KPimPrefs() | 43 | KPimPrefs::~KPimPrefs() |
44 | { | 44 | { |
45 | } | 45 | } |
46 | 46 | ||
47 | void KPimPrefs::usrSetDefaults() | 47 | void KPimPrefs::usrSetDefaults() |
48 | { | 48 | { |
49 | setCategoryDefaults(); | 49 | setCategoryDefaults(); |
50 | } | 50 | } |
51 | 51 | ||
52 | void KPimPrefs::usrReadConfig() | 52 | void KPimPrefs::usrReadConfig() |
53 | { | 53 | { |
54 | kdDebug(5300) << "KPimPrefs::usrReadConfig()" << endl; | 54 | kdDebug(5300) << "KPimPrefs::usrReadConfig()" << endl; |
55 | 55 | ||
56 | config()->setGroup("General"); | 56 | config()->setGroup("General"); |
57 | mCustomCategories = config()->readListEntry("Custom Categories"); | 57 | mCustomCategories = config()->readListEntry("Custom Categories"); |
58 | if (mCustomCategories.isEmpty()) setCategoryDefaults(); | 58 | if (mCustomCategories.isEmpty()) setCategoryDefaults(); |
59 | } | 59 | } |
60 | 60 | ||
61 | 61 | ||
62 | void KPimPrefs::usrWriteConfig() | 62 | void KPimPrefs::usrWriteConfig() |
63 | { | 63 | { |
64 | config()->setGroup("General"); | 64 | config()->setGroup("General"); |
65 | config()->writeEntry("Custom Categories",mCustomCategories); | 65 | config()->writeEntry("Custom Categories",mCustomCategories); |
66 | } | 66 | } |
67 | |||
68 | void KPimPrefs::setCategoryDefaults() | ||
69 | { | ||
70 | // empty implementation | ||
71 | } | ||
72 | |||