contacts_plat/contacts_ui_extensions_api/inc/cntuigroupsupplier.h
changeset 59 a642906a277a
parent 37 fd64c38c277d
--- a/contacts_plat/contacts_ui_extensions_api/inc/cntuigroupsupplier.h	Tue Jul 06 14:05:47 2010 +0300
+++ b/contacts_plat/contacts_ui_extensions_api/inc/cntuigroupsupplier.h	Wed Aug 18 09:39:00 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() {}