-rw-r--r-- | kabc/resource.cpp | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/kabc/resource.cpp b/kabc/resource.cpp index 7b91239..267cdaf 100644 --- a/kabc/resource.cpp +++ b/kabc/resource.cpp @@ -29,4 +29,2 @@ $Id$ -#include <ksyncprofile.h> - #include "resource.h" @@ -35,10 +33,5 @@ using namespace KABC; -Resource::Resource( const KConfig *config, bool syncable ) - : KRES::Resource( config ), mAddressBook( 0 ), mSyncProfile( 0 ) +Resource::Resource( const KConfig *config ) + : KRES::Resource( config ), mAddressBook( 0 ) { - if(syncable == true) { - mSyncProfile = new KSyncProfile( ); - mSyncProfile->setName("pending" /*resourceName()*/); - mSyncProfile->readConfig( (KConfig *)config ); - } } @@ -47,5 +40,2 @@ Resource::~Resource() { - if (mSyncProfile != 0) { - delete mSyncProfile; - } } @@ -55,5 +45,2 @@ void Resource::writeConfig( KConfig *config ) KRES::Resource::writeConfig( config ); - - if(mSyncProfile != 0) - mSyncProfile->writeConfig( config ); } @@ -110,13 +97,2 @@ void Resource::cleanUp() -bool Resource::isSyncable() const -{ - return (mSyncProfile != 0); -} - -KSyncProfile* Resource::getSyncProfile() -{ - return mSyncProfile; -} - - QString Resource::fileName() const @@ -138,6 +114,2 @@ void Resource::setResourceName( const QString &name ) KRES::Resource::setResourceName(name); - if(mSyncProfile != 0) { - mSyncProfile->setName( name ); - } - } |