-rw-r--r-- | libkdepim/ksyncprofile.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp index 2bf4e6c..76dfe00 100644 --- a/libkdepim/ksyncprofile.cpp +++ b/libkdepim/ksyncprofile.cpp @@ -45,2 +45,11 @@ KSyncProfile* KSyncProfile::clone() KSyncProfile* myClone = new KSyncProfile(); + myClone->setRemotePw(mRemotePw); + myClone->setRemoteIP(mRemoteIP); + myClone->setRemotePort(mRemotePort); + myClone->setRemotePwAB(mRemotePwAB); + myClone->setRemoteIPAB(mRemoteIPAB); + myClone->setRemotePortAB(mRemotePortAB); + myClone->setRemotePwPWM(mRemotePwPWM); + myClone->setRemoteIPPWM(mRemoteIPPWM); + myClone->setRemotePortPWM (mRemotePortPWM); myClone->setPreSyncCommand( mPreSyncCommand ); @@ -69,2 +78,3 @@ KSyncProfile* KSyncProfile::clone() myClone->setIsPhoneSync( mIsPhoneSync ); + myClone->setIsPiSync( mIsPiSync ); myClone->setWriteContactToSIM( mWriteContactToSIM ); @@ -90,2 +100,15 @@ void KSyncProfile::setDefault() mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; + + mRemotePw = "abc"; + mRemoteIP = "192.168.0.99"; + mRemotePort = "9197"; + + mRemotePwAB = "abc"; + mRemoteIPAB = "192.168.0.99"; + mRemotePortAB = "9198"; + + mRemotePwPWM = "abc"; + mRemoteIPPWM = "192.168.0.99"; + mRemotePortPWM = "9199"; + mShowSummaryAfterSync = true; @@ -103,2 +126,3 @@ void KSyncProfile::setDefault() mIsPhoneSync = false; + mIsPiSync = false; mWriteContactToSIM = false; @@ -116,2 +140,13 @@ void KSyncProfile::readConfig(KConfig *config ) mName = config->readEntry( "Name", mName ); + + mRemotePw = config->readEntry( "RemotePw",mRemotePw ); + mRemoteIP = config->readEntry( "RemoteIP",mRemoteIP ); + mRemotePort = config->readEntry( "RemotePort", mRemotePort ); + mRemotePwAB = config->readEntry( "RemotePwAB", mRemotePwAB ); + mRemoteIPAB = config->readEntry( "RemoteIPAB", mRemoteIPAB ); + mRemotePortAB = config->readEntry( "RemotePortAB", mRemotePortAB ); + mRemotePwPWM = config->readEntry( "RemotePwPWM", mRemotePwPWM ); + mRemoteIPPWM = config->readEntry( "RemoteIPPWM", mRemoteIPPWM ); + mRemotePortPWM = config->readEntry( "RemotePortPWM", mRemotePortPWM ); + mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand ); @@ -148,2 +183,3 @@ void KSyncProfile::readConfig(KConfig *config ) mIsPhoneSync= config->readBoolEntry( "IsPhoneSync", mIsPhoneSync ); + mIsPiSync= config->readBoolEntry( "IsPiSync", mIsPiSync ); } @@ -164,2 +200,14 @@ void KSyncProfile::writeConfig( KConfig * config ) + config->writeEntry( "RemotePw", mRemotePw); + config->writeEntry( "RemoteIP", mRemoteIP); + config->writeEntry( "RemotePort", mRemotePort); + + config->writeEntry( "RemotePwAB", mRemotePwAB); + config->writeEntry( "RemoteIPAB", mRemoteIPAB); + config->writeEntry( "RemotePortAB", mRemotePortAB); + + config->writeEntry( "RemotePwPWM", mRemotePwPWM); + config->writeEntry( "RemoteIPPWM", mRemoteIPPWM); + config->writeEntry( "RemotePortPWM", mRemotePortPWM); + config->writeEntry( "Name", mName ); @@ -197,2 +245,3 @@ void KSyncProfile::writeConfig( KConfig * config ) config->writeEntry( "IsPhoneSync", mIsPhoneSync ); + config->writeEntry( "IsPiSync", mIsPiSync ); } |