author | zautrix <zautrix> | 2004-09-18 16:07:07 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-18 16:07:07 (UTC) |
commit | bf18a7b4edb4121fd2ea974ac1ec634167c9b993 (patch) (side-by-side diff) | |
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 | 3 | ||||
-rw-r--r-- | kabc/addressbook.h | 2 | ||||
-rw-r--r-- | kabc/addressee.cpp | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp index 6e8d027..3ec0795 100644 --- a/kabc/addressbook.cpp +++ b/kabc/addressbook.cpp @@ -447,3 +447,3 @@ Ticket *AddressBook::requestSaveTicket( Resource *resource ) -void AddressBook::insertAddressee( const Addressee &a ) +void AddressBook::insertAddressee( const Addressee &a, bool setRev ) { @@ -462,2 +462,3 @@ void AddressBook::insertAddressee( const Addressee &a ) if ( changed ) { + if ( setRev ) (*it).setRevision( QDateTime::currentDateTime() ); diff --git a/kabc/addressbook.h b/kabc/addressbook.h index 650a638..253de68 100644 --- a/kabc/addressbook.h +++ b/kabc/addressbook.h @@ -175,3 +175,3 @@ class AddressBook : public QObject */ - void insertAddressee( const Addressee & ); + void insertAddressee( const Addressee &, bool setRev = true ); diff --git a/kabc/addressee.cpp b/kabc/addressee.cpp index fb32f6e..7f04d8f 100644 --- a/kabc/addressee.cpp +++ b/kabc/addressee.cpp @@ -95,2 +95,3 @@ Addressee::Addressee() mData->mExternalId = ":"; + mData->revision = QDateTime ( QDate( 2004,1,1)); mTempSyncStat = SYNC_TEMPSTATE_INITIAL; |