author | zautrix <zautrix> | 2005-01-13 03:53:45 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-13 03:53:45 (UTC) |
commit | 7d00f1441b5e1270dcd447bfb7920dbd3a21503d (patch) (unidiff) | |
tree | 8eb3b053e8104914021eff6f39772024784fff64 /libkdepim/ksyncprofile.cpp | |
parent | 7a4a866cded40032766acb4fe8d02b6347b1d12e (diff) | |
download | kdepimpi-7d00f1441b5e1270dcd447bfb7920dbd3a21503d.zip kdepimpi-7d00f1441b5e1270dcd447bfb7920dbd3a21503d.tar.gz kdepimpi-7d00f1441b5e1270dcd447bfb7920dbd3a21503d.tar.bz2 |
sync dialog fixes
-rw-r--r-- | libkdepim/ksyncprofile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp index 029b70b..9f404cb 100644 --- a/libkdepim/ksyncprofile.cpp +++ b/libkdepim/ksyncprofile.cpp | |||
@@ -65,16 +65,17 @@ KSyncProfile* KSyncProfile::clone() | |||
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->setIncludeInRingSync( mIncludeInRingSync ); | 74 | myClone->setIncludeInRingSync( mIncludeInRingSync ); |
74 | myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); | 75 | myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); |
75 | myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); | 76 | myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); |
76 | myClone->setSyncPrefs( mSyncPrefs); | 77 | myClone->setSyncPrefs( mSyncPrefs); |
77 | myClone->setIsLocalFileSync( mIsLocalFileSync ); | 78 | myClone->setIsLocalFileSync( mIsLocalFileSync ); |
78 | myClone->setIsPhoneSync( mIsPhoneSync ); | 79 | myClone->setIsPhoneSync( mIsPhoneSync ); |
79 | myClone->setIsKapiFile( mIsKapiFile ); | 80 | myClone->setIsKapiFile( mIsKapiFile ); |
80 | myClone->setIsPiSync( mIsPiSync ); | 81 | myClone->setIsPiSync( mIsPiSync ); |
@@ -112,16 +113,17 @@ void KSyncProfile::setDefault() | |||
112 | mRemoteIPPWM = "192.168.0.99"; | 113 | mRemoteIPPWM = "192.168.0.99"; |
113 | mRemotePortPWM = "9199"; | 114 | mRemotePortPWM = "9199"; |
114 | 115 | ||
115 | mShowSummaryAfterSync = true; | 116 | mShowSummaryAfterSync = true; |
116 | mAskForPreferences = true; | 117 | mAskForPreferences = true; |
117 | mWriteBackExisting = false; | 118 | mWriteBackExisting = false; |
118 | mWriteBackFuture = false; | 119 | mWriteBackFuture = false; |
119 | mWriteBackFutureWeeks = 12; | 120 | mWriteBackFutureWeeks = 12; |
121 | mWriteBackPastWeeks = 2; | ||
120 | mWriteBackFile = true; | 122 | mWriteBackFile = true; |
121 | mIncludeInRingSync = false; | 123 | mIncludeInRingSync = false; |
122 | mIncludeInRingSyncAB = false; | 124 | mIncludeInRingSyncAB = false; |
123 | mIncludeInRingSyncPWM = false; | 125 | mIncludeInRingSyncPWM = false; |
124 | mSyncPrefs = SYNC_PREF_ASK; | 126 | mSyncPrefs = SYNC_PREF_ASK; |
125 | mIsLocalFileSync = true; | 127 | mIsLocalFileSync = true; |
126 | mName = "noName"; | 128 | mName = "noName"; |
127 | mIsPhoneSync = false; | 129 | mIsPhoneSync = false; |
@@ -176,16 +178,17 @@ void KSyncProfile::readConfig(KConfig *config ) | |||
176 | mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); | 178 | mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); |
177 | mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences ); | 179 | mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences ); |
178 | mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting ); | 180 | mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting ); |
179 | mWriteBackFuture = config->readBoolEntry( "WriteBackFuture",mWriteBackFuture ); | 181 | mWriteBackFuture = config->readBoolEntry( "WriteBackFuture",mWriteBackFuture ); |
180 | mWriteBackFile = config->readBoolEntry( "WriteBackFile",mWriteBackFile ); | 182 | mWriteBackFile = config->readBoolEntry( "WriteBackFile",mWriteBackFile ); |
181 | mWriteContactToSIM = config->readBoolEntry( "WriteContactToSIM",mWriteContactToSIM ); | 183 | mWriteContactToSIM = config->readBoolEntry( "WriteContactToSIM",mWriteContactToSIM ); |
182 | mSyncPrefs = config->readNumEntry( "SyncPrefs", mSyncPrefs ); | 184 | mSyncPrefs = config->readNumEntry( "SyncPrefs", mSyncPrefs ); |
183 | mWriteBackFutureWeeks = config->readNumEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks ); | 185 | mWriteBackFutureWeeks = config->readNumEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks ); |
186 | mWriteBackPastWeeks = config->readNumEntry( "WriteBackPastWeeks", mWriteBackPastWeeks ); | ||
184 | mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync ); | 187 | mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync ); |
185 | mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync ); | 188 | mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync ); |
186 | mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync ); | 189 | mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync ); |
187 | mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile ); | 190 | mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile ); |
188 | } | 191 | } |
189 | else | 192 | else |
190 | { | 193 | { |
191 | setDefault(); | 194 | setDefault(); |
@@ -239,14 +242,15 @@ void KSyncProfile::writeConfig( KConfig * config ) | |||
239 | config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); | 242 | config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); |
240 | config->writeEntry( "AskForPreferences",mAskForPreferences ); | 243 | config->writeEntry( "AskForPreferences",mAskForPreferences ); |
241 | config->writeEntry( "WriteBackExisting",mWriteBackExisting ); | 244 | config->writeEntry( "WriteBackExisting",mWriteBackExisting ); |
242 | config->writeEntry( "WriteBackFuture",mWriteBackFuture ); | 245 | config->writeEntry( "WriteBackFuture",mWriteBackFuture ); |
243 | config->writeEntry( "WriteBackFile",mWriteBackFile ); | 246 | config->writeEntry( "WriteBackFile",mWriteBackFile ); |
244 | config->writeEntry( "WriteContactToSIM",mWriteContactToSIM ); | 247 | config->writeEntry( "WriteContactToSIM",mWriteContactToSIM ); |
245 | config->writeEntry( "SyncPrefs", mSyncPrefs ); | 248 | config->writeEntry( "SyncPrefs", mSyncPrefs ); |
246 | config->writeEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks); | 249 | config->writeEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks); |
250 | config->writeEntry( "WriteBackPastWeeks", mWriteBackPastWeeks); | ||
247 | config->writeEntry( "IsLocalFileSync", mIsLocalFileSync ); | 251 | config->writeEntry( "IsLocalFileSync", mIsLocalFileSync ); |
248 | config->writeEntry( "IsPhoneSync", mIsPhoneSync ); | 252 | config->writeEntry( "IsPhoneSync", mIsPhoneSync ); |
249 | config->writeEntry( "IsPiSync", mIsPiSync ); | 253 | config->writeEntry( "IsPiSync", mIsPiSync ); |
250 | config->writeEntry( "IsKapiFile", mIsKapiFile ); | 254 | config->writeEntry( "IsKapiFile", mIsKapiFile ); |
251 | } | 255 | } |
252 | 256 | ||