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 | |||
@@ -63,32 +63,33 @@ KSyncProfile* KSyncProfile::clone() | |||
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->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 | ||
87 | void KSyncProfile::setDefault() | 88 | void KSyncProfile::setDefault() |
88 | { | 89 | { |
89 | mPreSyncCommand = i18n("command for downloading remote file to local device"); | 90 | mPreSyncCommand = i18n("command for downloading remote file to local device"); |
90 | mPostSyncCommand = i18n("command for uploading local temp file to remote device"); | 91 | mPostSyncCommand = i18n("command for uploading local temp file to remote device"); |
91 | mLocalTempFile = "/tmp/mycalendar.ics"; | 92 | mLocalTempFile = "/tmp/mycalendar.ics"; |
92 | mRemoteFileName = "/home/polo/kdepim/apps/korganizer/localfile.ics"; | 93 | mRemoteFileName = "/home/polo/kdepim/apps/korganizer/localfile.ics"; |
93 | mPreSyncCommandAB = i18n("command for downloading remote file to local device"); | 94 | mPreSyncCommandAB = i18n("command for downloading remote file to local device"); |
94 | mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); | 95 | mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); |
@@ -112,32 +113,33 @@ void KSyncProfile::setDefault() | |||
112 | mRemotePortPWM = "9199"; | 113 | mRemotePortPWM = "9199"; |
113 | 114 | ||
114 | mShowSummaryAfterSync = true; | 115 | mShowSummaryAfterSync = true; |
115 | mAskForPreferences = true; | 116 | mAskForPreferences = true; |
116 | mWriteBackExisting = false; | 117 | mWriteBackExisting = false; |
117 | mWriteBackFuture = false; | 118 | mWriteBackFuture = false; |
118 | mWriteBackFutureWeeks = 12; | 119 | mWriteBackFutureWeeks = 12; |
119 | mWriteBackFile = true; | 120 | mWriteBackFile = true; |
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) |
136 | { | 138 | { |
137 | 139 | ||
138 | config->setGroup( mName ); | 140 | config->setGroup( mName ); |
139 | 141 | ||
140 | mName = config->readEntry( "Name", mName ); | 142 | mName = config->readEntry( "Name", mName ); |
141 | 143 | ||
142 | mRemotePw = config->readEntry( "RemotePw",mRemotePw ); | 144 | mRemotePw = config->readEntry( "RemotePw",mRemotePw ); |
143 | mRemoteIP = config->readEntry( "RemoteIP",mRemoteIP ); | 145 | mRemoteIP = config->readEntry( "RemoteIP",mRemoteIP ); |
@@ -169,32 +171,33 @@ void KSyncProfile::readConfig(KConfig *config ) | |||
169 | mPhoneModel = config->readEntry( "PhoneModel", mPhoneModel ); | 171 | mPhoneModel = config->readEntry( "PhoneModel", mPhoneModel ); |
170 | 172 | ||
171 | mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync ); | 173 | mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync ); |
172 | mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); | 174 | mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); |
173 | mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); | 175 | mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); |
174 | mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); | 176 | mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); |
175 | mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences ); | 177 | mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences ); |
176 | mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting ); | 178 | mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting ); |
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 ) |
193 | { | 196 | { |
194 | config->deleteGroup( mName ); | 197 | config->deleteGroup( mName ); |
195 | } | 198 | } |
196 | 199 | ||
197 | void KSyncProfile::writeConfig( KConfig * config ) | 200 | void KSyncProfile::writeConfig( KConfig * config ) |
198 | { | 201 | { |
199 | config->setGroup(mName); | 202 | config->setGroup(mName); |
200 | 203 | ||
@@ -231,18 +234,19 @@ void KSyncProfile::writeConfig( KConfig * config ) | |||
231 | config->writeEntry( "PhoneModel", mPhoneModel ); | 234 | config->writeEntry( "PhoneModel", mPhoneModel ); |
232 | 235 | ||
233 | config->writeEntry( "IncludeInRingSync",mIncludeInRingSync ); | 236 | config->writeEntry( "IncludeInRingSync",mIncludeInRingSync ); |
234 | config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); | 237 | config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); |
235 | config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); | 238 | config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); |
236 | config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); | 239 | config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); |
237 | config->writeEntry( "AskForPreferences",mAskForPreferences ); | 240 | config->writeEntry( "AskForPreferences",mAskForPreferences ); |
238 | config->writeEntry( "WriteBackExisting",mWriteBackExisting ); | 241 | config->writeEntry( "WriteBackExisting",mWriteBackExisting ); |
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 | ||