author | zautrix <zautrix> | 2005-01-14 21:17:00 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-14 21:17:00 (UTC) |
commit | ee9df90c4898f4ed624be2d4e94918fcc80060e9 (patch) (unidiff) | |
tree | d15e5e2e7fd4120d09fdda2ab4331ade67082e84 /libkdepim/ksyncprofile.cpp | |
parent | 620f8de219ee34c209960f02c8296c0568dd5d8b (diff) | |
download | kdepimpi-ee9df90c4898f4ed624be2d4e94918fcc80060e9.zip kdepimpi-ee9df90c4898f4ed624be2d4e94918fcc80060e9.tar.gz kdepimpi-ee9df90c4898f4ed624be2d4e94918fcc80060e9.tar.bz2 |
sync settings
-rw-r--r-- | libkdepim/ksyncprofile.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp index 9f404cb..0d72fc9 100644 --- a/libkdepim/ksyncprofile.cpp +++ b/libkdepim/ksyncprofile.cpp | |||
@@ -1,256 +1,275 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KDE-Pim/Pi. | 2 | This file is part of KDE-Pim/Pi. |
3 | Copyright (c) 2004 Lutz Rogowski <rogowski@kde.org> | 3 | Copyright (c) 2004 Lutz Rogowski <rogowski@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | // $Id$ | 21 | // $Id$ |
22 | 22 | ||
23 | #include <qcolor.h> | 23 | #include <qcolor.h> |
24 | 24 | ||
25 | #include <kconfig.h> | 25 | #include <kconfig.h> |
26 | #include <kstandarddirs.h> | 26 | #include <kstandarddirs.h> |
27 | #include <kglobal.h> | 27 | #include <kglobal.h> |
28 | #include <kdebug.h> | 28 | #include <kdebug.h> |
29 | 29 | ||
30 | #include "ksyncprofile.h" | 30 | #include "ksyncprofile.h" |
31 | 31 | ||
32 | 32 | ||
33 | KSyncProfile::KSyncProfile(): QObject () | 33 | KSyncProfile::KSyncProfile(): QObject () |
34 | { | 34 | { |
35 | setDefault(); | 35 | setDefault(); |
36 | } | 36 | } |
37 | KSyncProfile::~KSyncProfile() | 37 | KSyncProfile::~KSyncProfile() |
38 | { | 38 | { |
39 | 39 | ||
40 | } | 40 | } |
41 | 41 | ||
42 | 42 | ||
43 | KSyncProfile* KSyncProfile::clone() | 43 | KSyncProfile* KSyncProfile::clone() |
44 | { | 44 | { |
45 | KSyncProfile* myClone = new KSyncProfile(); | 45 | KSyncProfile* myClone = new KSyncProfile(); |
46 | myClone->setRemotePw(mRemotePw); | 46 | myClone->setRemotePw(mRemotePw); |
47 | myClone->setRemoteIP(mRemoteIP); | 47 | myClone->setRemoteIP(mRemoteIP); |
48 | myClone->setRemotePort(mRemotePort); | 48 | myClone->setRemotePort(mRemotePort); |
49 | myClone->setRemotePwAB(mRemotePwAB); | 49 | myClone->setRemotePwAB(mRemotePwAB); |
50 | myClone->setRemoteIPAB(mRemoteIPAB); | 50 | myClone->setRemoteIPAB(mRemoteIPAB); |
51 | myClone->setRemotePortAB(mRemotePortAB); | 51 | myClone->setRemotePortAB(mRemotePortAB); |
52 | myClone->setRemotePwPWM(mRemotePwPWM); | 52 | myClone->setRemotePwPWM(mRemotePwPWM); |
53 | myClone->setRemoteIPPWM(mRemoteIPPWM); | 53 | myClone->setRemoteIPPWM(mRemoteIPPWM); |
54 | myClone->setRemotePortPWM (mRemotePortPWM); | 54 | myClone->setRemotePortPWM (mRemotePortPWM); |
55 | myClone->setPreSyncCommand( mPreSyncCommand ); | 55 | myClone->setPreSyncCommand( mPreSyncCommand ); |
56 | myClone->setPostSyncCommand( mPostSyncCommand ); | 56 | myClone->setPostSyncCommand( mPostSyncCommand ); |
57 | myClone->setLocalTempFile( mLocalTempFile); | 57 | myClone->setLocalTempFile( mLocalTempFile); |
58 | myClone->setRemoteFileName( mRemoteFileName ); | 58 | myClone->setRemoteFileName( mRemoteFileName ); |
59 | myClone->setPreSyncCommandAB( mPreSyncCommandAB ); | 59 | myClone->setPreSyncCommandAB( mPreSyncCommandAB ); |
60 | myClone->setPostSyncCommandAB( mPostSyncCommandAB ); | 60 | myClone->setPostSyncCommandAB( mPostSyncCommandAB ); |
61 | myClone->setLocalTempFileAB( mLocalTempFileAB); | 61 | myClone->setLocalTempFileAB( mLocalTempFileAB); |
62 | myClone->setRemoteFileNameAB( mRemoteFileNameAB ); | 62 | myClone->setRemoteFileNameAB( mRemoteFileNameAB ); |
63 | myClone->setPreSyncCommandPWM( mPreSyncCommandPWM ); | 63 | myClone->setPreSyncCommandPWM( mPreSyncCommandPWM ); |
64 | myClone->setPostSyncCommandPWM( mPostSyncCommandPWM ); | 64 | myClone->setPostSyncCommandPWM( mPostSyncCommandPWM ); |
65 | myClone->setLocalTempFilePWM( mLocalTempFilePWM); | 65 | myClone->setLocalTempFilePWM( mLocalTempFilePWM); |
66 | myClone->setRemoteFileNamePWM( mRemoteFileNamePWM ); | 66 | myClone->setRemoteFileNamePWM( mRemoteFileNamePWM ); |
67 | myClone->setShowSummaryAfterSync( mShowSummaryAfterSync ); | 67 | myClone->setShowSummaryAfterSync( mShowSummaryAfterSync ); |
68 | myClone->setAskForPreferences( mAskForPreferences); | 68 | myClone->setAskForPreferences( mAskForPreferences); |
69 | myClone->setWriteBackExisting(mWriteBackExisting ); | 69 | myClone->setWriteBackExisting(mWriteBackExisting ); |
70 | myClone->setWriteBackFile( mWriteBackFile); | 70 | myClone->setWriteBackFile( mWriteBackFile); |
71 | myClone->setWriteBackFuture( mWriteBackFuture ); | 71 | myClone->setWriteBackFuture( mWriteBackFuture ); |
72 | myClone->setWriteBackFutureWeeks( mWriteBackFutureWeeks ); | 72 | myClone->setWriteBackFutureWeeks( mWriteBackFutureWeeks ); |
73 | myClone->setWriteBackPastWeeks( mWriteBackPastWeeks ); | 73 | myClone->setWriteBackPastWeeks( mWriteBackPastWeeks ); |
74 | myClone->setIncludeInRingSync( mIncludeInRingSync ); | 74 | myClone->setIncludeInRingSync( mIncludeInRingSync ); |
75 | myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); | 75 | myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); |
76 | myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); | 76 | myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); |
77 | myClone->setSyncPrefs( mSyncPrefs); | 77 | myClone->setSyncPrefs( mSyncPrefs); |
78 | myClone->setIsLocalFileSync( mIsLocalFileSync ); | 78 | myClone->setIsLocalFileSync( mIsLocalFileSync ); |
79 | myClone->setIsPhoneSync( mIsPhoneSync ); | 79 | myClone->setIsPhoneSync( mIsPhoneSync ); |
80 | myClone->setIsKapiFile( mIsKapiFile ); | 80 | myClone->setIsKapiFile( mIsKapiFile ); |
81 | myClone->setIsPiSync( mIsPiSync ); | 81 | myClone->setIsPiSync( mIsPiSync ); |
82 | myClone->setWriteContactToSIM( mWriteContactToSIM ); | 82 | myClone->setWriteContactToSIM( mWriteContactToSIM ); |
83 | myClone->setName( "noName" ); | 83 | myClone->setName( "noName" ); |
84 | myClone->setFilterInCal ( mFilterInCal ); | ||
85 | myClone->setFilterOutCal ( mFilterOutCal ); | ||
86 | myClone->setFilterInAB ( mFilterInAB ); | ||
87 | myClone->setFilterOutAB ( mFilterOutAB ); | ||
84 | //myClone->setIdentifier( "noID" ); | 88 | //myClone->setIdentifier( "noID" ); |
85 | return myClone; | 89 | return myClone; |
86 | } | 90 | } |
87 | 91 | ||
88 | 92 | ||
89 | void KSyncProfile::setDefault() | 93 | void KSyncProfile::setDefault() |
90 | { | 94 | { |
91 | mPreSyncCommand = i18n("command for downloading remote file to local device"); | 95 | mPreSyncCommand = i18n("command for downloading remote file to local device"); |
92 | mPostSyncCommand = i18n("command for uploading local temp file to remote device"); | 96 | mPostSyncCommand = i18n("command for uploading local temp file to remote device"); |
93 | mLocalTempFile = "/tmp/mycalendar.ics"; | 97 | mLocalTempFile = "/tmp/mycalendar.ics"; |
94 | mRemoteFileName = "/home/polo/kdepim/apps/korganizer/localfile.ics"; | 98 | mRemoteFileName = "/home/polo/kdepim/apps/korganizer/localfile.ics"; |
95 | mPreSyncCommandAB = i18n("command for downloading remote file to local device"); | 99 | mPreSyncCommandAB = i18n("command for downloading remote file to local device"); |
96 | mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); | 100 | mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); |
97 | mLocalTempFileAB = "/tmp/std.vcf"; | 101 | mLocalTempFileAB = "/tmp/std.vcf"; |
98 | mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf"; | 102 | mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf"; |
99 | mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); | 103 | mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); |
100 | mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); | 104 | mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); |
101 | mLocalTempFilePWM = "/tmp/passwords.pwm"; | 105 | mLocalTempFilePWM = "/tmp/passwords.pwm"; |
102 | mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; | 106 | mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; |
103 | 107 | ||
104 | mRemotePw = "abc"; | 108 | mRemotePw = "abc"; |
105 | mRemoteIP = "192.168.0.99"; | 109 | mRemoteIP = "192.168.0.99"; |
106 | mRemotePort = "9197"; | 110 | mRemotePort = "9197"; |
107 | 111 | ||
108 | mRemotePwAB = "abc"; | 112 | mRemotePwAB = "abc"; |
109 | mRemoteIPAB = "192.168.0.99"; | 113 | mRemoteIPAB = "192.168.0.99"; |
110 | mRemotePortAB = "9198"; | 114 | mRemotePortAB = "9198"; |
111 | 115 | ||
112 | mRemotePwPWM = "abc"; | 116 | mRemotePwPWM = "abc"; |
113 | mRemoteIPPWM = "192.168.0.99"; | 117 | mRemoteIPPWM = "192.168.0.99"; |
114 | mRemotePortPWM = "9199"; | 118 | mRemotePortPWM = "9199"; |
115 | 119 | ||
116 | mShowSummaryAfterSync = true; | 120 | mShowSummaryAfterSync = true; |
117 | mAskForPreferences = true; | 121 | mAskForPreferences = true; |
118 | mWriteBackExisting = false; | 122 | mWriteBackExisting = false; |
119 | mWriteBackFuture = false; | 123 | mWriteBackFuture = false; |
120 | mWriteBackFutureWeeks = 12; | 124 | mWriteBackFutureWeeks = 12; |
121 | mWriteBackPastWeeks = 2; | 125 | mWriteBackPastWeeks = 2; |
122 | mWriteBackFile = true; | 126 | mWriteBackFile = true; |
123 | mIncludeInRingSync = false; | 127 | mIncludeInRingSync = false; |
124 | mIncludeInRingSyncAB = false; | 128 | mIncludeInRingSyncAB = false; |
125 | mIncludeInRingSyncPWM = false; | 129 | mIncludeInRingSyncPWM = false; |
126 | mSyncPrefs = SYNC_PREF_ASK; | 130 | mSyncPrefs = SYNC_PREF_ASK; |
127 | mIsLocalFileSync = true; | 131 | mIsLocalFileSync = true; |
128 | mName = "noName"; | 132 | mName = "noName"; |
129 | mIsPhoneSync = false; | 133 | mIsPhoneSync = false; |
130 | mIsPiSync = false; | 134 | mIsPiSync = false; |
131 | mIsKapiFile = false; | 135 | mIsKapiFile = false; |
132 | mWriteContactToSIM = false; | 136 | mWriteContactToSIM = false; |
133 | mPhoneDevice = "/dev/ircomm"; | 137 | mPhoneDevice = "/dev/ircomm"; |
134 | mPhoneConnection = "irda"; | 138 | mPhoneConnection = "irda"; |
135 | mPhoneModel = "6310i"; | 139 | mPhoneModel = "6310i"; |
140 | mFilterInCal = "no filter"; | ||
141 | mFilterOutCal = "no filter"; | ||
142 | mFilterInAB = "no filter"; | ||
143 | mFilterOutAB = "no filter"; | ||
136 | } | 144 | } |
137 | void KSyncProfile::readConfig(KConfig *config ) | 145 | void KSyncProfile::readConfig(KConfig *config ) |
138 | { | 146 | { |
139 | if (config) | 147 | if (config) |
140 | { | 148 | { |
141 | 149 | ||
142 | config->setGroup( mName ); | 150 | config->setGroup( mName ); |
143 | 151 | ||
144 | mName = config->readEntry( "Name", mName ); | 152 | mName = config->readEntry( "Name", mName ); |
145 | 153 | ||
146 | mRemotePw = config->readEntry( "RemotePw",mRemotePw ); | 154 | mRemotePw = config->readEntry( "RemotePw",mRemotePw ); |
147 | mRemoteIP = config->readEntry( "RemoteIP",mRemoteIP ); | 155 | mRemoteIP = config->readEntry( "RemoteIP",mRemoteIP ); |
148 | mRemotePort = config->readEntry( "RemotePort", mRemotePort ); | 156 | mRemotePort = config->readEntry( "RemotePort", mRemotePort ); |
149 | mRemotePwAB = config->readEntry( "RemotePwAB", mRemotePwAB ); | 157 | mRemotePwAB = config->readEntry( "RemotePwAB", mRemotePwAB ); |
150 | mRemoteIPAB = config->readEntry( "RemoteIPAB", mRemoteIPAB ); | 158 | mRemoteIPAB = config->readEntry( "RemoteIPAB", mRemoteIPAB ); |
151 | mRemotePortAB = config->readEntry( "RemotePortAB", mRemotePortAB ); | 159 | mRemotePortAB = config->readEntry( "RemotePortAB", mRemotePortAB ); |
152 | mRemotePwPWM = config->readEntry( "RemotePwPWM", mRemotePwPWM ); | 160 | mRemotePwPWM = config->readEntry( "RemotePwPWM", mRemotePwPWM ); |
153 | mRemoteIPPWM = config->readEntry( "RemoteIPPWM", mRemoteIPPWM ); | 161 | mRemoteIPPWM = config->readEntry( "RemoteIPPWM", mRemoteIPPWM ); |
154 | mRemotePortPWM = config->readEntry( "RemotePortPWM", mRemotePortPWM ); | 162 | mRemotePortPWM = config->readEntry( "RemotePortPWM", mRemotePortPWM ); |
155 | 163 | ||
156 | mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand ); | 164 | mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand ); |
157 | mPostSyncCommand = config->readEntry( "PostSyncCommand", mPostSyncCommand ); | 165 | mPostSyncCommand = config->readEntry( "PostSyncCommand", mPostSyncCommand ); |
158 | mLocalTempFile = config->readEntry( "LocalTempFile", mLocalTempFile ); | 166 | mLocalTempFile = config->readEntry( "LocalTempFile", mLocalTempFile ); |
159 | mRemoteFileName = config->readEntry( "RemoteFileName", mRemoteFileName ); | 167 | mRemoteFileName = config->readEntry( "RemoteFileName", mRemoteFileName ); |
160 | 168 | ||
161 | mPreSyncCommandAB = config->readEntry( "PreSyncCommandAB",mPreSyncCommandAB ); | 169 | mPreSyncCommandAB = config->readEntry( "PreSyncCommandAB",mPreSyncCommandAB ); |
162 | mPostSyncCommandAB = config->readEntry( "PostSyncCommandAB", mPostSyncCommandAB ); | 170 | mPostSyncCommandAB = config->readEntry( "PostSyncCommandAB", mPostSyncCommandAB ); |
163 | mLocalTempFileAB = config->readEntry( "LocalTempFileAB", mLocalTempFileAB ); | 171 | mLocalTempFileAB = config->readEntry( "LocalTempFileAB", mLocalTempFileAB ); |
164 | mRemoteFileNameAB = config->readEntry( "RemoteFileNameAB", mRemoteFileNameAB ); | 172 | mRemoteFileNameAB = config->readEntry( "RemoteFileNameAB", mRemoteFileNameAB ); |
165 | 173 | ||
166 | mPreSyncCommandPWM = config->readEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); | 174 | mPreSyncCommandPWM = config->readEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); |
167 | mPostSyncCommandPWM = config->readEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); | 175 | mPostSyncCommandPWM = config->readEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); |
168 | mLocalTempFilePWM = config->readEntry( "LocalTempFilePWM", mLocalTempFilePWM ); | 176 | mLocalTempFilePWM = config->readEntry( "LocalTempFilePWM", mLocalTempFilePWM ); |
169 | mRemoteFileNamePWM = config->readEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); | 177 | mRemoteFileNamePWM = config->readEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); |
170 | 178 | ||
171 | mPhoneDevice = config->readEntry( "PhoneDevice", mPhoneDevice ); | 179 | mPhoneDevice = config->readEntry( "PhoneDevice", mPhoneDevice ); |
172 | mPhoneConnection = config->readEntry( "PhoneConnection", mPhoneConnection ); | 180 | mPhoneConnection = config->readEntry( "PhoneConnection", mPhoneConnection ); |
173 | mPhoneModel = config->readEntry( "PhoneModel", mPhoneModel ); | 181 | mPhoneModel = config->readEntry( "PhoneModel", mPhoneModel ); |
174 | 182 | ||
175 | mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync ); | 183 | mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync ); |
176 | mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); | 184 | mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); |
177 | mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); | 185 | mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); |
178 | mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); | 186 | mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); |
179 | mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences ); | 187 | mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences ); |
180 | mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting ); | 188 | mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting ); |
181 | mWriteBackFuture = config->readBoolEntry( "WriteBackFuture",mWriteBackFuture ); | 189 | mWriteBackFuture = config->readBoolEntry( "WriteBackFuture",mWriteBackFuture ); |
182 | mWriteBackFile = config->readBoolEntry( "WriteBackFile",mWriteBackFile ); | 190 | mWriteBackFile = config->readBoolEntry( "WriteBackFile",mWriteBackFile ); |
183 | mWriteContactToSIM = config->readBoolEntry( "WriteContactToSIM",mWriteContactToSIM ); | 191 | mWriteContactToSIM = config->readBoolEntry( "WriteContactToSIM",mWriteContactToSIM ); |
184 | mSyncPrefs = config->readNumEntry( "SyncPrefs", mSyncPrefs ); | 192 | mSyncPrefs = config->readNumEntry( "SyncPrefs", mSyncPrefs ); |
185 | mWriteBackFutureWeeks = config->readNumEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks ); | 193 | mWriteBackFutureWeeks = config->readNumEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks ); |
186 | mWriteBackPastWeeks = config->readNumEntry( "WriteBackPastWeeks", mWriteBackPastWeeks ); | 194 | mWriteBackPastWeeks = config->readNumEntry( "WriteBackPastWeeks", mWriteBackPastWeeks ); |
187 | mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync ); | 195 | mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync ); |
188 | mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync ); | 196 | mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync ); |
189 | mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync ); | 197 | mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync ); |
190 | mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile ); | 198 | mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile ); |
199 | |||
200 | mFilterInCal = config->readEntry( "FilterInCal", mFilterInCal ); | ||
201 | mFilterOutCal = config->readEntry( "FilterOutCal", mFilterOutCal ); | ||
202 | mFilterInAB = config->readEntry( "FilterInAB", mFilterInAB ); | ||
203 | mFilterOutAB = config->readEntry( "FilterOutAB", mFilterOutAB ); | ||
204 | |||
191 | } | 205 | } |
192 | else | 206 | else |
193 | { | 207 | { |
194 | setDefault(); | 208 | setDefault(); |
195 | } | 209 | } |
196 | } | 210 | } |
197 | 211 | ||
198 | void KSyncProfile::deleteConfig(KConfig *config ) | 212 | void KSyncProfile::deleteConfig(KConfig *config ) |
199 | { | 213 | { |
200 | config->deleteGroup( mName ); | 214 | config->deleteGroup( mName ); |
201 | } | 215 | } |
202 | 216 | ||
203 | void KSyncProfile::writeConfig( KConfig * config ) | 217 | void KSyncProfile::writeConfig( KConfig * config ) |
204 | { | 218 | { |
205 | config->setGroup(mName); | 219 | config->setGroup(mName); |
206 | 220 | ||
207 | config->writeEntry( "RemotePw", mRemotePw); | 221 | config->writeEntry( "RemotePw", mRemotePw); |
208 | config->writeEntry( "RemoteIP", mRemoteIP); | 222 | config->writeEntry( "RemoteIP", mRemoteIP); |
209 | config->writeEntry( "RemotePort", mRemotePort); | 223 | config->writeEntry( "RemotePort", mRemotePort); |
210 | 224 | ||
211 | config->writeEntry( "RemotePwAB", mRemotePwAB); | 225 | config->writeEntry( "RemotePwAB", mRemotePwAB); |
212 | config->writeEntry( "RemoteIPAB", mRemoteIPAB); | 226 | config->writeEntry( "RemoteIPAB", mRemoteIPAB); |
213 | config->writeEntry( "RemotePortAB", mRemotePortAB); | 227 | config->writeEntry( "RemotePortAB", mRemotePortAB); |
214 | 228 | ||
215 | config->writeEntry( "RemotePwPWM", mRemotePwPWM); | 229 | config->writeEntry( "RemotePwPWM", mRemotePwPWM); |
216 | config->writeEntry( "RemoteIPPWM", mRemoteIPPWM); | 230 | config->writeEntry( "RemoteIPPWM", mRemoteIPPWM); |
217 | config->writeEntry( "RemotePortPWM", mRemotePortPWM); | 231 | config->writeEntry( "RemotePortPWM", mRemotePortPWM); |
218 | 232 | ||
219 | config->writeEntry( "Name", mName ); | 233 | config->writeEntry( "Name", mName ); |
220 | config->writeEntry( "PreSyncCommand",mPreSyncCommand ); | 234 | config->writeEntry( "PreSyncCommand",mPreSyncCommand ); |
221 | config->writeEntry( "PostSyncCommand", mPostSyncCommand ); | 235 | config->writeEntry( "PostSyncCommand", mPostSyncCommand ); |
222 | config->writeEntry( "LocalTempFile", mLocalTempFile ); | 236 | config->writeEntry( "LocalTempFile", mLocalTempFile ); |
223 | config->writeEntry( "RemoteFileName", mRemoteFileName ); | 237 | config->writeEntry( "RemoteFileName", mRemoteFileName ); |
224 | 238 | ||
225 | config->writeEntry( "PreSyncCommandAB",mPreSyncCommandAB ); | 239 | config->writeEntry( "PreSyncCommandAB",mPreSyncCommandAB ); |
226 | config->writeEntry( "PostSyncCommandAB", mPostSyncCommandAB ); | 240 | config->writeEntry( "PostSyncCommandAB", mPostSyncCommandAB ); |
227 | config->writeEntry( "LocalTempFileAB", mLocalTempFileAB ); | 241 | config->writeEntry( "LocalTempFileAB", mLocalTempFileAB ); |
228 | config->writeEntry( "RemoteFileNameAB", mRemoteFileNameAB ); | 242 | config->writeEntry( "RemoteFileNameAB", mRemoteFileNameAB ); |
229 | 243 | ||
230 | config->writeEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); | 244 | config->writeEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); |
231 | config->writeEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); | 245 | config->writeEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); |
232 | config->writeEntry( "LocalTempFilePWM", mLocalTempFilePWM ); | 246 | config->writeEntry( "LocalTempFilePWM", mLocalTempFilePWM ); |
233 | config->writeEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); | 247 | config->writeEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); |
234 | 248 | ||
235 | config->writeEntry( "PhoneDevice", mPhoneDevice ); | 249 | config->writeEntry( "PhoneDevice", mPhoneDevice ); |
236 | config->writeEntry( "PhoneConnection", mPhoneConnection ); | 250 | config->writeEntry( "PhoneConnection", mPhoneConnection ); |
237 | config->writeEntry( "PhoneModel", mPhoneModel ); | 251 | config->writeEntry( "PhoneModel", mPhoneModel ); |
238 | 252 | ||
239 | config->writeEntry( "IncludeInRingSync",mIncludeInRingSync ); | 253 | config->writeEntry( "IncludeInRingSync",mIncludeInRingSync ); |
240 | config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); | 254 | config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); |
241 | config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); | 255 | config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); |
242 | config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); | 256 | config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); |
243 | config->writeEntry( "AskForPreferences",mAskForPreferences ); | 257 | config->writeEntry( "AskForPreferences",mAskForPreferences ); |
244 | config->writeEntry( "WriteBackExisting",mWriteBackExisting ); | 258 | config->writeEntry( "WriteBackExisting",mWriteBackExisting ); |
245 | config->writeEntry( "WriteBackFuture",mWriteBackFuture ); | 259 | config->writeEntry( "WriteBackFuture",mWriteBackFuture ); |
246 | config->writeEntry( "WriteBackFile",mWriteBackFile ); | 260 | config->writeEntry( "WriteBackFile",mWriteBackFile ); |
247 | config->writeEntry( "WriteContactToSIM",mWriteContactToSIM ); | 261 | config->writeEntry( "WriteContactToSIM",mWriteContactToSIM ); |
248 | config->writeEntry( "SyncPrefs", mSyncPrefs ); | 262 | config->writeEntry( "SyncPrefs", mSyncPrefs ); |
249 | config->writeEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks); | 263 | config->writeEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks); |
250 | config->writeEntry( "WriteBackPastWeeks", mWriteBackPastWeeks); | 264 | config->writeEntry( "WriteBackPastWeeks", mWriteBackPastWeeks); |
251 | config->writeEntry( "IsLocalFileSync", mIsLocalFileSync ); | 265 | config->writeEntry( "IsLocalFileSync", mIsLocalFileSync ); |
252 | config->writeEntry( "IsPhoneSync", mIsPhoneSync ); | 266 | config->writeEntry( "IsPhoneSync", mIsPhoneSync ); |
253 | config->writeEntry( "IsPiSync", mIsPiSync ); | 267 | config->writeEntry( "IsPiSync", mIsPiSync ); |
254 | config->writeEntry( "IsKapiFile", mIsKapiFile ); | 268 | config->writeEntry( "IsKapiFile", mIsKapiFile ); |
269 | config->writeEntry( "FilterInCal", mFilterInCal ); | ||
270 | config->writeEntry( "FilterOutCal", mFilterOutCal ); | ||
271 | config->writeEntry( "FilterInAB", mFilterInAB ); | ||
272 | config->writeEntry( "FilterOutAB", mFilterOutAB ); | ||
273 | |||
255 | } | 274 | } |
256 | 275 | ||