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
@@ -58,12 +58,13 @@ KSyncProfile* KSyncProfile::clone()
myClone->setWriteBackFuture( mWriteBackFuture );
myClone->setWriteBackFutureWeeks( mWriteBackFutureWeeks );
myClone->setIncludeInRingSync( mIncludeInRingSync );
myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB );
myClone->setSyncPrefs( mSyncPrefs);
myClone->setIsLocalFileSync( mIsLocalFileSync );
+ myClone->setIsPhoneSync( mIsPhoneSync );
myClone->setName( "noName" );
return myClone;
}
void KSyncProfile::setDefault()
@@ -84,12 +85,16 @@ void KSyncProfile::setDefault()
mWriteBackFutureWeeks = 12;
mWriteBackFile = true;
mIncludeInRingSync = false;
mIncludeInRingSyncAB = false;
mSyncPrefs = SYNC_PREF_ASK;
mIsLocalFileSync = true;
+ mIsPhoneSync = false;
+ mPhoneDevice = "/dev/ircomm";
+ mPhoneConnection = "irda";
+ mPhoneModel = "6310i";
}
void KSyncProfile::readConfig(KConfig *config )
{
config->setGroup("SyncProfiles");
QString prefix = "Profile_"+mName+"_";
@@ -101,21 +106,27 @@ void KSyncProfile::readConfig(KConfig *config )
mPreSyncCommandAB = config->readEntry( prefix+ "PreSyncCommandAB",mPreSyncCommandAB );
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 );
mWriteBackExisting = config->readBoolEntry( prefix+ "WriteBackExisting",mWriteBackExisting );
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");
QString prefix = "Profile_"+mName+"_";
// config->writeEntry( prefix+ "Name", mName );
@@ -125,21 +136,27 @@ void KSyncProfile::writeConfig( KConfig * config )
config->writeEntry( prefix+ "RemoteFileName", mRemoteFileName );
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 );
config->writeEntry( prefix+ "WriteBackExisting",mWriteBackExisting );
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 {
public:
KPrefsItemInt(const QString &group,const QString &name,int *,int defaultValue=0);