-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 @@ -1938,3 +1938,3 @@ void KABCore::initGUI() - 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 ) ) ); @@ -3474,3 +3474,3 @@ void KABCore::getFile( bool success ) } -void KABCore::syncFileRequest() +void KABCore::syncFileRequest(const QString & resource) { @@ -3479,3 +3479,8 @@ void KABCore::syncFileRequest() } - mAddressBook->export2File( sentSyncFile() ); + + if ( resource == "ALL" ) { + mAddressBook->export2File( sentSyncFile() ); + } + else + mAddressBook->export2File( sentSyncFile(), resource); } diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index c4a0b3b..2d1505f 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h @@ -359,3 +359,3 @@ class KABCore : public QWidget, public KSyncInterface void getFile( bool success ); - void syncFileRequest(); + void syncFileRequest(const QString &); void setDetailsVisible( bool visible ); |