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: /**