author | zautrix <zautrix> | 2004-10-19 00:37:51 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-19 00:37:51 (UTC) |
commit | 0f35c6660ed4c304b7c75f2a607f0f27ba436601 (patch) (unidiff) | |
tree | b5e43d5bb00528d40eb0f94eeef5cf7d6cf00995 /libkdepim/kpimprefs.cpp | |
parent | 9fd09e806dfe3df5abdf70991b6ec170fed51078 (diff) | |
download | kdepimpi-0f35c6660ed4c304b7c75f2a607f0f27ba436601.zip kdepimpi-0f35c6660ed4c304b7c75f2a607f0f27ba436601.tar.gz kdepimpi-0f35c6660ed4c304b7c75f2a607f0f27ba436601.tar.bz2 |
added pisync auto start
-rw-r--r-- | libkdepim/kpimprefs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libkdepim/kpimprefs.cpp b/libkdepim/kpimprefs.cpp index c21ebaa..a05e65f 100644 --- a/libkdepim/kpimprefs.cpp +++ b/libkdepim/kpimprefs.cpp | |||
@@ -18,64 +18,66 @@ | |||
18 | 18 | ||
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 | #ifdef _WIN32_ | 41 | #ifdef _WIN32_ |
42 | QString hdp= locateLocal("data","korganizer")+"\\\\"; | 42 | QString hdp= locateLocal("data","korganizer")+"\\\\"; |
43 | #else | 43 | #else |
44 | QString hdp= locateLocal("data","korganizer")+"/"; | 44 | QString hdp= locateLocal("data","korganizer")+"/"; |
45 | #endif | 45 | #endif |
46 | config()->setGroup("SyncOptions"); | 46 | config()->setGroup("SyncOptions"); |
47 | addItemString("PassiveSyncPort",&mPassiveSyncPort,"9197" ); | 47 | addItemString("PassiveSyncPort",&mPassiveSyncPort,"9197" ); |
48 | addItemString("PassiveSyncPw",&mPassiveSyncPw,"abc" ); | 48 | addItemString("PassiveSyncPw",&mPassiveSyncPw,"abc" ); |
49 | addItemString("LastSyncedLocalFile", &mLastSyncedLocalFile ,hdp +"lastsync.ics" ); | 49 | addItemString("LastSyncedLocalFile", &mLastSyncedLocalFile ,hdp +"lastsync.ics" ); |
50 | addItemBool("PassiveSyncWithDesktop",&mPassiveSyncWithDesktop,false ); | ||
51 | addItemBool("PassiveSyncAutoStart",&mPassiveSyncAutoStart,false ); | ||
50 | addItemInt("RingSyncAlgoPrefs",&mRingSyncAlgoPrefs,3); | 52 | addItemInt("RingSyncAlgoPrefs",&mRingSyncAlgoPrefs,3); |
51 | } | 53 | } |
52 | 54 | ||
53 | KPimPrefs::~KPimPrefs() | 55 | KPimPrefs::~KPimPrefs() |
54 | { | 56 | { |
55 | } | 57 | } |
56 | 58 | ||
57 | void KPimPrefs::usrSetDefaults() | 59 | void KPimPrefs::usrSetDefaults() |
58 | { | 60 | { |
59 | setCategoryDefaults(); | 61 | setCategoryDefaults(); |
60 | } | 62 | } |
61 | 63 | ||
62 | void KPimPrefs::usrReadConfig() | 64 | void KPimPrefs::usrReadConfig() |
63 | { | 65 | { |
64 | kdDebug(5300) << "KPimPrefs::usrReadConfig()" << endl; | 66 | kdDebug(5300) << "KPimPrefs::usrReadConfig()" << endl; |
65 | 67 | ||
66 | config()->setGroup("General"); | 68 | config()->setGroup("General"); |
67 | mCustomCategories = config()->readListEntry("Custom Categories"); | 69 | mCustomCategories = config()->readListEntry("Custom Categories"); |
68 | if (mCustomCategories.isEmpty()) setCategoryDefaults(); | 70 | if (mCustomCategories.isEmpty()) setCategoryDefaults(); |
69 | } | 71 | } |
70 | 72 | ||
71 | 73 | ||
72 | void KPimPrefs::usrWriteConfig() | 74 | void KPimPrefs::usrWriteConfig() |
73 | { | 75 | { |
74 | config()->setGroup("General"); | 76 | config()->setGroup("General"); |
75 | config()->writeEntry("Custom Categories",mCustomCategories); | 77 | config()->writeEntry("Custom Categories",mCustomCategories); |
76 | } | 78 | } |
77 | 79 | ||
78 | void KPimPrefs::setCategoryDefaults() | 80 | void KPimPrefs::setCategoryDefaults() |
79 | { | 81 | { |
80 | // empty implementation | 82 | // empty implementation |
81 | } | 83 | } |