Changes to logout prosess and login state storing, logout bug fix
[situare] / src / engine / contactmanager.h
1 #ifndef CONTACTMANAGER_H
2 #define CONTACTMANAGER_H
3
4 #include <QObject>
5 #include <QHash>
6
7 class ContactManagerPrivate;
8
9 /**
10 * @brief Manages phone address book contacts.
11 */
12 class ContactManager : public QObject
13 {
14     Q_OBJECT
15 public:
16     /**
17     * @brief Constructor
18     *
19     * @param parent QObject
20     */
21     ContactManager(QObject *parent = 0);
22
23 /*******************************************************************************
24 * MEMBER FUNCTIONS AND SLOTS
25 ******************************************************************************/
26     /**
27     * @brief Returns contact's guid from contact's facebook ID.
28     *
29     * @param facebookId contact's facebook ID
30     * @return contact guid
31     */
32     QString contactGuid(const QString &facebookId) const;
33
34     /**
35     * @brief Requests contact guids.
36     *
37     * Guid is a globally unique ID of a contact, which can be used with
38     * other datastores.
39     */
40     void requestContactGuids();
41
42 /******************************************************************************
43 * DATA MEMBERS
44 ******************************************************************************/
45 private:
46     ContactManagerPrivate *m_contactManagerPrivate; ///< ContactManagerPrivate
47 };
48
49 #endif // CONTACTMANAGER_H