1 #ifndef CONTACTMANAGERPRIVATE_H
2 #define CONTACTMANAGERPRIVATE_H
6 #include <QContactManager>
13 * @brief Manages phone address book contacts.
15 class ContactManagerPrivate : public QObject
23 * @param parent QObject
25 ContactManagerPrivate(QObject *parent = 0);
27 /*******************************************************************************
28 * MEMBER FUNCTIONS AND SLOTS
29 ******************************************************************************/
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();
49 * @brief Parses Facebook id from account URI.
51 * @param accountUri Accounts universal resource identifier.
52 * @return Facebook ID or empty if cannot parse the ID.
54 QString parseFacebookId(const QString &accountUri) const;
56 /******************************************************************************
58 ******************************************************************************/
60 QContactManager *m_manager; ///< Contact manager
61 QHash<QString, QString> m_contactGuids; ///< List of contact GUIDS
64 #endif // CONTACTMANAGERPRIVATE_H