summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprofile.cpp
Unidiff
Diffstat (limited to 'libkdepim/ksyncprofile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprofile.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp
index 0d72fc9..d6620c8 100644
--- a/libkdepim/ksyncprofile.cpp
+++ b/libkdepim/ksyncprofile.cpp
@@ -119,32 +119,33 @@ void KSyncProfile::setDefault()
119 119
120 mShowSummaryAfterSync = true; 120 mShowSummaryAfterSync = true;
121 mAskForPreferences = true; 121 mAskForPreferences = true;
122 mWriteBackExisting = false; 122 mWriteBackExisting = false;
123 mWriteBackFuture = false; 123 mWriteBackFuture = false;
124 mWriteBackFutureWeeks = 12; 124 mWriteBackFutureWeeks = 12;
125 mWriteBackPastWeeks = 2; 125 mWriteBackPastWeeks = 2;
126 mWriteBackFile = true; 126 mWriteBackFile = true;
127 mIncludeInRingSync = false; 127 mIncludeInRingSync = false;
128 mIncludeInRingSyncAB = false; 128 mIncludeInRingSyncAB = false;
129 mIncludeInRingSyncPWM = false; 129 mIncludeInRingSyncPWM = false;
130 mSyncPrefs = SYNC_PREF_ASK; 130 mSyncPrefs = SYNC_PREF_ASK;
131 mIsLocalFileSync = true; 131 mIsLocalFileSync = true;
132 mName = "noName"; 132 mName = "noName";
133 mIsPhoneSync = false; 133 mIsPhoneSync = false;
134 mIsPiSync = false; 134 mIsPiSync = false;
135 mIsPiSyncSpec = false;
135 mIsKapiFile = false; 136 mIsKapiFile = false;
136 mWriteContactToSIM = false; 137 mWriteContactToSIM = false;
137 mPhoneDevice = "/dev/ircomm"; 138 mPhoneDevice = "/dev/ircomm";
138 mPhoneConnection = "irda"; 139 mPhoneConnection = "irda";
139 mPhoneModel = "6310i"; 140 mPhoneModel = "6310i";
140 mFilterInCal = "no filter"; 141 mFilterInCal = "no filter";
141 mFilterOutCal = "no filter"; 142 mFilterOutCal = "no filter";
142 mFilterInAB = "no filter"; 143 mFilterInAB = "no filter";
143 mFilterOutAB = "no filter"; 144 mFilterOutAB = "no filter";
144} 145}
145void KSyncProfile::readConfig(KConfig *config ) 146void KSyncProfile::readConfig(KConfig *config )
146{ 147{
147 if (config) 148 if (config)
148 { 149 {
149 150
150 config->setGroup( mName ); 151 config->setGroup( mName );
@@ -182,38 +183,41 @@ void KSyncProfile::readConfig(KConfig *config )
182 183
183 mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync ); 184 mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync );
184 mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); 185 mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB );
185 mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); 186 mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM );
186 mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); 187 mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync );
187 mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences ); 188 mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences );
188 mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting ); 189 mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting );
189 mWriteBackFuture = config->readBoolEntry( "WriteBackFuture",mWriteBackFuture ); 190 mWriteBackFuture = config->readBoolEntry( "WriteBackFuture",mWriteBackFuture );
190 mWriteBackFile = config->readBoolEntry( "WriteBackFile",mWriteBackFile ); 191 mWriteBackFile = config->readBoolEntry( "WriteBackFile",mWriteBackFile );
191 mWriteContactToSIM = config->readBoolEntry( "WriteContactToSIM",mWriteContactToSIM ); 192 mWriteContactToSIM = config->readBoolEntry( "WriteContactToSIM",mWriteContactToSIM );
192 mSyncPrefs = config->readNumEntry( "SyncPrefs", mSyncPrefs ); 193 mSyncPrefs = config->readNumEntry( "SyncPrefs", mSyncPrefs );
193 mWriteBackFutureWeeks = config->readNumEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks ); 194 mWriteBackFutureWeeks = config->readNumEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks );
194 mWriteBackPastWeeks = config->readNumEntry( "WriteBackPastWeeks", mWriteBackPastWeeks ); 195 mWriteBackPastWeeks = config->readNumEntry( "WriteBackPastWeeks", mWriteBackPastWeeks );
195 mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync ); 196 mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync );
196 mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync ); 197 mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync );
197 mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync ); 198 mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync );
199 mIsPiSyncSpec= config->readBoolEntry( "IsPiSyncSpec", mIsPiSyncSpec );
198 mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile ); 200 mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile );
199 201
200 mFilterInCal = config->readEntry( "FilterInCal", mFilterInCal ); 202 mFilterInCal = config->readEntry( "FilterInCal", mFilterInCal );
201 mFilterOutCal = config->readEntry( "FilterOutCal", mFilterOutCal ); 203 mFilterOutCal = config->readEntry( "FilterOutCal", mFilterOutCal );
202 mFilterInAB = config->readEntry( "FilterInAB", mFilterInAB ); 204 mFilterInAB = config->readEntry( "FilterInAB", mFilterInAB );
203 mFilterOutAB = config->readEntry( "FilterOutAB", mFilterOutAB ); 205 mFilterOutAB = config->readEntry( "FilterOutAB", mFilterOutAB );
206 mResSpecKopi = config->readEntry( "ResSpecKopi", mResSpecKopi );
207 mResSpecKapi = config->readEntry( "ResSpecKapi", mResSpecKapi );
204 208
205 } 209 }
206 else 210 else
207 { 211 {
208 setDefault(); 212 setDefault();
209 } 213 }
210} 214}
211 215
212void KSyncProfile::deleteConfig(KConfig *config ) 216void KSyncProfile::deleteConfig(KConfig *config )
213{ 217{
214 config->deleteGroup( mName ); 218 config->deleteGroup( mName );
215} 219}
216 220
217void KSyncProfile::writeConfig( KConfig * config ) 221void KSyncProfile::writeConfig( KConfig * config )
218{ 222{
219 config->setGroup(mName); 223 config->setGroup(mName);
@@ -252,24 +256,27 @@ void KSyncProfile::writeConfig( KConfig * config )
252 256
253 config->writeEntry( "IncludeInRingSync",mIncludeInRingSync ); 257 config->writeEntry( "IncludeInRingSync",mIncludeInRingSync );
254 config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); 258 config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB );
255 config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); 259 config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM );
256 config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); 260 config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync );
257 config->writeEntry( "AskForPreferences",mAskForPreferences ); 261 config->writeEntry( "AskForPreferences",mAskForPreferences );
258 config->writeEntry( "WriteBackExisting",mWriteBackExisting ); 262 config->writeEntry( "WriteBackExisting",mWriteBackExisting );
259 config->writeEntry( "WriteBackFuture",mWriteBackFuture ); 263 config->writeEntry( "WriteBackFuture",mWriteBackFuture );
260 config->writeEntry( "WriteBackFile",mWriteBackFile ); 264 config->writeEntry( "WriteBackFile",mWriteBackFile );
261 config->writeEntry( "WriteContactToSIM",mWriteContactToSIM ); 265 config->writeEntry( "WriteContactToSIM",mWriteContactToSIM );
262 config->writeEntry( "SyncPrefs", mSyncPrefs ); 266 config->writeEntry( "SyncPrefs", mSyncPrefs );
263 config->writeEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks); 267 config->writeEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks);
264 config->writeEntry( "WriteBackPastWeeks", mWriteBackPastWeeks); 268 config->writeEntry( "WriteBackPastWeeks", mWriteBackPastWeeks);
265 config->writeEntry( "IsLocalFileSync", mIsLocalFileSync ); 269 config->writeEntry( "IsLocalFileSync", mIsLocalFileSync );
266 config->writeEntry( "IsPhoneSync", mIsPhoneSync ); 270 config->writeEntry( "IsPhoneSync", mIsPhoneSync );
267 config->writeEntry( "IsPiSync", mIsPiSync ); 271 config->writeEntry( "IsPiSync", mIsPiSync );
272 config->writeEntry( "IsPiSyncSpec", mIsPiSyncSpec );
268 config->writeEntry( "IsKapiFile", mIsKapiFile ); 273 config->writeEntry( "IsKapiFile", mIsKapiFile );
269 config->writeEntry( "FilterInCal", mFilterInCal ); 274 config->writeEntry( "FilterInCal", mFilterInCal );
270 config->writeEntry( "FilterOutCal", mFilterOutCal ); 275 config->writeEntry( "FilterOutCal", mFilterOutCal );
271 config->writeEntry( "FilterInAB", mFilterInAB ); 276 config->writeEntry( "FilterInAB", mFilterInAB );
272 config->writeEntry( "FilterOutAB", mFilterOutAB ); 277 config->writeEntry( "FilterOutAB", mFilterOutAB );
273 278
279 config->writeEntry( "ResSpecKopi", mResSpecKopi );
280 config->writeEntry( "ResSpecKapi", mResSpecKapi );
274} 281}
275 282