c++qtblackberry-10blackberry-cascadesqt-mobility

Get notification when contacts are added/deleted/updated


On BlackBerry 10, how can my Qt application be notified when a contact is added, deleted, or updated? Is there a contact API?


Solution

  • QContactManager has these 3 signals:

    void QContactManager::contactsAdded ( const QList<QContactLocalId> & contactIds );
    void QContactManager::contactsChanged ( const QList<QContactLocalId> & contactIds );
    void QContactManager::contactsRemoved ( const QList<QContactLocalId> & contactIds );
    

    Connect your slots to them in order to receive the notifications.