-rw-r--r-- | kabc/addressbook.cpp | 4 | ||||
-rw-r--r-- | kabc/addressbook.h | 2 | ||||
-rw-r--r-- | kabc/addressee.cpp | 10 | ||||
-rw-r--r-- | kabc/addressee.h | 10 |
4 files changed, 13 insertions, 13 deletions
diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp index 4de7da2..9e61261 100644 --- a/kabc/addressbook.cpp +++ b/kabc/addressbook.cpp @@ -962,5 +962,5 @@ bool AddressBook::containsExternalUid( const QString& uid ) } -Addressee AddressBook::findByExternUid( const QString& uid , const QString& profile ) +const Addressee AddressBook::findByExternUid( const QString& uid , const QString& profile ) const { - Iterator it; + ConstIterator it; for ( it = begin(); it != end(); ++it ) { diff --git a/kabc/addressbook.h b/kabc/addressbook.h index 2351add..18c03b5 100644 --- a/kabc/addressbook.h +++ b/kabc/addressbook.h @@ -306,3 +306,3 @@ class AddressBook : public QObject void mergeAB( AddressBook *aBook, const QString& profile, bool isSubset ); - Addressee findByExternUid( const QString& uid , const QString& profile ); + const Addressee findByExternUid( const QString& uid , const QString& profile ) const; bool containsExternalUid( const QString& uid ); diff --git a/kabc/addressee.cpp b/kabc/addressee.cpp index d60cd6b..3b238f5 100644 --- a/kabc/addressee.cpp +++ b/kabc/addressee.cpp @@ -591,3 +591,3 @@ int Addressee::tempSyncStat() const -QString Addressee::getID( const QString & prof) +const QString Addressee::getID( const QString & prof) const { @@ -604,3 +604,3 @@ void Addressee::setCsum( const QString & prof , const QString & id ) -QString Addressee::getCsum( const QString & prof) +const QString Addressee::getCsum( const QString & prof) const { @@ -615,3 +615,3 @@ void Addressee::setIDStr( const QString & s ) -QString Addressee::IDStr() const +const QString Addressee::IDStr() const { @@ -628,3 +628,3 @@ void Addressee::setExternalUID( const QString &id ) -QString Addressee::externalUID() const +const QString Addressee::externalUID() const { @@ -655,3 +655,3 @@ void Addressee::setUid( const QString &id ) -QString Addressee::uid() const +const QString Addressee::uid() const { diff --git a/kabc/addressee.h b/kabc/addressee.h index 08d2f56..8051fec 100644 --- a/kabc/addressee.h +++ b/kabc/addressee.h @@ -102,7 +102,7 @@ class Addressee void setIDStr( const QString & ); - QString IDStr() const; + const QString IDStr() const; void setID( const QString &, const QString & ); - QString getID( const QString & ); + const QString getID( const QString & ) const; void setCsum( const QString &, const QString & ); - QString getCsum( const QString & ); + const QString getCsum( const QString & ) const ; void removeID(const QString &); @@ -115,3 +115,3 @@ class Addressee void setExternalUID( const QString &id ); - QString externalUID() const; + const QString externalUID() const; void setOriginalExternalUID( const QString &id ); @@ -133,3 +133,3 @@ class Addressee */ - QString uid() const; + const QString uid() const; /** |