summaryrefslogtreecommitdiff
path: root/demos/mobile/qcamera/contactsdlg.h
blob: e9d5c1784fa2bc8b2fbeaad03a0705a41efdbecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Copyright (c) 2011 Nokia Corporation.
 */

#ifndef CONTACTSDIALOG_H
#define CONTACTSDIALOG_H

#include <QtGui/QDialog>
#include <QListWidget>
#include <QPointer>

// QtMobility API headers
// Contacts
#include <QContactManager>
#include <QContactPhoneNumber>
#include <QContactSortOrder>
#include <QContact>
#include <QContactName>

// QtMobility namespace
QTM_USE_NAMESPACE

class ContactsDialog: public QDialog
{
Q_OBJECT

public:
    ContactsDialog(QWidget *parent = 0);
    ~ContactsDialog();

public slots:
    void itemClicked(QListWidgetItem *item);
    void selectContact();

signals:
    void contactSelected(QString phoneNumber);

private:
    void createContactManager();
    void searchContact();

private:
    QPointer<QContactManager> m_contactManager;
    QListWidget* m_listWidget;
};

#endif // CONTACTSDIALOG_H