summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprofile.cpp
Side-by-side diff
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
@@ -60,8 +60,9 @@ KSyncProfile* KSyncProfile::clone()
myClone->setIncludeInRingSync( mIncludeInRingSync );
myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB );
myClone->setSyncPrefs( mSyncPrefs);
myClone->setIsLocalFileSync( mIsLocalFileSync );
+ myClone->setIsPhoneSync( mIsPhoneSync );
myClone->setName( "noName" );
return myClone;
}
@@ -86,8 +87,12 @@ void KSyncProfile::setDefault()
mIncludeInRingSync = false;
mIncludeInRingSyncAB = false;
mSyncPrefs = SYNC_PREF_ASK;
mIsLocalFileSync = true;
+ mIsPhoneSync = false;
+ mPhoneDevice = "/dev/ircomm";
+ mPhoneConnection = "irda";
+ mPhoneModel = "6310i";
}
void KSyncProfile::readConfig(KConfig *config )
{
@@ -103,8 +108,13 @@ void KSyncProfile::readConfig(KConfig *config )
mPostSyncCommandAB = config->readEntry( prefix+ "PostSyncCommandAB", mPostSyncCommandAB );
mLocalTempFileAB = config->readEntry( prefix+ "LocalTempFileAB", mLocalTempFileAB );
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 );
mShowSummaryAfterSync = config->readBoolEntry( prefix+ "ShowSummaryAfterSync", mShowSummaryAfterSync );
mAskForPreferences = config->readBoolEntry( prefix+ "AskForPreferences",mAskForPreferences );
@@ -112,8 +122,9 @@ void KSyncProfile::readConfig(KConfig *config )
mWriteBackFuture = config->readBoolEntry( prefix+ "WriteBackFuture",mWriteBackFuture );
mSyncPrefs = config->readNumEntry( prefix+ "SyncPrefs", mSyncPrefs );
mWriteBackFutureWeeks = config->readNumEntry( prefix+ "WriteBackFutureWeeks", mWriteBackFutureWeeks );
mIsLocalFileSync= config->readBoolEntry( prefix+ "IsLocalFileSync", mIsLocalFileSync );
+ mIsPhoneSync= config->readBoolEntry( prefix+ "IsPhoneSync", mIsPhoneSync );
}
void KSyncProfile::writeConfig( KConfig * config )
{
config->setGroup("SyncProfiles");
@@ -127,8 +138,13 @@ void KSyncProfile::writeConfig( KConfig * config )
config->writeEntry( prefix+ "PreSyncCommandAB",mPreSyncCommandAB );
config->writeEntry( prefix+ "PostSyncCommandAB", mPostSyncCommandAB );
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 );
config->writeEntry( prefix+ "ShowSummaryAfterSync", mShowSummaryAfterSync );
config->writeEntry( prefix+ "AskForPreferences",mAskForPreferences );
@@ -136,8 +152,9 @@ void KSyncProfile::writeConfig( KConfig * config )
config->writeEntry( prefix+ "WriteBackFuture",mWriteBackFuture );
config->writeEntry( prefix+ "SyncPrefs", mSyncPrefs );
config->writeEntry( prefix+ "WriteBackFutureWeeks", mWriteBackFutureWeeks);
config->writeEntry( prefix+ "IsLocalFileSync", mIsLocalFileSync );
+ config->writeEntry( prefix+ "IsPhoneSync", mIsPhoneSync );
}
/*
class KPrefsItemInt : public KPrefsItem {