-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 | |||
@@ -9,244 +9,248 @@ | |||
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->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() |
89 | { | 90 | { |
90 | mPreSyncCommand = i18n("command for downloading remote file to local device"); | 91 | mPreSyncCommand = i18n("command for downloading remote file to local device"); |
91 | mPostSyncCommand = i18n("command for uploading local temp file to remote device"); | 92 | mPostSyncCommand = i18n("command for uploading local temp file to remote device"); |
92 | mLocalTempFile = "/tmp/mycalendar.ics"; | 93 | mLocalTempFile = "/tmp/mycalendar.ics"; |
93 | mRemoteFileName = "/home/polo/kdepim/apps/korganizer/localfile.ics"; | 94 | mRemoteFileName = "/home/polo/kdepim/apps/korganizer/localfile.ics"; |
94 | mPreSyncCommandAB = i18n("command for downloading remote file to local device"); | 95 | mPreSyncCommandAB = i18n("command for downloading remote file to local device"); |
95 | mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); | 96 | mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); |
96 | mLocalTempFileAB = "/tmp/std.vcf"; | 97 | mLocalTempFileAB = "/tmp/std.vcf"; |
97 | mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf"; | 98 | mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf"; |
98 | mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); | 99 | mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); |
99 | mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); | 100 | mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); |
100 | mLocalTempFilePWM = "/tmp/passwords.pwm"; | 101 | mLocalTempFilePWM = "/tmp/passwords.pwm"; |
101 | mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; | 102 | mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; |
102 | 103 | ||
103 | mRemotePw = "abc"; | 104 | mRemotePw = "abc"; |
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 ) |
136 | { | 138 | { |
137 | if (config) | 139 | if (config) |
138 | { | 140 | { |
139 | 141 | ||
140 | config->setGroup( mName ); | 142 | config->setGroup( mName ); |
141 | 143 | ||
142 | mName = config->readEntry( "Name", mName ); | 144 | mName = config->readEntry( "Name", mName ); |
143 | 145 | ||
144 | mRemotePw = config->readEntry( "RemotePw",mRemotePw ); | 146 | mRemotePw = config->readEntry( "RemotePw",mRemotePw ); |
145 | mRemoteIP = config->readEntry( "RemoteIP",mRemoteIP ); | 147 | mRemoteIP = config->readEntry( "RemoteIP",mRemoteIP ); |
146 | mRemotePort = config->readEntry( "RemotePort", mRemotePort ); | 148 | mRemotePort = config->readEntry( "RemotePort", mRemotePort ); |
147 | mRemotePwAB = config->readEntry( "RemotePwAB", mRemotePwAB ); | 149 | mRemotePwAB = config->readEntry( "RemotePwAB", mRemotePwAB ); |
148 | mRemoteIPAB = config->readEntry( "RemoteIPAB", mRemoteIPAB ); | 150 | mRemoteIPAB = config->readEntry( "RemoteIPAB", mRemoteIPAB ); |
149 | mRemotePortAB = config->readEntry( "RemotePortAB", mRemotePortAB ); | 151 | mRemotePortAB = config->readEntry( "RemotePortAB", mRemotePortAB ); |
150 | mRemotePwPWM = config->readEntry( "RemotePwPWM", mRemotePwPWM ); | 152 | mRemotePwPWM = config->readEntry( "RemotePwPWM", mRemotePwPWM ); |
151 | mRemoteIPPWM = config->readEntry( "RemoteIPPWM", mRemoteIPPWM ); | 153 | mRemoteIPPWM = config->readEntry( "RemoteIPPWM", mRemoteIPPWM ); |
152 | mRemotePortPWM = config->readEntry( "RemotePortPWM", mRemotePortPWM ); | 154 | mRemotePortPWM = config->readEntry( "RemotePortPWM", mRemotePortPWM ); |
153 | 155 | ||
154 | mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand ); | 156 | mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand ); |
155 | mPostSyncCommand = config->readEntry( "PostSyncCommand", mPostSyncCommand ); | 157 | mPostSyncCommand = config->readEntry( "PostSyncCommand", mPostSyncCommand ); |
156 | mLocalTempFile = config->readEntry( "LocalTempFile", mLocalTempFile ); | 158 | mLocalTempFile = config->readEntry( "LocalTempFile", mLocalTempFile ); |
157 | mRemoteFileName = config->readEntry( "RemoteFileName", mRemoteFileName ); | 159 | mRemoteFileName = config->readEntry( "RemoteFileName", mRemoteFileName ); |
158 | 160 | ||
159 | mPreSyncCommandAB = config->readEntry( "PreSyncCommandAB",mPreSyncCommandAB ); | 161 | mPreSyncCommandAB = config->readEntry( "PreSyncCommandAB",mPreSyncCommandAB ); |
160 | mPostSyncCommandAB = config->readEntry( "PostSyncCommandAB", mPostSyncCommandAB ); | 162 | mPostSyncCommandAB = config->readEntry( "PostSyncCommandAB", mPostSyncCommandAB ); |
161 | mLocalTempFileAB = config->readEntry( "LocalTempFileAB", mLocalTempFileAB ); | 163 | mLocalTempFileAB = config->readEntry( "LocalTempFileAB", mLocalTempFileAB ); |
162 | mRemoteFileNameAB = config->readEntry( "RemoteFileNameAB", mRemoteFileNameAB ); | 164 | mRemoteFileNameAB = config->readEntry( "RemoteFileNameAB", mRemoteFileNameAB ); |
163 | 165 | ||
164 | mPreSyncCommandPWM = config->readEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); | 166 | mPreSyncCommandPWM = config->readEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); |
165 | mPostSyncCommandPWM = config->readEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); | 167 | mPostSyncCommandPWM = config->readEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); |
166 | mLocalTempFilePWM = config->readEntry( "LocalTempFilePWM", mLocalTempFilePWM ); | 168 | mLocalTempFilePWM = config->readEntry( "LocalTempFilePWM", mLocalTempFilePWM ); |
167 | mRemoteFileNamePWM = config->readEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); | 169 | mRemoteFileNamePWM = config->readEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); |
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 | ||
200 | void KSyncProfile::writeConfig( KConfig * config ) | 203 | void KSyncProfile::writeConfig( KConfig * config ) |
201 | { | 204 | { |
202 | config->setGroup(mName); | 205 | config->setGroup(mName); |
203 | 206 | ||
204 | config->writeEntry( "RemotePw", mRemotePw); | 207 | config->writeEntry( "RemotePw", mRemotePw); |
205 | config->writeEntry( "RemoteIP", mRemoteIP); | 208 | config->writeEntry( "RemoteIP", mRemoteIP); |
206 | config->writeEntry( "RemotePort", mRemotePort); | 209 | config->writeEntry( "RemotePort", mRemotePort); |
207 | 210 | ||
208 | config->writeEntry( "RemotePwAB", mRemotePwAB); | 211 | config->writeEntry( "RemotePwAB", mRemotePwAB); |
209 | config->writeEntry( "RemoteIPAB", mRemoteIPAB); | 212 | config->writeEntry( "RemoteIPAB", mRemoteIPAB); |
210 | config->writeEntry( "RemotePortAB", mRemotePortAB); | 213 | config->writeEntry( "RemotePortAB", mRemotePortAB); |
211 | 214 | ||
212 | config->writeEntry( "RemotePwPWM", mRemotePwPWM); | 215 | config->writeEntry( "RemotePwPWM", mRemotePwPWM); |
213 | config->writeEntry( "RemoteIPPWM", mRemoteIPPWM); | 216 | config->writeEntry( "RemoteIPPWM", mRemoteIPPWM); |
214 | config->writeEntry( "RemotePortPWM", mRemotePortPWM); | 217 | config->writeEntry( "RemotePortPWM", mRemotePortPWM); |
215 | 218 | ||
216 | config->writeEntry( "Name", mName ); | 219 | config->writeEntry( "Name", mName ); |
217 | config->writeEntry( "PreSyncCommand",mPreSyncCommand ); | 220 | config->writeEntry( "PreSyncCommand",mPreSyncCommand ); |
218 | config->writeEntry( "PostSyncCommand", mPostSyncCommand ); | 221 | config->writeEntry( "PostSyncCommand", mPostSyncCommand ); |
219 | config->writeEntry( "LocalTempFile", mLocalTempFile ); | 222 | config->writeEntry( "LocalTempFile", mLocalTempFile ); |
220 | config->writeEntry( "RemoteFileName", mRemoteFileName ); | 223 | config->writeEntry( "RemoteFileName", mRemoteFileName ); |
221 | 224 | ||
222 | config->writeEntry( "PreSyncCommandAB",mPreSyncCommandAB ); | 225 | config->writeEntry( "PreSyncCommandAB",mPreSyncCommandAB ); |
223 | config->writeEntry( "PostSyncCommandAB", mPostSyncCommandAB ); | 226 | config->writeEntry( "PostSyncCommandAB", mPostSyncCommandAB ); |
224 | config->writeEntry( "LocalTempFileAB", mLocalTempFileAB ); | 227 | config->writeEntry( "LocalTempFileAB", mLocalTempFileAB ); |
225 | config->writeEntry( "RemoteFileNameAB", mRemoteFileNameAB ); | 228 | config->writeEntry( "RemoteFileNameAB", mRemoteFileNameAB ); |
226 | 229 | ||
227 | config->writeEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); | 230 | config->writeEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); |
228 | config->writeEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); | 231 | config->writeEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); |
229 | config->writeEntry( "LocalTempFilePWM", mLocalTempFilePWM ); | 232 | config->writeEntry( "LocalTempFilePWM", mLocalTempFilePWM ); |
230 | config->writeEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); | 233 | config->writeEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); |
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 | ||