From kde-commits Wed Apr 13 16:38:51 2005 From: Tobias Koenig Date: Wed, 13 Apr 2005 16:38:51 +0000 To: kde-commits Subject: kdelibs/kabc Message-Id: <20050413163851.9674A492 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111341034209193 CVS commit by tokoe: Add a method which returns whether the loading of the resources has been finished. M +5 -0 addressbook.cpp 1.78 M +8 -0 addressbook.h 1.54 --- kdelibs/kabc/addressbook.cpp #1.77:1.78 @@ -805,4 +805,9 @@ void AddressBook::cleanUp() } +bool AddressBook::loadingHasFinished() const +{ + return d->mPendingLoadResources.isEmpty(); +} + void AddressBook::resourceLoadingFinished( Resource *res ) { --- kdelibs/kabc/addressbook.h #1.53:1.54 @@ -354,4 +354,12 @@ class KABC_EXPORT AddressBook : public Q void emitAddressBookChanged() { emit addressBookChanged( this ); } + /** + Returns true when the loading of the addressbook has finished, + otherwise false. + + @since 3.5 + */ + bool loadingHasFinished() const; + signals: /**