1 #ifndef CONTACTMANAGER_H
2 #define CONTACTMANAGER_H
7 class ContactManagerPrivate;
9 class ContactManager : public QObject
14 * @brief Friend class for ContactManagerPrivate.
16 friend class ContactManagerPrivate;
18 ContactManager(QObject *parent = 0);
20 /*******************************************************************************
21 * MEMBER FUNCTIONS AND SLOTS
22 ******************************************************************************/
24 * @brief Returns contact's guid from contact's facebook ID.
26 * @param facebookId contact's facebook ID
27 * @return contact guid
29 QString contactGuid(const QString &facebookId) const;
32 * @brief Requests contact guids.
34 * Guid is a globally unique ID of a contact, which can be used with
37 void requestContactGuids();
39 /*******************************************************************************
41 ******************************************************************************/
44 * @brief Signal for contacts guids added.
46 * Contact guids has Facebook ID as key and Guid as value.. Guid is a globally
47 * unique ID of a contact, which can be used with other datastores.
48 * @param contactGuids list of contact guids
50 void contactsGuidsAdded(const QHash<QString, QString> &contactGuids);
52 /******************************************************************************
54 ******************************************************************************/
56 ContactManagerPrivate *m_contactManagerPrivate; ///< ContactManagerPrivate
59 #endif // CONTACTMANAGER_H