Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2013, Regents of the University of California |
| 4 | * Yingdi Yu |
| 5 | * |
| 6 | * BSD license, See the LICENSE file for more information |
| 7 | * |
| 8 | * Author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 9 | */ |
| 10 | |
| 11 | #ifndef INVITE_LIST_DIALOG_H |
| 12 | #define INVITE_LIST_DIALOG_H |
| 13 | |
| 14 | #include <QDialog> |
| 15 | #include <QStringListModel> |
| 16 | |
| 17 | #ifndef Q_MOC_RUN |
| 18 | #endif |
| 19 | |
| 20 | namespace Ui { |
| 21 | class InviteListDialog; |
| 22 | } |
| 23 | |
| 24 | class InviteListDialog : public QDialog |
| 25 | { |
| 26 | Q_OBJECT |
| 27 | |
| 28 | public: |
| 29 | explicit |
| 30 | InviteListDialog(QWidget *parent = 0); |
Yingdi Yu | fa0b6a0 | 2014-04-30 14:26:42 -0700 | [diff] [blame] | 31 | |
Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame] | 32 | ~InviteListDialog(); |
| 33 | |
| 34 | void |
| 35 | setInviteLabel(std::string label); |
Yingdi Yu | fa0b6a0 | 2014-04-30 14:26:42 -0700 | [diff] [blame] | 36 | |
Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame] | 37 | signals: |
| 38 | void |
| 39 | sendInvitation(const QString&); |
| 40 | |
| 41 | public slots: |
| 42 | void |
| 43 | onContactAliasListReady(const QStringList& aliasList); |
| 44 | |
| 45 | void |
| 46 | onContactIdListReady(const QStringList& idList); |
| 47 | |
| 48 | private slots: |
Yingdi Yu | fa0b6a0 | 2014-04-30 14:26:42 -0700 | [diff] [blame] | 49 | void |
Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame] | 50 | onInviteClicked(); |
| 51 | |
| 52 | void |
| 53 | onCancelClicked(); |
| 54 | |
| 55 | private: |
| 56 | Ui::InviteListDialog *ui; |
| 57 | QStringListModel* m_contactListModel; |
| 58 | QStringList m_contactAliasList; |
| 59 | QStringList m_contactIdList; |
| 60 | }; |
| 61 | |
| 62 | #endif // INVITE_LIST_DIALOG_H |