diff -r 74b30151afd6 -r 77bc263e1626 contacts_plat/contacts_ui_extensions_api/inc/cntuigroupsupplier.h --- a/contacts_plat/contacts_ui_extensions_api/inc/cntuigroupsupplier.h Wed Jul 21 11:09:07 2010 +0300 +++ b/contacts_plat/contacts_ui_extensions_api/inc/cntuigroupsupplier.h Wed Jul 21 11:21:49 2010 +0300 @@ -24,9 +24,18 @@ /** * UI extension class that supplies groups to phonebook groups UI. */ -class CntUiGroupSupplier +class CntUiGroupSupplier : public QObject { - public: +public: + CntUiGroupSupplier() {} + + /** + * Returns true if this supplier should be handled asynchronously and + * false otherwise. + * + * @return bool, asynchronity + */ + virtual bool isAsynch() const = 0; /** * Returns number of groups provided by the extension. @@ -49,6 +58,14 @@ { return NULL; } + +signals: + /** + * Asynchronous suppliers should re-implement this signal and emit it + * once group loading is ready. + */ + void groupsReady(); + protected: // prevent deleting by client virtual ~CntUiGroupSupplier() {}