Mengjin Yan | 391d724 | 2014-08-28 20:51:55 -0700 | [diff] [blame] | 1 | #ifndef SENDINVITATIONREQUESTDIALOG_H |
| 2 | #define SENDINVITATIONREQUESTDIALOG_H |
| 3 | |
| 4 | #include <QDialog> |
| 5 | #include <QStringListModel> |
| 6 | #include <QMessageBox> |
| 7 | #include <QDebug> |
| 8 | #include <QAbstractItemView> |
| 9 | |
| 10 | #ifndef Q_MOC_RUN |
| 11 | #include "chatroom-discovery.hpp" |
| 12 | #endif |
| 13 | |
| 14 | namespace Ui { |
| 15 | class SendInvitationRequestDialog; |
| 16 | } |
| 17 | |
| 18 | namespace chronos { |
| 19 | |
| 20 | class SendInvitationRequestDialog : public QDialog |
| 21 | { |
| 22 | Q_OBJECT |
| 23 | |
| 24 | public: |
| 25 | explicit SendInvitationRequestDialog(QWidget *parent = 0); |
| 26 | ~SendInvitationRequestDialog(); |
| 27 | |
| 28 | void |
| 29 | setContacts(const std::vector<ndn::Name>& contacts); |
| 30 | |
| 31 | void |
| 32 | setChatroomName(const QString chatroomName); |
| 33 | |
| 34 | public slots: |
| 35 | void |
| 36 | onSendButtonClicked(); |
| 37 | |
| 38 | void |
| 39 | onCancelButtonClicked(); |
| 40 | |
| 41 | void |
| 42 | onContactListViewClicked(QModelIndex modelIndex); |
| 43 | |
| 44 | void |
| 45 | onContactListViewDoubleClicked(QModelIndex modelIndex); |
| 46 | |
| 47 | private: |
| 48 | Ui::SendInvitationRequestDialog *ui; |
| 49 | QString m_chatroomName; |
| 50 | QStringListModel *m_stringListModel; |
| 51 | }; |
| 52 | |
| 53 | } //namespace chronos |
| 54 | |
| 55 | #endif // SENDINVITATIONREQUESTDIALOG_H |