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 | |||
@@ -1,248 +1,252 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KDE-Pim/Pi. | 2 | This file is part of KDE-Pim/Pi. |
3 | Copyright (c) 2004 Lutz Rogowski <rogowski@kde.org> | 3 | Copyright (c) 2004 Lutz Rogowski <rogowski@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | // $Id$ | 21 | // $Id$ |
22 | 22 | ||
23 | #include <qcolor.h> | 23 | #include <qcolor.h> |
24 | 24 | ||
25 | #include <kconfig.h> | 25 | #include <kconfig.h> |
26 | #include <kstandarddirs.h> | 26 | #include <kstandarddirs.h> |
27 | #include <kglobal.h> | 27 | #include <kglobal.h> |
28 | #include <kdebug.h> | 28 | #include <kdebug.h> |
29 | 29 | ||
30 | #include "ksyncprofile.h" | 30 | #include "ksyncprofile.h" |
31 | 31 | ||
32 | 32 | ||
33 | KSyncProfile::KSyncProfile(): QObject () | 33 | KSyncProfile::KSyncProfile(): QObject () |
34 | { | 34 | { |
35 | setDefault(); | 35 | setDefault(); |
36 | } | 36 | } |
37 | KSyncProfile::~KSyncProfile() | 37 | KSyncProfile::~KSyncProfile() |
38 | { | 38 | { |
39 | 39 | ||
40 | } | 40 | } |
41 | 41 | ||
42 | 42 | ||
43 | KSyncProfile* KSyncProfile::clone() | 43 | KSyncProfile* KSyncProfile::clone() |
44 | { | 44 | { |
45 | KSyncProfile* myClone = new KSyncProfile(); | 45 | KSyncProfile* myClone = new KSyncProfile(); |
46 | myClone->setRemotePw(mRemotePw); | 46 | myClone->setRemotePw(mRemotePw); |
47 | myClone->setRemoteIP(mRemoteIP); | 47 | myClone->setRemoteIP(mRemoteIP); |
48 | myClone->setRemotePort(mRemotePort); | 48 | myClone->setRemotePort(mRemotePort); |
49 | myClone->setRemotePwAB(mRemotePwAB); | 49 | myClone->setRemotePwAB(mRemotePwAB); |
50 | myClone->setRemoteIPAB(mRemoteIPAB); | 50 | myClone->setRemoteIPAB(mRemoteIPAB); |
51 | myClone->setRemotePortAB(mRemotePortAB); | 51 | myClone->setRemotePortAB(mRemotePortAB); |
52 | myClone->setRemotePwPWM(mRemotePwPWM); | 52 | myClone->setRemotePwPWM(mRemotePwPWM); |
53 | myClone->setRemoteIPPWM(mRemoteIPPWM); | 53 | myClone->setRemoteIPPWM(mRemoteIPPWM); |
54 | myClone->setRemotePortPWM (mRemotePortPWM); | 54 | myClone->setRemotePortPWM (mRemotePortPWM); |
55 | myClone->setPreSyncCommand( mPreSyncCommand ); | 55 | myClone->setPreSyncCommand( mPreSyncCommand ); |
56 | myClone->setPostSyncCommand( mPostSyncCommand ); | 56 | myClone->setPostSyncCommand( mPostSyncCommand ); |
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->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"); |
95 | mLocalTempFileAB = "/tmp/std.vcf"; | 96 | mLocalTempFileAB = "/tmp/std.vcf"; |
96 | mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf"; | 97 | mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf"; |
97 | mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); | 98 | mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); |
98 | mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); | 99 | mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); |
99 | mLocalTempFilePWM = "/tmp/passwords.pwm"; | 100 | mLocalTempFilePWM = "/tmp/passwords.pwm"; |
100 | mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; | 101 | mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; |
101 | 102 | ||
102 | mRemotePw = "abc"; | 103 | mRemotePw = "abc"; |
103 | mRemoteIP = "192.168.0.99"; | 104 | mRemoteIP = "192.168.0.99"; |
104 | mRemotePort = "9197"; | 105 | mRemotePort = "9197"; |
105 | 106 | ||
106 | mRemotePwAB = "abc"; | 107 | mRemotePwAB = "abc"; |
107 | mRemoteIPAB = "192.168.0.99"; | 108 | mRemoteIPAB = "192.168.0.99"; |
108 | mRemotePortAB = "9198"; | 109 | mRemotePortAB = "9198"; |
109 | 110 | ||
110 | mRemotePwPWM = "abc"; | 111 | mRemotePwPWM = "abc"; |
111 | mRemoteIPPWM = "192.168.0.99"; | 112 | mRemoteIPPWM = "192.168.0.99"; |
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 ); |
144 | mRemotePort = config->readEntry( "RemotePort", mRemotePort ); | 146 | mRemotePort = config->readEntry( "RemotePort", mRemotePort ); |
145 | mRemotePwAB = config->readEntry( "RemotePwAB", mRemotePwAB ); | 147 | mRemotePwAB = config->readEntry( "RemotePwAB", mRemotePwAB ); |
146 | mRemoteIPAB = config->readEntry( "RemoteIPAB", mRemoteIPAB ); | 148 | mRemoteIPAB = config->readEntry( "RemoteIPAB", mRemoteIPAB ); |
147 | mRemotePortAB = config->readEntry( "RemotePortAB", mRemotePortAB ); | 149 | mRemotePortAB = config->readEntry( "RemotePortAB", mRemotePortAB ); |
148 | mRemotePwPWM = config->readEntry( "RemotePwPWM", mRemotePwPWM ); | 150 | mRemotePwPWM = config->readEntry( "RemotePwPWM", mRemotePwPWM ); |
149 | mRemoteIPPWM = config->readEntry( "RemoteIPPWM", mRemoteIPPWM ); | 151 | mRemoteIPPWM = config->readEntry( "RemoteIPPWM", mRemoteIPPWM ); |
150 | mRemotePortPWM = config->readEntry( "RemotePortPWM", mRemotePortPWM ); | 152 | mRemotePortPWM = config->readEntry( "RemotePortPWM", mRemotePortPWM ); |
151 | 153 | ||
152 | mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand ); | 154 | mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand ); |
153 | mPostSyncCommand = config->readEntry( "PostSyncCommand", mPostSyncCommand ); | 155 | mPostSyncCommand = config->readEntry( "PostSyncCommand", mPostSyncCommand ); |
154 | mLocalTempFile = config->readEntry( "LocalTempFile", mLocalTempFile ); | 156 | mLocalTempFile = config->readEntry( "LocalTempFile", mLocalTempFile ); |
155 | mRemoteFileName = config->readEntry( "RemoteFileName", mRemoteFileName ); | 157 | mRemoteFileName = config->readEntry( "RemoteFileName", mRemoteFileName ); |
156 | 158 | ||
157 | mPreSyncCommandAB = config->readEntry( "PreSyncCommandAB",mPreSyncCommandAB ); | 159 | mPreSyncCommandAB = config->readEntry( "PreSyncCommandAB",mPreSyncCommandAB ); |
158 | mPostSyncCommandAB = config->readEntry( "PostSyncCommandAB", mPostSyncCommandAB ); | 160 | mPostSyncCommandAB = config->readEntry( "PostSyncCommandAB", mPostSyncCommandAB ); |
159 | mLocalTempFileAB = config->readEntry( "LocalTempFileAB", mLocalTempFileAB ); | 161 | mLocalTempFileAB = config->readEntry( "LocalTempFileAB", mLocalTempFileAB ); |
160 | mRemoteFileNameAB = config->readEntry( "RemoteFileNameAB", mRemoteFileNameAB ); | 162 | mRemoteFileNameAB = config->readEntry( "RemoteFileNameAB", mRemoteFileNameAB ); |
161 | 163 | ||
162 | mPreSyncCommandPWM = config->readEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); | 164 | mPreSyncCommandPWM = config->readEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); |
163 | mPostSyncCommandPWM = config->readEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); | 165 | mPostSyncCommandPWM = config->readEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); |
164 | mLocalTempFilePWM = config->readEntry( "LocalTempFilePWM", mLocalTempFilePWM ); | 166 | mLocalTempFilePWM = config->readEntry( "LocalTempFilePWM", mLocalTempFilePWM ); |
165 | mRemoteFileNamePWM = config->readEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); | 167 | mRemoteFileNamePWM = config->readEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); |
166 | 168 | ||
167 | mPhoneDevice = config->readEntry( "PhoneDevice", mPhoneDevice ); | 169 | mPhoneDevice = config->readEntry( "PhoneDevice", mPhoneDevice ); |
168 | mPhoneConnection = config->readEntry( "PhoneConnection", mPhoneConnection ); | 170 | mPhoneConnection = config->readEntry( "PhoneConnection", mPhoneConnection ); |
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 | ||
201 | config->writeEntry( "RemotePw", mRemotePw); | 204 | config->writeEntry( "RemotePw", mRemotePw); |
202 | config->writeEntry( "RemoteIP", mRemoteIP); | 205 | config->writeEntry( "RemoteIP", mRemoteIP); |
203 | config->writeEntry( "RemotePort", mRemotePort); | 206 | config->writeEntry( "RemotePort", mRemotePort); |
204 | 207 | ||
205 | config->writeEntry( "RemotePwAB", mRemotePwAB); | 208 | config->writeEntry( "RemotePwAB", mRemotePwAB); |
206 | config->writeEntry( "RemoteIPAB", mRemoteIPAB); | 209 | config->writeEntry( "RemoteIPAB", mRemoteIPAB); |
207 | config->writeEntry( "RemotePortAB", mRemotePortAB); | 210 | config->writeEntry( "RemotePortAB", mRemotePortAB); |
208 | 211 | ||
209 | config->writeEntry( "RemotePwPWM", mRemotePwPWM); | 212 | config->writeEntry( "RemotePwPWM", mRemotePwPWM); |
210 | config->writeEntry( "RemoteIPPWM", mRemoteIPPWM); | 213 | config->writeEntry( "RemoteIPPWM", mRemoteIPPWM); |
211 | config->writeEntry( "RemotePortPWM", mRemotePortPWM); | 214 | config->writeEntry( "RemotePortPWM", mRemotePortPWM); |
212 | 215 | ||
213 | config->writeEntry( "Name", mName ); | 216 | config->writeEntry( "Name", mName ); |
214 | config->writeEntry( "PreSyncCommand",mPreSyncCommand ); | 217 | config->writeEntry( "PreSyncCommand",mPreSyncCommand ); |
215 | config->writeEntry( "PostSyncCommand", mPostSyncCommand ); | 218 | config->writeEntry( "PostSyncCommand", mPostSyncCommand ); |
216 | config->writeEntry( "LocalTempFile", mLocalTempFile ); | 219 | config->writeEntry( "LocalTempFile", mLocalTempFile ); |
217 | config->writeEntry( "RemoteFileName", mRemoteFileName ); | 220 | config->writeEntry( "RemoteFileName", mRemoteFileName ); |
218 | 221 | ||
219 | config->writeEntry( "PreSyncCommandAB",mPreSyncCommandAB ); | 222 | config->writeEntry( "PreSyncCommandAB",mPreSyncCommandAB ); |
220 | config->writeEntry( "PostSyncCommandAB", mPostSyncCommandAB ); | 223 | config->writeEntry( "PostSyncCommandAB", mPostSyncCommandAB ); |
221 | config->writeEntry( "LocalTempFileAB", mLocalTempFileAB ); | 224 | config->writeEntry( "LocalTempFileAB", mLocalTempFileAB ); |
222 | config->writeEntry( "RemoteFileNameAB", mRemoteFileNameAB ); | 225 | config->writeEntry( "RemoteFileNameAB", mRemoteFileNameAB ); |
223 | 226 | ||
224 | config->writeEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); | 227 | config->writeEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); |
225 | config->writeEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); | 228 | config->writeEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); |
226 | config->writeEntry( "LocalTempFilePWM", mLocalTempFilePWM ); | 229 | config->writeEntry( "LocalTempFilePWM", mLocalTempFilePWM ); |
227 | config->writeEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); | 230 | config->writeEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); |
228 | 231 | ||
229 | config->writeEntry( "PhoneDevice", mPhoneDevice ); | 232 | config->writeEntry( "PhoneDevice", mPhoneDevice ); |
230 | config->writeEntry( "PhoneConnection", mPhoneConnection ); | 233 | config->writeEntry( "PhoneConnection", mPhoneConnection ); |
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 | ||