From c14cd0801a854a6f6cc6abef70510646be50a61c Mon Sep 17 00:00:00 2001 From: ulf69 Date: Fri, 01 Oct 2004 00:05:54 +0000 Subject: added profile settings for pwmanager --- (limited to 'libkdepim/ksyncprofile.cpp') diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp index c599208..a43ebe2 100644 --- a/libkdepim/ksyncprofile.cpp +++ b/libkdepim/ksyncprofile.cpp @@ -51,6 +51,10 @@ KSyncProfile* KSyncProfile::clone() myClone->setPostSyncCommandAB( mPostSyncCommandAB ); myClone->setLocalTempFileAB( mLocalTempFileAB); myClone->setRemoteFileNameAB( mRemoteFileNameAB ); + myClone->setPreSyncCommandPWM( mPreSyncCommandPWM ); + myClone->setPostSyncCommandPWM( mPostSyncCommandPWM ); + myClone->setLocalTempFilePWM( mLocalTempFilePWM); + myClone->setRemoteFileNamePWM( mRemoteFileNamePWM ); myClone->setShowSummaryAfterSync( mShowSummaryAfterSync ); myClone->setAskForPreferences( mAskForPreferences); myClone->setWriteBackExisting(mWriteBackExisting ); @@ -59,6 +63,7 @@ KSyncProfile* KSyncProfile::clone() myClone->setWriteBackFutureWeeks( mWriteBackFutureWeeks ); myClone->setIncludeInRingSync( mIncludeInRingSync ); myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); + myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); myClone->setSyncPrefs( mSyncPrefs); myClone->setIsLocalFileSync( mIsLocalFileSync ); myClone->setIsPhoneSync( mIsPhoneSync ); @@ -78,7 +83,11 @@ void KSyncProfile::setDefault() mPreSyncCommandAB = i18n("command for downloading remote file to local device"); mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); 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; mAskForPreferences = true; mWriteBackExisting = false; @@ -87,6 +96,7 @@ void KSyncProfile::setDefault() mWriteBackFile = true; mIncludeInRingSync = false; mIncludeInRingSyncAB = false; + mIncludeInRingSyncPWM = false; mSyncPrefs = SYNC_PREF_ASK; mIsLocalFileSync = true; mName = "noName"; @@ -114,12 +124,18 @@ void KSyncProfile::readConfig(KConfig *config ) mLocalTempFileAB = config->readEntry( "LocalTempFileAB", mLocalTempFileAB ); mRemoteFileNameAB = config->readEntry( "RemoteFileNameAB", mRemoteFileNameAB ); + 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 ); mPhoneConnection = config->readEntry( "PhoneConnection", mPhoneConnection ); mPhoneModel = config->readEntry( "PhoneModel", mPhoneModel ); mIncludeInRingSync = config->readBoolEntry( "IncludeInRingSync",mIncludeInRingSync ); mIncludeInRingSyncAB = config->readBoolEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); + mIncludeInRingSyncPWM = config->readBoolEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); mShowSummaryAfterSync = config->readBoolEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); mAskForPreferences = config->readBoolEntry( "AskForPreferences",mAskForPreferences ); mWriteBackExisting = config->readBoolEntry( "WriteBackExisting",mWriteBackExisting ); @@ -157,12 +173,18 @@ void KSyncProfile::writeConfig( KConfig * config ) config->writeEntry( "LocalTempFileAB", mLocalTempFileAB ); config->writeEntry( "RemoteFileNameAB", mRemoteFileNameAB ); + config->writeEntry( "PreSyncCommandPWM",mPreSyncCommandPWM ); + config->writeEntry( "PostSyncCommandPWM", mPostSyncCommandPWM ); + config->writeEntry( "LocalTempFilePWM", mLocalTempFilePWM ); + config->writeEntry( "RemoteFileNamePWM", mRemoteFileNamePWM ); + config->writeEntry( "PhoneDevice", mPhoneDevice ); config->writeEntry( "PhoneConnection", mPhoneConnection ); config->writeEntry( "PhoneModel", mPhoneModel ); config->writeEntry( "IncludeInRingSync",mIncludeInRingSync ); config->writeEntry( "IncludeInRingSyncAB",mIncludeInRingSyncAB ); + config->writeEntry( "IncludeInRingSyncPWM",mIncludeInRingSyncPWM ); config->writeEntry( "ShowSummaryAfterSync", mShowSummaryAfterSync ); config->writeEntry( "AskForPreferences",mAskForPreferences ); config->writeEntry( "WriteBackExisting",mWriteBackExisting ); -- cgit v0.9.0.2