-rw-r--r-- | kabc/addressee.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kabc/addressee.cpp b/kabc/addressee.cpp index 3a2dc5f..fda62f1 100644 --- a/kabc/addressee.cpp +++ b/kabc/addressee.cpp | |||
@@ -58,24 +58,25 @@ struct Addressee::AddresseeData : public KShared | |||
58 | QDateTime birthday; | 58 | QDateTime birthday; |
59 | QString mailer; | 59 | QString mailer; |
60 | TimeZone timeZone; | 60 | TimeZone timeZone; |
61 | Geo geo; | 61 | Geo geo; |
62 | QString title; | 62 | QString title; |
63 | QString role; | 63 | QString role; |
64 | QString organization; | 64 | QString organization; |
65 | QString note; | 65 | QString note; |
66 | QString productId; | 66 | QString productId; |
67 | QDateTime revision; | 67 | QDateTime revision; |
68 | QString sortString; | 68 | QString sortString; |
69 | QString externalUID; | 69 | QString externalUID; |
70 | QString originalExternalUID; | ||
70 | KURL url; | 71 | KURL url; |
71 | Secrecy secrecy; | 72 | Secrecy secrecy; |
72 | Picture logo; | 73 | Picture logo; |
73 | Picture photo; | 74 | Picture photo; |
74 | Sound sound; | 75 | Sound sound; |
75 | Agent agent; | 76 | Agent agent; |
76 | QString mExternalId; | 77 | QString mExternalId; |
77 | PhoneNumber::List phoneNumbers; | 78 | PhoneNumber::List phoneNumbers; |
78 | Address::List addresses; | 79 | Address::List addresses; |
79 | Key::List keys; | 80 | Key::List keys; |
80 | QStringList emails; | 81 | QStringList emails; |
81 | QStringList categories; | 82 | QStringList categories; |
@@ -364,24 +365,36 @@ QString Addressee::IDStr() const | |||
364 | void Addressee::setExternalUID( const QString &id ) | 365 | void Addressee::setExternalUID( const QString &id ) |
365 | { | 366 | { |
366 | if ( id == mData->externalUID ) return; | 367 | if ( id == mData->externalUID ) return; |
367 | detach(); | 368 | detach(); |
368 | mData->empty = false; | 369 | mData->empty = false; |
369 | mData->externalUID = id; | 370 | mData->externalUID = id; |
370 | } | 371 | } |
371 | 372 | ||
372 | QString Addressee::externalUID() const | 373 | QString Addressee::externalUID() const |
373 | { | 374 | { |
374 | return mData->externalUID; | 375 | return mData->externalUID; |
375 | } | 376 | } |
377 | void Addressee::setOriginalExternalUID( const QString &id ) | ||
378 | { | ||
379 | if ( id == mData->originalExternalUID ) return; | ||
380 | detach(); | ||
381 | mData->empty = false; | ||
382 | mData->originalExternalUID = id; | ||
383 | } | ||
384 | |||
385 | QString Addressee::originalExternalUID() const | ||
386 | { | ||
387 | return mData->originalExternalUID; | ||
388 | } | ||
376 | 389 | ||
377 | void Addressee::setUid( const QString &id ) | 390 | void Addressee::setUid( const QString &id ) |
378 | { | 391 | { |
379 | if ( id == mData->uid ) return; | 392 | if ( id == mData->uid ) return; |
380 | detach(); | 393 | detach(); |
381 | mData->empty = false; | 394 | mData->empty = false; |
382 | mData->uid = id; | 395 | mData->uid = id; |
383 | } | 396 | } |
384 | 397 | ||
385 | QString Addressee::uid() const | 398 | QString Addressee::uid() const |
386 | { | 399 | { |
387 | if ( mData->uid.isEmpty() ) | 400 | if ( mData->uid.isEmpty() ) |