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 | |||
@@ -57,32 +57,33 @@ KSyncProfile* KSyncProfile::clone() | |||
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->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 ); |
81 | myClone->setWriteContactToSIM( mWriteContactToSIM ); | 82 | myClone->setWriteContactToSIM( mWriteContactToSIM ); |
82 | myClone->setName( "noName" ); | 83 | myClone->setName( "noName" ); |
83 | //myClone->setIdentifier( "noID" ); | 84 | //myClone->setIdentifier( "noID" ); |
84 | return myClone; | 85 | return myClone; |
85 | } | 86 | } |
86 | 87 | ||
87 | 88 | ||
88 | void KSyncProfile::setDefault() | 89 | void KSyncProfile::setDefault() |
@@ -104,32 +105,33 @@ void KSyncProfile::setDefault() | |||
104 | mRemoteIP = "192.168.0.99"; | 105 | mRemoteIP = "192.168.0.99"; |
105 | mRemotePort = "9197"; | 106 | mRemotePort = "9197"; |
106 | 107 | ||
107 | mRemotePwAB = "abc"; | 108 | mRemotePwAB = "abc"; |
108 | mRemoteIPAB = "192.168.0.99"; | 109 | mRemoteIPAB = "192.168.0.99"; |
109 | mRemotePortAB = "9198"; | 110 | mRemotePortAB = "9198"; |
110 | 111 | ||
111 | mRemotePwPWM = "abc"; | 112 | mRemotePwPWM = "abc"; |
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; |
128 | mIsPiSync = false; | 130 | mIsPiSync = false; |
129 | mIsKapiFile = false; | 131 | mIsKapiFile = false; |
130 | mWriteContactToSIM = false; | 132 | mWriteContactToSIM = false; |
131 | mPhoneDevice = "/dev/ircomm"; | 133 | mPhoneDevice = "/dev/ircomm"; |
132 | mPhoneConnection = "irda"; | 134 | mPhoneConnection = "irda"; |
133 | mPhoneModel = "6310i"; | 135 | mPhoneModel = "6310i"; |
134 | } | 136 | } |
135 | void KSyncProfile::readConfig(KConfig *config ) | 137 | void KSyncProfile::readConfig(KConfig *config ) |
@@ -168,32 +170,33 @@ void KSyncProfile::readConfig(KConfig *config ) | |||
168 | 170 | ||
169 | mPhoneDevice = config->readEntry( "PhoneDevice", mPhoneDevice ); | 171 | mPhoneDevice = config->readEntry( "PhoneDevice", mPhoneDevice ); |
170 | mPhoneConnection = config->readEntry( "PhoneConnection", mPhoneConnection ); | 172 | mPhoneConnection = config->readEntry( "PhoneConnection", mPhoneConnection ); |
171 | mPhoneModel = config->readEntry( "PhoneModel", mPhoneModel ); | 173 | mPhoneModel = config->readEntry( "PhoneModel", mPhoneModel ); |
172 | 174 | ||
173 | mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync ); | 175 | mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync ); |
174 | mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); | 176 | mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); |
175 | mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); | 177 | mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); |
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(); |
192 | } | 195 | } |
193 | } | 196 | } |
194 | 197 | ||
195 | void KSyncProfile::deleteConfig(KConfig *config ) | 198 | void KSyncProfile::deleteConfig(KConfig *config ) |
196 | { | 199 | { |
197 | config->deleteGroup( mName ); | 200 | config->deleteGroup( mName ); |
198 | } | 201 | } |
199 | 202 | ||
@@ -231,22 +234,23 @@ void KSyncProfile::writeConfig( KConfig * config ) | |||
231 | 234 | ||
232 | config->writeEntry( "PhoneDevice", mPhoneDevice ); | 235 | config->writeEntry( "PhoneDevice", mPhoneDevice ); |
233 | config->writeEntry( "PhoneConnection", mPhoneConnection ); | 236 | config->writeEntry( "PhoneConnection", mPhoneConnection ); |
234 | config->writeEntry( "PhoneModel", mPhoneModel ); | 237 | config->writeEntry( "PhoneModel", mPhoneModel ); |
235 | 238 | ||
236 | config->writeEntry( "IncludeInRingSync",mIncludeInRingSync ); | 239 | config->writeEntry( "IncludeInRingSync",mIncludeInRingSync ); |
237 | config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); | 240 | config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); |
238 | config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); | 241 | config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); |
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 | ||