summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprofile.cpp
Unidiff
Diffstat (limited to 'libkdepim/ksyncprofile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprofile.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp
index 9f404cb..0d72fc9 100644
--- a/libkdepim/ksyncprofile.cpp
+++ b/libkdepim/ksyncprofile.cpp
@@ -80,8 +80,12 @@ KSyncProfile* KSyncProfile::clone()
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 );
85 myClone->setFilterOutCal ( mFilterOutCal );
86 myClone->setFilterInAB ( mFilterInAB );
87 myClone->setFilterOutAB ( mFilterOutAB );
84 //myClone->setIdentifier( "noID" ); 88 //myClone->setIdentifier( "noID" );
85 return myClone; 89 return myClone;
86} 90}
87 91
@@ -132,8 +136,12 @@ void KSyncProfile::setDefault()
132 mWriteContactToSIM = false; 136 mWriteContactToSIM = false;
133 mPhoneDevice = "/dev/ircomm"; 137 mPhoneDevice = "/dev/ircomm";
134 mPhoneConnection = "irda"; 138 mPhoneConnection = "irda";
135 mPhoneModel = "6310i"; 139 mPhoneModel = "6310i";
140 mFilterInCal = "no filter";
141 mFilterOutCal = "no filter";
142 mFilterInAB = "no filter";
143 mFilterOutAB = "no filter";
136} 144}
137void KSyncProfile::readConfig(KConfig *config ) 145void KSyncProfile::readConfig(KConfig *config )
138{ 146{
139 if (config) 147 if (config)
@@ -187,8 +195,14 @@ void KSyncProfile::readConfig(KConfig *config )
187 mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync ); 195 mIsLocalFileSync= config->readBoolEntry( "IsLocalFileSync", mIsLocalFileSync );
188 mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync ); 196 mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync );
189 mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync ); 197 mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync );
190 mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile ); 198 mIsKapiFile = config->readBoolEntry( "IsKapiFile", mIsKapiFile );
199
200 mFilterInCal = config->readEntry( "FilterInCal", mFilterInCal );
201 mFilterOutCal = config->readEntry( "FilterOutCal", mFilterOutCal );
202 mFilterInAB = config->readEntry( "FilterInAB", mFilterInAB );
203 mFilterOutAB = config->readEntry( "FilterOutAB", mFilterOutAB );
204
191 } 205 }
192 else 206 else
193 { 207 {
194 setDefault(); 208 setDefault();
@@ -251,6 +265,11 @@ void KSyncProfile::writeConfig( KConfig * config )
251 config->writeEntry( "IsLocalFileSync", mIsLocalFileSync ); 265 config->writeEntry( "IsLocalFileSync", mIsLocalFileSync );
252 config->writeEntry( "IsPhoneSync", mIsPhoneSync ); 266 config->writeEntry( "IsPhoneSync", mIsPhoneSync );
253 config->writeEntry( "IsPiSync", mIsPiSync ); 267 config->writeEntry( "IsPiSync", mIsPiSync );
254 config->writeEntry( "IsKapiFile", mIsKapiFile ); 268 config->writeEntry( "IsKapiFile", mIsKapiFile );
269 config->writeEntry( "FilterInCal", mFilterInCal );
270 config->writeEntry( "FilterOutCal", mFilterOutCal );
271 config->writeEntry( "FilterInAB", mFilterInAB );
272 config->writeEntry( "FilterOutAB", mFilterOutAB );
273
255} 274}
256 275