contacts_plat/contacts_ui_extensions_api/inc/cntuigroupsupplier.h
changeset 50 77bc263e1626
parent 37 fd64c38c277d
equal deleted inserted replaced
49:74b30151afd6 50:77bc263e1626
    22 #include <cntuiextensiongroup.h>
    22 #include <cntuiextensiongroup.h>
    23 
    23 
    24 /**
    24 /**
    25  * UI extension class that supplies groups to phonebook groups UI.
    25  * UI extension class that supplies groups to phonebook groups UI.
    26  */
    26  */
    27 class CntUiGroupSupplier
    27 class CntUiGroupSupplier : public QObject
    28 {
    28 {
    29  public:
    29 public:
       
    30     CntUiGroupSupplier() {}
       
    31 
       
    32     /**
       
    33      * Returns true if this supplier should be handled asynchronously and
       
    34      * false otherwise.
       
    35      *
       
    36      * @return bool, asynchronity
       
    37      */  
       
    38     virtual bool isAsynch() const = 0;
    30 
    39 
    31     /**
    40     /**
    32      * Returns number of groups provided by the extension.
    41      * Returns number of groups provided by the extension.
    33      *
    42      *
    34      * @return int, group count
    43      * @return int, group count
    47     virtual void* GroupSupplierExtension(
    56     virtual void* GroupSupplierExtension(
    48             int /*aExtensionId*/ )
    57             int /*aExtensionId*/ )
    49     {
    58     {
    50         return NULL;
    59         return NULL;
    51     }
    60     }
       
    61 
       
    62 signals:
       
    63     /**
       
    64      * Asynchronous suppliers should re-implement this signal and emit it
       
    65      * once group loading is ready.
       
    66      */  
       
    67     void groupsReady();
       
    68 
    52 protected:
    69 protected:
    53     // prevent deleting by client
    70     // prevent deleting by client
    54     virtual ~CntUiGroupSupplier() {}
    71     virtual ~CntUiGroupSupplier() {}
    55 };
    72 };
    56 
    73