Yingdi Yu | 24ca96f | 2013-10-22 23:42:16 -0700 | [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 INVITATIONDIALOG_H |
| 12 | #define INVITATIONDIALOG_H |
| 13 | |
| 14 | #include <QDialog> |
| 15 | |
| 16 | namespace Ui { |
| 17 | class InvitationDialog; |
| 18 | } |
| 19 | |
| 20 | class InvitationDialog : public QDialog |
| 21 | { |
| 22 | Q_OBJECT |
| 23 | |
| 24 | public: |
| 25 | explicit InvitationDialog(QWidget *parent = 0); |
| 26 | ~InvitationDialog(); |
| 27 | |
| 28 | void |
| 29 | setMsg(const std::string& inviter, const std::string& chatroom); |
| 30 | |
| 31 | inline void |
| 32 | setInterestName(const ndn::Name& interestName) |
| 33 | { m_interestName = interestName; } |
| 34 | |
| 35 | signals: |
| 36 | void |
| 37 | invitationAccepted(const ndn::Name& interestName); |
| 38 | |
| 39 | void |
| 40 | invitationRejected(const ndn::Name& interestName); |
| 41 | |
| 42 | private slots: |
| 43 | void |
| 44 | onOkClicked(); |
| 45 | |
| 46 | void |
| 47 | onCancelClicked(); |
| 48 | |
| 49 | |
| 50 | private: |
| 51 | Ui::InvitationDialog *ui; |
| 52 | ndn::Name m_interestName; |
| 53 | }; |
| 54 | |
| 55 | #endif // INVITATIONDIALOG_H |