blob: ea86676356de4074f31291a20d2bc02637a8f802 [file] [log] [blame]
Mengjin Yan391d7242014-08-28 20:51:55 -07001#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
14namespace Ui {
15class SendInvitationRequestDialog;
16}
17
18namespace chronos {
19
20class SendInvitationRequestDialog : public QDialog
21{
22 Q_OBJECT
23
24public:
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
34public 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
47private:
48 Ui::SendInvitationRequestDialog *ui;
49 QString m_chatroomName;
50 QStringListModel *m_stringListModel;
51};
52
53} //namespace chronos
54
55#endif // SENDINVITATIONREQUESTDIALOG_H