summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprofile.cpp
authorzautrix <zautrix>2005-11-25 09:55:37 (UTC)
committer zautrix <zautrix>2005-11-25 09:55:37 (UTC)
commit90b62d1158d00f162a258541e24aaed4c967480b (patch) (unidiff)
tree96f76bc60fae40113101aa1f321ff869bbd7979b /libkdepim/ksyncprofile.cpp
parentd0de047797095f1862f4ff77b8dcd0d22643882d (diff)
downloadkdepimpi-90b62d1158d00f162a258541e24aaed4c967480b.zip
kdepimpi-90b62d1158d00f162a258541e24aaed4c967480b.tar.gz
kdepimpi-90b62d1158d00f162a258541e24aaed4c967480b.tar.bz2
sync
Diffstat (limited to 'libkdepim/ksyncprofile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprofile.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp
index 0d72fc9..d6620c8 100644
--- a/libkdepim/ksyncprofile.cpp
+++ b/libkdepim/ksyncprofile.cpp
@@ -1,275 +1,282 @@
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
33KSyncProfile::KSyncProfile(): QObject () 33KSyncProfile::KSyncProfile(): QObject ()
34{ 34{
35 setDefault(); 35 setDefault();
36} 36}
37KSyncProfile::~KSyncProfile() 37KSyncProfile::~KSyncProfile()
38{ 38{
39 39
40} 40}
41 41
42 42
43KSyncProfile* KSyncProfile::clone() 43KSyncProfile* 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->setWriteBackPastWeeks( mWriteBackPastWeeks );
74 myClone->setIncludeInRingSync( mIncludeInRingSync ); 74 myClone->setIncludeInRingSync( mIncludeInRingSync );
75 myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); 75 myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB );
76 myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); 76 myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM );
77 myClone->setSyncPrefs( mSyncPrefs); 77 myClone->setSyncPrefs( mSyncPrefs);
78 myClone->setIsLocalFileSync( mIsLocalFileSync ); 78 myClone->setIsLocalFileSync( mIsLocalFileSync );
79 myClone->setIsPhoneSync( mIsPhoneSync ); 79 myClone->setIsPhoneSync( mIsPhoneSync );
80 myClone->setIsKapiFile( mIsKapiFile ); 80 myClone->setIsKapiFile( mIsKapiFile );
81 myClone->setIsPiSync( mIsPiSync ); 81 myClone->setIsPiSync( mIsPiSync );
82 myClone->setWriteContactToSIM( mWriteContactToSIM ); 82 myClone->setWriteContactToSIM( mWriteContactToSIM );
83 myClone->setName( "noName" ); 83 myClone->setName( "noName" );
84 myClone->setFilterInCal ( mFilterInCal ); 84 myClone->setFilterInCal ( mFilterInCal );
85 myClone->setFilterOutCal ( mFilterOutCal ); 85 myClone->setFilterOutCal ( mFilterOutCal );
86 myClone->setFilterInAB ( mFilterInAB ); 86 myClone->setFilterInAB ( mFilterInAB );
87 myClone->setFilterOutAB ( mFilterOutAB ); 87 myClone->setFilterOutAB ( mFilterOutAB );
88 //myClone->setIdentifier( "noID" ); 88 //myClone->setIdentifier( "noID" );
89 return myClone; 89 return myClone;
90} 90}
91 91
92 92
93void KSyncProfile::setDefault() 93void KSyncProfile::setDefault()
94{ 94{
95 mPreSyncCommand = i18n("command for downloading remote file to local device"); 95 mPreSyncCommand = i18n("command for downloading remote file to local device");
96 mPostSyncCommand = i18n("command for uploading local temp file to remote device"); 96 mPostSyncCommand = i18n("command for uploading local temp file to remote device");
97 mLocalTempFile = "/tmp/mycalendar.ics"; 97 mLocalTempFile = "/tmp/mycalendar.ics";
98 mRemoteFileName = "/home/polo/kdepim/apps/korganizer/localfile.ics"; 98 mRemoteFileName = "/home/polo/kdepim/apps/korganizer/localfile.ics";
99 mPreSyncCommandAB = i18n("command for downloading remote file to local device"); 99 mPreSyncCommandAB = i18n("command for downloading remote file to local device");
100 mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); 100 mPostSyncCommandAB = i18n("command for uploading local temp file to remote device");
101 mLocalTempFileAB = "/tmp/std.vcf"; 101 mLocalTempFileAB = "/tmp/std.vcf";
102 mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf"; 102 mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf";
103 mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); 103 mPreSyncCommandPWM = i18n("command for downloading remote file to local device");
104 mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); 104 mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device");
105 mLocalTempFilePWM = "/tmp/passwords.pwm"; 105 mLocalTempFilePWM = "/tmp/passwords.pwm";
106 mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; 106 mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm";
107 107
108 mRemotePw = "abc"; 108 mRemotePw = "abc";
109 mRemoteIP = "192.168.0.99"; 109 mRemoteIP = "192.168.0.99";
110 mRemotePort = "9197"; 110 mRemotePort = "9197";
111 111
112 mRemotePwAB = "abc"; 112 mRemotePwAB = "abc";
113 mRemoteIPAB = "192.168.0.99"; 113 mRemoteIPAB = "192.168.0.99";
114 mRemotePortAB = "9198"; 114 mRemotePortAB = "9198";
115 115
116 mRemotePwPWM = "abc"; 116 mRemotePwPWM = "abc";
117 mRemoteIPPWM = "192.168.0.99"; 117 mRemoteIPPWM = "192.168.0.99";
118 mRemotePortPWM = "9199"; 118 mRemotePortPWM = "9199";
119 119
120 mShowSummaryAfterSync = true; 120 mShowSummaryAfterSync = true;
121 mAskForPreferences = true; 121 mAskForPreferences = true;
122 mWriteBackExisting = false; 122 mWriteBackExisting = false;
123 mWriteBackFuture = false; 123 mWriteBackFuture = false;
124 mWriteBackFutureWeeks = 12; 124 mWriteBackFutureWeeks = 12;
125 mWriteBackPastWeeks = 2; 125 mWriteBackPastWeeks = 2;
126 mWriteBackFile = true; 126 mWriteBackFile = true;
127 mIncludeInRingSync = false; 127 mIncludeInRingSync = false;
128 mIncludeInRingSyncAB = false; 128 mIncludeInRingSyncAB = false;
129 mIncludeInRingSyncPWM = false; 129 mIncludeInRingSyncPWM = false;
130 mSyncPrefs = SYNC_PREF_ASK; 130 mSyncPrefs = SYNC_PREF_ASK;
131 mIsLocalFileSync = true; 131 mIsLocalFileSync = true;
132 mName = "noName"; 132 mName = "noName";
133 mIsPhoneSync = false; 133 mIsPhoneSync = false;
134 mIsPiSync = false; 134 mIsPiSync = false;
135 mIsPiSyncSpec = false;
135 mIsKapiFile = false; 136 mIsKapiFile = false;
136 mWriteContactToSIM = false; 137 mWriteContactToSIM = false;
137 mPhoneDevice = "/dev/ircomm"; 138 mPhoneDevice = "/dev/ircomm";
138 mPhoneConnection = "irda"; 139 mPhoneConnection = "irda";
139 mPhoneModel = "6310i"; 140 mPhoneModel = "6310i";
140 mFilterInCal = "no filter"; 141 mFilterInCal = "no filter";
141 mFilterOutCal = "no filter"; 142 mFilterOutCal = "no filter";
142 mFilterInAB = "no filter"; 143 mFilterInAB = "no filter";
143 mFilterOutAB = "no filter"; 144 mFilterOutAB = "no filter";
144} 145}
145void KSyncProfile::readConfig(KConfig *config ) 146void KSyncProfile::readConfig(KConfig *config )
146{ 147{
147 if (config) 148 if (config)
148 { 149 {
149 150
150 config->setGroup( mName ); 151 config->setGroup( mName );
151 152
152 mName = config->readEntry( "Name", mName ); 153 mName = config->readEntry( "Name", mName );
153 154
154 mRemotePw = config->readEntry( "RemotePw",mRemotePw ); 155 mRemotePw = config->readEntry( "RemotePw",mRemotePw );
155 mRemoteIP = config->readEntry( "RemoteIP",mRemoteIP ); 156 mRemoteIP = config->readEntry( "RemoteIP",mRemoteIP );
156 mRemotePort = config->readEntry( "RemotePort", mRemotePort ); 157 mRemotePort = config->readEntry( "RemotePort", mRemotePort );
157 mRemotePwAB = config->readEntry( "RemotePwAB", mRemotePwAB ); 158 mRemotePwAB = config->readEntry( "RemotePwAB", mRemotePwAB );
158 mRemoteIPAB = config->readEntry( "RemoteIPAB", mRemoteIPAB ); 159 mRemoteIPAB = config->readEntry( "RemoteIPAB", mRemoteIPAB );
159 mRemotePortAB = config->readEntry( "RemotePortAB", mRemotePortAB ); 160 mRemotePortAB = config->readEntry( "RemotePortAB", mRemotePortAB );
160 mRemotePwPWM = config->readEntry( "RemotePwPWM", mRemotePwPWM ); 161 mRemotePwPWM = config->readEntry( "RemotePwPWM", mRemotePwPWM );
161 mRemoteIPPWM = config->readEntry( "RemoteIPPWM", mRemoteIPPWM ); 162 mRemoteIPPWM = config->readEntry( "RemoteIPPWM", mRemoteIPPWM );
162 mRemotePortPWM = config->readEntry( "RemotePortPWM", mRemotePortPWM ); 163 mRemotePortPWM = config->readEntry( "RemotePortPWM", mRemotePortPWM );
163 164
164 mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand ); 165 mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand );
165 mPostSyncCommand = config->readEntry( "PostSyncCommand", mPostSyncCommand ); 166 mPostSyncCommand = config->readEntry( "PostSyncCommand", mPostSyncCommand );
166 mLocalTempFile = config->readEntry( "LocalTempFile", mLocalTempFile ); 167 mLocalTempFile = config->readEntry( "LocalTempFile", mLocalTempFile );
167 mRemoteFileName = config->readEntry( "RemoteFileName", mRemoteFileName ); 168 mRemoteFileName = config->readEntry( "RemoteFileName", mRemoteFileName );
168 169
169 mPreSyncCommandAB = config->readEntry( "PreSyncCommandAB",mPreSyncCommandAB ); 170 mPreSyncCommandAB = config->readEntry( "PreSyncCommandAB",mPreSyncCommandAB );
170 mPostSyncCommandAB = config->readEntry( "PostSyncCommandAB", mPostSyncCommandAB ); 171 mPostSyncCommandAB = config->readEntry( "PostSyncCommandAB", mPostSyncCommandAB );
171 mLocalTempFileAB = config->readEntry( "LocalTempFileAB", mLocalTempFileAB ); 172 mLocalTempFileAB = config->readEntry( "LocalTempFileAB", mLocalTempFileAB );
172 mRemoteFileNameAB = config->readEntry( "RemoteFileNameAB", mRemoteFileNameAB ); 173 mRemoteFileNameAB = config->readEntry( "RemoteFileNameAB", mRemoteFileNameAB );
173 174
174 mPreSyncCommandPWM = config->readEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); 175 mPreSyncCommandPWM = config->readEntry( "PreSyncCommandPWM",mPreSyncCommandPWM );
175 mPostSyncCommandPWM = config->readEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); 176 mPostSyncCommandPWM = config->readEntry( "PostSyncCommandPWM", mPostSyncCommandPWM );
176 mLocalTempFilePWM = config->readEntry( "LocalTempFilePWM", mLocalTempFilePWM ); 177 mLocalTempFilePWM = config->readEntry( "LocalTempFilePWM", mLocalTempFilePWM );
177 mRemoteFileNamePWM = config->readEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); 178 mRemoteFileNamePWM = config->readEntry( "RemoteFileNamePWM", mRemoteFileNamePWM );
178 179
179 mPhoneDevice = config->readEntry( "PhoneDevice", mPhoneDevice ); 180 mPhoneDevice = config->readEntry( "PhoneDevice", mPhoneDevice );
180 mPhoneConnection = config->readEntry( "PhoneConnection", mPhoneConnection ); 181 mPhoneConnection = config->readEntry( "PhoneConnection", mPhoneConnection );
181 mPhoneModel = config->readEntry( "PhoneModel", mPhoneModel ); 182 mPhoneModel = config->readEntry( "PhoneModel", mPhoneModel );
182 183
183 mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync ); 184 mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync );
184 mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); 185 mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB );
185 mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); 186 mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM );
186 mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); 187 mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync );
187 mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences ); 188 mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences );
188 mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting ); 189 mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting );
189 mWriteBackFuture = config->readBoolEntry( "WriteBackFuture",mWriteBackFuture ); 190 mWriteBackFuture = config->readBoolEntry( "WriteBackFuture",mWriteBackFuture );
190 mWriteBackFile = config->readBoolEntry( "WriteBackFile",mWriteBackFile ); 191 mWriteBackFile = config->readBoolEntry( "WriteBackFile",mWriteBackFile );
191 mWriteContactToSIM = config->readBoolEntry( "WriteContactToSIM",mWriteContactToSIM ); 192 mWriteContactToSIM = config->readBoolEntry( "WriteContactToSIM",mWriteContactToSIM );
192 mSyncPrefs = config->readNumEntry( "SyncPrefs", mSyncPrefs ); 193 mSyncPrefs = config->readNumEntry( "SyncPrefs", mSyncPrefs );
193 mWriteBackFutureWeeks = config->readNumEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks ); 194 mWriteBackFutureWeeks = config->readNumEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks );
194 mWriteBackPastWeeks = config->readNumEntry( "WriteBackPastWeeks", mWriteBackPastWeeks ); 195 mWriteBackPastWeeks = config->readNumEntry( "WriteBackPastWeeks", mWriteBackPastWeeks );
195 mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync ); 196 mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync );
196 mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync ); 197 mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync );
197 mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync ); 198 mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync );
199 mIsPiSyncSpec= config->readBoolEntry( "IsPiSyncSpec", mIsPiSyncSpec );
198 mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile ); 200 mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile );
199 201
200 mFilterInCal = config->readEntry( "FilterInCal", mFilterInCal ); 202 mFilterInCal = config->readEntry( "FilterInCal", mFilterInCal );
201 mFilterOutCal = config->readEntry( "FilterOutCal", mFilterOutCal ); 203 mFilterOutCal = config->readEntry( "FilterOutCal", mFilterOutCal );
202 mFilterInAB = config->readEntry( "FilterInAB", mFilterInAB ); 204 mFilterInAB = config->readEntry( "FilterInAB", mFilterInAB );
203 mFilterOutAB = config->readEntry( "FilterOutAB", mFilterOutAB ); 205 mFilterOutAB = config->readEntry( "FilterOutAB", mFilterOutAB );
206 mResSpecKopi = config->readEntry( "ResSpecKopi", mResSpecKopi );
207 mResSpecKapi = config->readEntry( "ResSpecKapi", mResSpecKapi );
204 208
205 } 209 }
206 else 210 else
207 { 211 {
208 setDefault(); 212 setDefault();
209 } 213 }
210} 214}
211 215
212void KSyncProfile::deleteConfig(KConfig *config ) 216void KSyncProfile::deleteConfig(KConfig *config )
213{ 217{
214 config->deleteGroup( mName ); 218 config->deleteGroup( mName );
215} 219}
216 220
217void KSyncProfile::writeConfig( KConfig * config ) 221void KSyncProfile::writeConfig( KConfig * config )
218{ 222{
219 config->setGroup(mName); 223 config->setGroup(mName);
220 224
221 config->writeEntry( "RemotePw", mRemotePw); 225 config->writeEntry( "RemotePw", mRemotePw);
222 config->writeEntry( "RemoteIP", mRemoteIP); 226 config->writeEntry( "RemoteIP", mRemoteIP);
223 config->writeEntry( "RemotePort", mRemotePort); 227 config->writeEntry( "RemotePort", mRemotePort);
224 228
225 config->writeEntry( "RemotePwAB", mRemotePwAB); 229 config->writeEntry( "RemotePwAB", mRemotePwAB);
226 config->writeEntry( "RemoteIPAB", mRemoteIPAB); 230 config->writeEntry( "RemoteIPAB", mRemoteIPAB);
227 config->writeEntry( "RemotePortAB", mRemotePortAB); 231 config->writeEntry( "RemotePortAB", mRemotePortAB);
228 232
229 config->writeEntry( "RemotePwPWM", mRemotePwPWM); 233 config->writeEntry( "RemotePwPWM", mRemotePwPWM);
230 config->writeEntry( "RemoteIPPWM", mRemoteIPPWM); 234 config->writeEntry( "RemoteIPPWM", mRemoteIPPWM);
231 config->writeEntry( "RemotePortPWM", mRemotePortPWM); 235 config->writeEntry( "RemotePortPWM", mRemotePortPWM);
232 236
233 config->writeEntry( "Name", mName ); 237 config->writeEntry( "Name", mName );
234 config->writeEntry( "PreSyncCommand",mPreSyncCommand ); 238 config->writeEntry( "PreSyncCommand",mPreSyncCommand );
235 config->writeEntry( "PostSyncCommand", mPostSyncCommand ); 239 config->writeEntry( "PostSyncCommand", mPostSyncCommand );
236 config->writeEntry( "LocalTempFile", mLocalTempFile ); 240 config->writeEntry( "LocalTempFile", mLocalTempFile );
237 config->writeEntry( "RemoteFileName", mRemoteFileName ); 241 config->writeEntry( "RemoteFileName", mRemoteFileName );
238 242
239 config->writeEntry( "PreSyncCommandAB",mPreSyncCommandAB ); 243 config->writeEntry( "PreSyncCommandAB",mPreSyncCommandAB );
240 config->writeEntry( "PostSyncCommandAB", mPostSyncCommandAB ); 244 config->writeEntry( "PostSyncCommandAB", mPostSyncCommandAB );
241 config->writeEntry( "LocalTempFileAB", mLocalTempFileAB ); 245 config->writeEntry( "LocalTempFileAB", mLocalTempFileAB );
242 config->writeEntry( "RemoteFileNameAB", mRemoteFileNameAB ); 246 config->writeEntry( "RemoteFileNameAB", mRemoteFileNameAB );
243 247
244 config->writeEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); 248 config->writeEntry( "PreSyncCommandPWM",mPreSyncCommandPWM );
245 config->writeEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); 249 config->writeEntry( "PostSyncCommandPWM", mPostSyncCommandPWM );
246 config->writeEntry( "LocalTempFilePWM", mLocalTempFilePWM ); 250 config->writeEntry( "LocalTempFilePWM", mLocalTempFilePWM );
247 config->writeEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); 251 config->writeEntry( "RemoteFileNamePWM", mRemoteFileNamePWM );
248 252
249 config->writeEntry( "PhoneDevice", mPhoneDevice ); 253 config->writeEntry( "PhoneDevice", mPhoneDevice );
250 config->writeEntry( "PhoneConnection", mPhoneConnection ); 254 config->writeEntry( "PhoneConnection", mPhoneConnection );
251 config->writeEntry( "PhoneModel", mPhoneModel ); 255 config->writeEntry( "PhoneModel", mPhoneModel );
252 256
253 config->writeEntry( "IncludeInRingSync",mIncludeInRingSync ); 257 config->writeEntry( "IncludeInRingSync",mIncludeInRingSync );
254 config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); 258 config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB );
255 config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); 259 config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM );
256 config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); 260 config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync );
257 config->writeEntry( "AskForPreferences",mAskForPreferences ); 261 config->writeEntry( "AskForPreferences",mAskForPreferences );
258 config->writeEntry( "WriteBackExisting",mWriteBackExisting ); 262 config->writeEntry( "WriteBackExisting",mWriteBackExisting );
259 config->writeEntry( "WriteBackFuture",mWriteBackFuture ); 263 config->writeEntry( "WriteBackFuture",mWriteBackFuture );
260 config->writeEntry( "WriteBackFile",mWriteBackFile ); 264 config->writeEntry( "WriteBackFile",mWriteBackFile );
261 config->writeEntry( "WriteContactToSIM",mWriteContactToSIM ); 265 config->writeEntry( "WriteContactToSIM",mWriteContactToSIM );
262 config->writeEntry( "SyncPrefs", mSyncPrefs ); 266 config->writeEntry( "SyncPrefs", mSyncPrefs );
263 config->writeEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks); 267 config->writeEntry( "WriteBackFutureWeeks", mWriteBackFutureWeeks);
264 config->writeEntry( "WriteBackPastWeeks", mWriteBackPastWeeks); 268 config->writeEntry( "WriteBackPastWeeks", mWriteBackPastWeeks);
265 config->writeEntry( "IsLocalFileSync", mIsLocalFileSync ); 269 config->writeEntry( "IsLocalFileSync", mIsLocalFileSync );
266 config->writeEntry( "IsPhoneSync", mIsPhoneSync ); 270 config->writeEntry( "IsPhoneSync", mIsPhoneSync );
267 config->writeEntry( "IsPiSync", mIsPiSync ); 271 config->writeEntry( "IsPiSync", mIsPiSync );
272 config->writeEntry( "IsPiSyncSpec", mIsPiSyncSpec );
268 config->writeEntry( "IsKapiFile", mIsKapiFile ); 273 config->writeEntry( "IsKapiFile", mIsKapiFile );
269 config->writeEntry( "FilterInCal", mFilterInCal ); 274 config->writeEntry( "FilterInCal", mFilterInCal );
270 config->writeEntry( "FilterOutCal", mFilterOutCal ); 275 config->writeEntry( "FilterOutCal", mFilterOutCal );
271 config->writeEntry( "FilterInAB", mFilterInAB ); 276 config->writeEntry( "FilterInAB", mFilterInAB );
272 config->writeEntry( "FilterOutAB", mFilterOutAB ); 277 config->writeEntry( "FilterOutAB", mFilterOutAB );
273 278
279 config->writeEntry( "ResSpecKopi", mResSpecKopi );
280 config->writeEntry( "ResSpecKapi", mResSpecKapi );
274} 281}
275 282