author | zautrix <zautrix> | 2004-09-18 16:07:07 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-18 16:07:07 (UTC) |
commit | bf18a7b4edb4121fd2ea974ac1ec634167c9b993 (patch) (unidiff) | |
tree | 056e62659f8bc5a5b20dc24dcaa73c38f4515cd5 /kabc | |
parent | ca8fcf3fd4dc068747d8f31e2189145b22853d55 (diff) | |
download | kdepimpi-bf18a7b4edb4121fd2ea974ac1ec634167c9b993.zip kdepimpi-bf18a7b4edb4121fd2ea974ac1ec634167c9b993.tar.gz kdepimpi-bf18a7b4edb4121fd2ea974ac1ec634167c9b993.tar.bz2 |
more AB sync
-rw-r--r-- | kabc/addressbook.cpp | 5 | ||||
-rw-r--r-- | kabc/addressbook.h | 2 | ||||
-rw-r--r-- | kabc/addressee.cpp | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp index 6e8d027..3ec0795 100644 --- a/kabc/addressbook.cpp +++ b/kabc/addressbook.cpp | |||
@@ -446,5 +446,5 @@ Ticket *AddressBook::requestSaveTicket( Resource *resource ) | |||
446 | } | 446 | } |
447 | 447 | ||
448 | void AddressBook::insertAddressee( const Addressee &a ) | 448 | void AddressBook::insertAddressee( const Addressee &a, bool setRev ) |
449 | { | 449 | { |
450 | Addressee::List::Iterator it; | 450 | Addressee::List::Iterator it; |
@@ -461,5 +461,6 @@ void AddressBook::insertAddressee( const Addressee &a ) | |||
461 | 461 | ||
462 | if ( changed ) { | 462 | if ( changed ) { |
463 | (*it).setRevision( QDateTime::currentDateTime() ); | 463 | if ( setRev ) |
464 | (*it).setRevision( QDateTime::currentDateTime() ); | ||
464 | (*it).setChanged( true ); | 465 | (*it).setChanged( true ); |
465 | } | 466 | } |
diff --git a/kabc/addressbook.h b/kabc/addressbook.h index 650a638..253de68 100644 --- a/kabc/addressbook.h +++ b/kabc/addressbook.h | |||
@@ -174,5 +174,5 @@ class AddressBook : public QObject | |||
174 | one. If not the new object is appended to the address book. | 174 | one. If not the new object is appended to the address book. |
175 | */ | 175 | */ |
176 | void insertAddressee( const Addressee & ); | 176 | void insertAddressee( const Addressee &, bool setRev = true ); |
177 | 177 | ||
178 | /** | 178 | /** |
diff --git a/kabc/addressee.cpp b/kabc/addressee.cpp index fb32f6e..7f04d8f 100644 --- a/kabc/addressee.cpp +++ b/kabc/addressee.cpp | |||
@@ -94,4 +94,5 @@ Addressee::Addressee() | |||
94 | mData->resource = 0; | 94 | mData->resource = 0; |
95 | mData->mExternalId = ":"; | 95 | mData->mExternalId = ":"; |
96 | mData->revision = QDateTime ( QDate( 2004,1,1)); | ||
96 | mTempSyncStat = SYNC_TEMPSTATE_INITIAL; | 97 | mTempSyncStat = SYNC_TEMPSTATE_INITIAL; |
97 | } | 98 | } |