author | zautrix <zautrix> | 2004-10-13 03:05:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-13 03:05:35 (UTC) |
commit | 8f852fddc2dc5b63511d6ad1c85a1e74141969ff (patch) (unidiff) | |
tree | 123c7e845e1520a4dcd50dd2361252cc6ab7a76a /libkdepim/ksyncprofile.cpp | |
parent | e7833b80c28e38bfe6316ee5fce150635cdebe03 (diff) | |
download | kdepimpi-8f852fddc2dc5b63511d6ad1c85a1e74141969ff.zip kdepimpi-8f852fddc2dc5b63511d6ad1c85a1e74141969ff.tar.gz kdepimpi-8f852fddc2dc5b63511d6ad1c85a1e74141969ff.tar.bz2 |
fixed one syncing problem
-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 76dfe00..029b70b 100644 --- a/libkdepim/ksyncprofile.cpp +++ b/libkdepim/ksyncprofile.cpp | |||
@@ -71,16 +71,17 @@ KSyncProfile* KSyncProfile::clone() | |||
71 | myClone->setWriteBackFuture( mWriteBackFuture ); | 71 | myClone->setWriteBackFuture( mWriteBackFuture ); |
72 | myClone->setWriteBackFutureWeeks( mWriteBackFutureWeeks ); | 72 | myClone->setWriteBackFutureWeeks( mWriteBackFutureWeeks ); |
73 | myClone->setIncludeInRingSync( mIncludeInRingSync ); | 73 | myClone->setIncludeInRingSync( mIncludeInRingSync ); |
74 | myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); | 74 | myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); |
75 | myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); | 75 | myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); |
76 | myClone->setSyncPrefs( mSyncPrefs); | 76 | myClone->setSyncPrefs( mSyncPrefs); |
77 | myClone->setIsLocalFileSync( mIsLocalFileSync ); | 77 | myClone->setIsLocalFileSync( mIsLocalFileSync ); |
78 | myClone->setIsPhoneSync( mIsPhoneSync ); | 78 | myClone->setIsPhoneSync( mIsPhoneSync ); |
79 | myClone->setIsKapiFile( mIsKapiFile ); | ||
79 | myClone->setIsPiSync( mIsPiSync ); | 80 | myClone->setIsPiSync( mIsPiSync ); |
80 | myClone->setWriteContactToSIM( mWriteContactToSIM ); | 81 | myClone->setWriteContactToSIM( mWriteContactToSIM ); |
81 | myClone->setName( "noName" ); | 82 | myClone->setName( "noName" ); |
82 | //myClone->setIdentifier( "noID" ); | 83 | //myClone->setIdentifier( "noID" ); |
83 | return myClone; | 84 | return myClone; |
84 | } | 85 | } |
85 | 86 | ||
86 | 87 | ||
@@ -120,16 +121,17 @@ void KSyncProfile::setDefault() | |||
120 | mIncludeInRingSync = false; | 121 | mIncludeInRingSync = false; |
121 | mIncludeInRingSyncAB = false; | 122 | mIncludeInRingSyncAB = false; |
122 | mIncludeInRingSyncPWM = false; | 123 | mIncludeInRingSyncPWM = false; |
123 | mSyncPrefs = SYNC_PREF_ASK; | 124 | mSyncPrefs = SYNC_PREF_ASK; |
124 | mIsLocalFileSync = true; | 125 | mIsLocalFileSync = true; |
125 | mName = "noName"; | 126 | mName = "noName"; |
126 | mIsPhoneSync = false; | 127 | mIsPhoneSync = false; |
127 | mIsPiSync = false; | 128 | mIsPiSync = false; |
129 | mIsKapiFile = false; | ||
128 | mWriteContactToSIM = false; | 130 | mWriteContactToSIM = false; |
129 | mPhoneDevice = "/dev/ircomm"; | 131 | mPhoneDevice = "/dev/ircomm"; |
130 | mPhoneConnection = "irda"; | 132 | mPhoneConnection = "irda"; |
131 | mPhoneModel = "6310i"; | 133 | mPhoneModel = "6310i"; |
132 | } | 134 | } |
133 | void KSyncProfile::readConfig(KConfig *config ) | 135 | void KSyncProfile::readConfig(KConfig *config ) |
134 | { | 136 | { |
135 | if (config) | 137 | if (config) |
@@ -177,16 +179,17 @@ void KSyncProfile::readConfig(KConfig *config ) | |||
177 | mWriteBackFuture = config->readBoolEntry( "WriteBackFuture",mWriteBackFuture ); | 179 | mWriteBackFuture = config->readBoolEntry( "WriteBackFuture",mWriteBackFuture ); |
178 | mWriteBackFile = config->readBoolEntry( "WriteBackFile",mWriteBackFile ); | 180 | mWriteBackFile = config->readBoolEntry( "WriteBackFile",mWriteBackFile ); |
179 | mWriteContactToSIM = config->readBoolEntry( "WriteContactToSIM",mWriteContactToSIM ); | 181 | mWriteContactToSIM = config->readBoolEntry( "WriteContactToSIM",mWriteContactToSIM ); |
180 | mSyncPrefs = config->readNumEntry( "SyncPrefs", mSyncPrefs ); | 182 | mSyncPrefs = config->readNumEntry( "SyncPrefs", mSyncPrefs ); |
181 | mWriteBackFutureWeeks = config->readNumEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks ); | 183 | mWriteBackFutureWeeks = config->readNumEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks ); |
182 | mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync ); | 184 | mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync ); |
183 | mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync ); | 185 | mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync ); |
184 | mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync ); | 186 | mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync ); |
187 | mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile ); | ||
185 | } | 188 | } |
186 | else | 189 | else |
187 | { | 190 | { |
188 | setDefault(); | 191 | setDefault(); |
189 | } | 192 | } |
190 | } | 193 | } |
191 | 194 | ||
192 | void KSyncProfile::deleteConfig(KConfig *config ) | 195 | void KSyncProfile::deleteConfig(KConfig *config ) |
@@ -239,10 +242,11 @@ void KSyncProfile::writeConfig( KConfig * config ) | |||
239 | config->writeEntry( "WriteBackFuture",mWriteBackFuture ); | 242 | config->writeEntry( "WriteBackFuture",mWriteBackFuture ); |
240 | config->writeEntry( "WriteBackFile",mWriteBackFile ); | 243 | config->writeEntry( "WriteBackFile",mWriteBackFile ); |
241 | config->writeEntry( "WriteContactToSIM",mWriteContactToSIM ); | 244 | config->writeEntry( "WriteContactToSIM",mWriteContactToSIM ); |
242 | config->writeEntry( "SyncPrefs", mSyncPrefs ); | 245 | config->writeEntry( "SyncPrefs", mSyncPrefs ); |
243 | config->writeEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks); | 246 | config->writeEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks); |
244 | config->writeEntry( "IsLocalFileSync", mIsLocalFileSync ); | 247 | config->writeEntry( "IsLocalFileSync", mIsLocalFileSync ); |
245 | config->writeEntry( "IsPhoneSync", mIsPhoneSync ); | 248 | config->writeEntry( "IsPhoneSync", mIsPhoneSync ); |
246 | config->writeEntry( "IsPiSync", mIsPiSync ); | 249 | config->writeEntry( "IsPiSync", mIsPiSync ); |
250 | config->writeEntry( "IsKapiFile", mIsKapiFile ); | ||
247 | } | 251 | } |
248 | 252 | ||