diff options
author | Jerome Pasion <jerome.pasion@nokia.com> | 2011-03-03 15:27:38 (GMT) |
---|---|---|
committer | Jerome Pasion <jerome.pasion@nokia.com> | 2011-03-03 15:27:38 (GMT) |
commit | 3978b7d5064e12c413b0938b5ebe7b3fe0e00c87 (patch) | |
tree | ff7ce3b3de4efa30838ce61c1b0186e784c086e3 /demos/mobile/qcamera/contactsdlg.h | |
parent | 350f284bc6842e27ccf26f292e21b5f22a8ef0d7 (diff) | |
download | Qt-3978b7d5064e12c413b0938b5ebe7b3fe0e00c87.zip Qt-3978b7d5064e12c413b0938b5ebe7b3fe0e00c87.tar.gz Qt-3978b7d5064e12c413b0938b5ebe7b3fe0e00c87.tar.bz2 |
Added 4 mobile demos. Added links and descriptions for them.
Reviewed-by: David Boddie
Diffstat (limited to 'demos/mobile/qcamera/contactsdlg.h')
-rwxr-xr-x | demos/mobile/qcamera/contactsdlg.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/demos/mobile/qcamera/contactsdlg.h b/demos/mobile/qcamera/contactsdlg.h new file mode 100755 index 0000000..e9d5c17 --- /dev/null +++ b/demos/mobile/qcamera/contactsdlg.h @@ -0,0 +1,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 |