-rw-r--r-- | kaddressbook/kabcore.cpp | 11 | ||||
-rw-r--r-- | kaddressbook/kabcore.h | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 2dea619..5d377bf 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -1937,5 +1937,5 @@ void KABCore::initGUI() syncManager->setBlockSave(false); - connect(syncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) ); + connect(syncManager , SIGNAL( request_file(const QString &) ), this, SLOT( syncFileRequest(const QString &) ) ); connect(syncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) ); QString sync_file = sentSyncFile(); @@ -3473,10 +3473,15 @@ void KABCore::getFile( bool success ) mViewManager->refreshView(); } -void KABCore::syncFileRequest() +void KABCore::syncFileRequest(const QString & resource) { if ( KABPrefs::instance()->mPassiveSyncWithDesktop ) { syncManager->slotSyncMenu( 999 ); } - mAddressBook->export2File( sentSyncFile() ); + + if ( resource == "ALL" ) { + mAddressBook->export2File( sentSyncFile() ); + } + else + mAddressBook->export2File( sentSyncFile(), resource); } QString KABCore::sentSyncFile() diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index c4a0b3b..2d1505f 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h @@ -358,5 +358,5 @@ class KABCore : public QWidget, public KSyncInterface void recieve(QString cmsg ); void getFile( bool success ); - void syncFileRequest(); + void syncFileRequest(const QString &); void setDetailsVisible( bool visible ); void setDetailsToState(); |