summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprofile.cpp
authorzautrix <zautrix>2004-08-01 18:51:50 (UTC)
committer zautrix <zautrix>2004-08-01 18:51:50 (UTC)
commit3e1e7285cd2b94c0f6a041a639a0ea0a0cb72603 (patch) (side-by-side diff)
treefc198cac2c1ffa425f98f259f272e7131265b7d7 /libkdepim/ksyncprofile.cpp
parentf968c6f5541463caadee98e200c2ba035fa20959 (diff)
downloadkdepimpi-3e1e7285cd2b94c0f6a041a639a0ea0a0cb72603.zip
kdepimpi-3e1e7285cd2b94c0f6a041a639a0ea0a0cb72603.tar.gz
kdepimpi-3e1e7285cd2b94c0f6a041a639a0ea0a0cb72603.tar.bz2
Added phone comfig settings
Diffstat (limited to 'libkdepim/ksyncprofile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprofile.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp
index f34c309..425285e 100644
--- a/libkdepim/ksyncprofile.cpp
+++ b/libkdepim/ksyncprofile.cpp
@@ -63,2 +63,3 @@ KSyncProfile* KSyncProfile::clone()
myClone->setIsLocalFileSync( mIsLocalFileSync );
+ myClone->setIsPhoneSync( mIsPhoneSync );
myClone->setName( "noName" );
@@ -89,2 +90,6 @@ void KSyncProfile::setDefault()
mIsLocalFileSync = true;
+ mIsPhoneSync = false;
+ mPhoneDevice = "/dev/ircomm";
+ mPhoneConnection = "irda";
+ mPhoneModel = "6310i";
@@ -106,2 +111,7 @@ void KSyncProfile::readConfig(KConfig *config )
+
+ mPhoneDevice = config->readEntry( prefix+ "PhoneDevice", mPhoneDevice );
+ mPhoneConnection = config->readEntry( prefix+ "PhoneConnection", mPhoneConnection );
+ mPhoneModel = config->readEntry( prefix+ "PhoneModel", mPhoneModel );
+
mIncludeInRingSync = config->readBoolEntry( prefix+ "IncludeInRingSync",mIncludeInRingSync );
@@ -115,2 +125,3 @@ void KSyncProfile::readConfig(KConfig *config )
mIsLocalFileSync= config->readBoolEntry( prefix+ "IsLocalFileSync", mIsLocalFileSync );
+ mIsPhoneSync= config->readBoolEntry( prefix+ "IsPhoneSync", mIsPhoneSync );
}
@@ -130,2 +141,7 @@ void KSyncProfile::writeConfig( KConfig * config )
config->writeEntry( prefix+ "RemoteFileNameAB", mRemoteFileNameAB );
+
+ config->writeEntry( prefix+ "PhoneDevice", mPhoneDevice );
+ config->writeEntry( prefix+ "PhoneConnection", mPhoneConnection );
+ config->writeEntry( prefix+ "PhoneModel", mPhoneModel );
+
config->writeEntry( prefix+ "IncludeInRingSync",mIncludeInRingSync );
@@ -139,2 +155,3 @@ void KSyncProfile::writeConfig( KConfig * config )
config->writeEntry( prefix+ "IsLocalFileSync", mIsLocalFileSync );
+ config->writeEntry( prefix+ "IsPhoneSync", mIsPhoneSync );
}