1 #ifndef CONTACTMANAGER_H
2 #define CONTACTMANAGER_H
7 class ContactManagerPrivate;
10 * @brief Manages phone address book contacts.
12 class ContactManager : public QObject
17 * @brief Friend class for ContactManagerPrivate.
19 friend class ContactManagerPrivate;
24 * @param parent QObject
26 ContactManager(QObject *parent = 0);
28 /*******************************************************************************
29 * MEMBER FUNCTIONS AND SLOTS
30 ******************************************************************************/
32 * @brief Returns contact's guid from contact's facebook ID.
34 * @param facebookId contact's facebook ID
35 * @return contact guid
37 QString contactGuid(const QString &facebookId) const;
40 * @brief Requests contact guids.
42 * Guid is a globally unique ID of a contact, which can be used with
45 void requestContactGuids();
47 /*******************************************************************************
49 ******************************************************************************/
52 * @brief Signal for contacts guids added.
54 * Contact guids has Facebook ID as key and Guid as value.. Guid is a globally
55 * unique ID of a contact, which can be used with other datastores.
56 * @param contactGuids list of contact guids
58 void contactsGuidsAdded(const QHash<QString, QString> &contactGuids);
60 /******************************************************************************
62 ******************************************************************************/
64 ContactManagerPrivate *m_contactManagerPrivate; ///< ContactManagerPrivate
67 #endif // CONTACTMANAGER_H