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 | |
Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame^] | 11 | #ifndef INVITATION_DIALOG_H |
| 12 | #define INVITATION_DIALOG_H |
Yingdi Yu | 24ca96f | 2013-10-22 23:42:16 -0700 | [diff] [blame] | 13 | |
| 14 | #include <QDialog> |
| 15 | |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 16 | #ifndef Q_MOC_RUN |
Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame^] | 17 | #include <ndn-cpp-dev/name.hpp> |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 18 | #endif |
| 19 | |
Yingdi Yu | 24ca96f | 2013-10-22 23:42:16 -0700 | [diff] [blame] | 20 | namespace Ui { |
| 21 | class InvitationDialog; |
| 22 | } |
| 23 | |
| 24 | class InvitationDialog : public QDialog |
| 25 | { |
| 26 | Q_OBJECT |
| 27 | |
| 28 | public: |
| 29 | explicit InvitationDialog(QWidget *parent = 0); |
| 30 | ~InvitationDialog(); |
| 31 | |
| 32 | void |
Yingdi Yu | 7989eb2 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 33 | setInvitation(const std::string& alias, |
Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame^] | 34 | const std::string& chatroom, |
Yingdi Yu | fa4ce79 | 2014-02-06 18:09:22 -0800 | [diff] [blame] | 35 | const ndn::Name& invitationInterest); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 36 | |
Yingdi Yu | 24ca96f | 2013-10-22 23:42:16 -0700 | [diff] [blame] | 37 | signals: |
| 38 | void |
Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame^] | 39 | invitationResponded(const ndn::Name& invitationName, bool accepted); |
Yingdi Yu | 24ca96f | 2013-10-22 23:42:16 -0700 | [diff] [blame] | 40 | |
| 41 | private slots: |
| 42 | void |
| 43 | onOkClicked(); |
| 44 | |
| 45 | void |
| 46 | onCancelClicked(); |
| 47 | |
| 48 | |
| 49 | private: |
| 50 | Ui::InvitationDialog *ui; |
Yingdi Yu | fa4ce79 | 2014-02-06 18:09:22 -0800 | [diff] [blame] | 51 | ndn::Name m_invitationInterest; |
Yingdi Yu | 24ca96f | 2013-10-22 23:42:16 -0700 | [diff] [blame] | 52 | }; |
| 53 | |
Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame^] | 54 | #endif // INVITATION_DIALOG_H |