author | zautrix <zautrix> | 2004-08-01 18:51:50 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-01 18:51:50 (UTC) |
commit | 3e1e7285cd2b94c0f6a041a639a0ea0a0cb72603 (patch) (side-by-side diff) | |
tree | fc198cac2c1ffa425f98f259f272e7131265b7d7 /libkdepim/ksyncprofile.cpp | |
parent | f968c6f5541463caadee98e200c2ba035fa20959 (diff) | |
download | kdepimpi-3e1e7285cd2b94c0f6a041a639a0ea0a0cb72603.zip kdepimpi-3e1e7285cd2b94c0f6a041a639a0ea0a0cb72603.tar.gz kdepimpi-3e1e7285cd2b94c0f6a041a639a0ea0a0cb72603.tar.bz2 |
Added phone comfig settings
-rw-r--r-- | libkdepim/ksyncprofile.cpp | 17 |
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 @@ -62,4 +62,5 @@ KSyncProfile* KSyncProfile::clone() myClone->setSyncPrefs( mSyncPrefs); myClone->setIsLocalFileSync( mIsLocalFileSync ); + myClone->setIsPhoneSync( mIsPhoneSync ); myClone->setName( "noName" ); return myClone; @@ -88,4 +89,8 @@ void KSyncProfile::setDefault() mSyncPrefs = SYNC_PREF_ASK; mIsLocalFileSync = true; + mIsPhoneSync = false; + mPhoneDevice = "/dev/ircomm"; + mPhoneConnection = "irda"; + mPhoneModel = "6310i"; } @@ -105,4 +110,9 @@ void KSyncProfile::readConfig(KConfig *config ) mRemoteFileNameAB = config->readEntry( prefix+ "RemoteFileNameAB", mRemoteFileNameAB ); + + mPhoneDevice = config->readEntry( prefix+ "PhoneDevice", mPhoneDevice ); + mPhoneConnection = config->readEntry( prefix+ "PhoneConnection", mPhoneConnection ); + mPhoneModel = config->readEntry( prefix+ "PhoneModel", mPhoneModel ); + mIncludeInRingSync = config->readBoolEntry( prefix+ "IncludeInRingSync",mIncludeInRingSync ); mIncludeInRingSyncAB = config->readBoolEntry( prefix+ "IncludeInRingSyncAB",mIncludeInRingSyncAB ); @@ -114,4 +124,5 @@ void KSyncProfile::readConfig(KConfig *config ) mWriteBackFutureWeeks = config->readNumEntry( prefix+ "WriteBackFutureWeeks", mWriteBackFutureWeeks ); mIsLocalFileSync= config->readBoolEntry( prefix+ "IsLocalFileSync", mIsLocalFileSync ); + mIsPhoneSync= config->readBoolEntry( prefix+ "IsPhoneSync", mIsPhoneSync ); } void KSyncProfile::writeConfig( KConfig * config ) @@ -129,4 +140,9 @@ void KSyncProfile::writeConfig( KConfig * config ) config->writeEntry( prefix+ "LocalTempFileAB", mLocalTempFileAB ); 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 ); config->writeEntry( prefix+ "IncludeInRingSyncAB",mIncludeInRingSyncAB ); @@ -138,4 +154,5 @@ void KSyncProfile::writeConfig( KConfig * config ) config->writeEntry( prefix+ "WriteBackFutureWeeks", mWriteBackFutureWeeks); config->writeEntry( prefix+ "IsLocalFileSync", mIsLocalFileSync ); + config->writeEntry( prefix+ "IsPhoneSync", mIsPhoneSync ); } |