author | zautrix <zautrix> | 2005-01-17 12:39:45 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-17 12:39:45 (UTC) |
commit | ba5e5a22ad492f798b2626026cc1838b731e055b (patch) (unidiff) | |
tree | f8bdea9f3a7542371b5be6e5a30ba533889a2075 /kaddressbook/kabcore.cpp | |
parent | 6b166ece0a576e9be9c71a61fab5424d75a9301f (diff) | |
download | kdepimpi-ba5e5a22ad492f798b2626026cc1838b731e055b.zip kdepimpi-ba5e5a22ad492f798b2626026cc1838b731e055b.tar.gz kdepimpi-ba5e5a22ad492f798b2626026cc1838b731e055b.tar.bz2 |
more AB fixes
-rw-r--r-- | kaddressbook/kabcore.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index aa04631..a480baf 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -2802,2 +2802,4 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo | |||
2802 | int changedRemote = 0; | 2802 | int changedRemote = 0; |
2803 | int filteredIN = 0; | ||
2804 | int filteredOUT = 0; | ||
2803 | 2805 | ||
@@ -2991,2 +2993,4 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo | |||
2991 | } | 2993 | } |
2994 | } else { | ||
2995 | ++filteredIN; | ||
2992 | } | 2996 | } |
@@ -3014,9 +3018,7 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo | |||
3014 | inL = local->findByUid( uid ); | 3018 | inL = local->findByUid( uid ); |
3015 | if ( (!filterOUT.name().isEmpty()) && (! filterOUT.filterAddressee( inL ) ) ) | ||
3016 | skipIncidence = true; | ||
3017 | } | ||
3018 | if ( !skipIncidence ) { | ||
3019 | if ( !inL.resource() || inL.resource()->includeInSync() ) { | 3019 | if ( !inL.resource() || inL.resource()->includeInSync() ) { |
3020 | inR = remote->findByUid( uid ); | 3020 | inR = remote->findByUid( uid ); |
3021 | if ( inR.isEmpty() ) { // no conflict ********** add or delete local | 3021 | if ( inR.isEmpty() ){ |
3022 | if ( filterOUT.name().isEmpty() || filterOUT.filterAddressee( inL ) ) { | ||
3023 | // no conflict ********** add or delete local | ||
3022 | if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) { | 3024 | if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) { |
@@ -3056,2 +3058,5 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo | |||
3056 | } | 3058 | } |
3059 | } else { | ||
3060 | ++filteredOUT; | ||
3061 | } | ||
3057 | } | 3062 | } |
@@ -3082,3 +3087,3 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo | |||
3082 | QString mes; | 3087 | QString mes; |
3083 | mes .sprintf( i18n("Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n"),addedAddressee, addedAddresseeR, changedLocal, changedRemote, deletedAddresseeL, deletedAddresseeR ); | 3088 | mes .sprintf( i18n("Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out"),addedAddressee, addedAddresseeR, changedLocal, changedRemote, deletedAddresseeL, deletedAddresseeR, filteredIN, filteredOUT ); |
3084 | qDebug( mes ); | 3089 | qDebug( mes ); |