author | ulf69 <ulf69> | 2004-10-01 00:05:54 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-10-01 00:05:54 (UTC) |
commit | c14cd0801a854a6f6cc6abef70510646be50a61c (patch) (side-by-side diff) | |
tree | 90b4f29acb017e40ce5f700e2fb83674ad7e58b0 /libkdepim/ksyncprofile.cpp | |
parent | 3138ae138248637d901528ee5d6cfc894b0ed7c2 (diff) | |
download | kdepimpi-c14cd0801a854a6f6cc6abef70510646be50a61c.zip kdepimpi-c14cd0801a854a6f6cc6abef70510646be50a61c.tar.gz kdepimpi-c14cd0801a854a6f6cc6abef70510646be50a61c.tar.bz2 |
added profile settings for pwmanager
-rw-r--r-- | libkdepim/ksyncprofile.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp index c599208..a43ebe2 100644 --- a/libkdepim/ksyncprofile.cpp +++ b/libkdepim/ksyncprofile.cpp @@ -53,2 +53,6 @@ KSyncProfile* KSyncProfile::clone() myClone->setRemoteFileNameAB( mRemoteFileNameAB ); + myClone->setPreSyncCommandPWM( mPreSyncCommandPWM ); + myClone->setPostSyncCommandPWM( mPostSyncCommandPWM ); + myClone->setLocalTempFilePWM( mLocalTempFilePWM); + myClone->setRemoteFileNamePWM( mRemoteFileNamePWM ); myClone->setShowSummaryAfterSync( mShowSummaryAfterSync ); @@ -61,2 +65,3 @@ KSyncProfile* KSyncProfile::clone() myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); + myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); myClone->setSyncPrefs( mSyncPrefs); @@ -80,3 +85,7 @@ void KSyncProfile::setDefault() mLocalTempFileAB = "/tmp/std.vcf"; - mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf"; + mRemoteFileNamePWM = "/home/polo/kdepim/apps/kabc/localfile.vcf"; + mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); + mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); + mLocalTempFilePWM = "/tmp/passwords.pwm"; + mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; mShowSummaryAfterSync = true; @@ -89,2 +98,3 @@ void KSyncProfile::setDefault() mIncludeInRingSyncAB = false; + mIncludeInRingSyncPWM = false; mSyncPrefs = SYNC_PREF_ASK; @@ -116,2 +126,7 @@ void KSyncProfile::readConfig(KConfig *config ) + mPreSyncCommandPWM = config->readEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); + mPostSyncCommandPWM = config->readEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); + mLocalTempFilePWM = config->readEntry( "LocalTempFilePWM", mLocalTempFilePWM ); + mRemoteFileNamePWM = config->readEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); + mPhoneDevice = config->readEntry( "PhoneDevice", mPhoneDevice ); @@ -122,2 +137,3 @@ void KSyncProfile::readConfig(KConfig *config ) mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); + mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); @@ -159,2 +175,7 @@ void KSyncProfile::writeConfig( KConfig * config ) + config->writeEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); + config->writeEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); + config->writeEntry( "LocalTempFilePWM", mLocalTempFilePWM ); + config->writeEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); + config->writeEntry( "PhoneDevice", mPhoneDevice ); @@ -165,2 +186,3 @@ void KSyncProfile::writeConfig( KConfig * config ) config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); + config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); |