Qiuhan Ding | ba3e57a | 2015-01-08 19:07:39 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame] | 3 | * Copyright (c) 2020, Regents of the University of California |
Qiuhan Ding | ba3e57a | 2015-01-08 19:07:39 -0800 | [diff] [blame] | 4 | * |
| 5 | * BSD license, See the LICENSE file for more information |
| 6 | * |
| 7 | * Author: Qiuhan Ding <qiuhanding@cs.ucla.edu> |
| 8 | * Yingdi Yu <yingdi@cs.ucla.edu> |
| 9 | */ |
| 10 | |
Qiuhan Ding | 0cfc151 | 2015-02-17 17:44:11 -0800 | [diff] [blame] | 11 | #ifndef CHRONOCHAT_INVITATION_REQUEST_DIALOG_HPP |
| 12 | #define CHRONOCHAT_INVITATION_REQUEST_DIALOG_HPP |
Qiuhan Ding | ba3e57a | 2015-01-08 19:07:39 -0800 | [diff] [blame] | 13 | |
Qiuhan Ding | ba3e57a | 2015-01-08 19:07:39 -0800 | [diff] [blame] | 14 | #include "common.hpp" |
Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame] | 15 | #include <QDialog> |
Qiuhan Ding | ba3e57a | 2015-01-08 19:07:39 -0800 | [diff] [blame] | 16 | |
| 17 | namespace Ui { |
| 18 | class InvitationRequestDialog; |
Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame] | 19 | } // namespace Ui |
Qiuhan Ding | ba3e57a | 2015-01-08 19:07:39 -0800 | [diff] [blame] | 20 | |
Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame] | 21 | namespace chronochat { |
Qiuhan Ding | ba3e57a | 2015-01-08 19:07:39 -0800 | [diff] [blame] | 22 | |
| 23 | class InvitationRequestDialog : public QDialog |
| 24 | { |
| 25 | Q_OBJECT |
| 26 | |
| 27 | public: |
| 28 | explicit |
| 29 | InvitationRequestDialog(QWidget* parent = 0); |
| 30 | |
| 31 | ~InvitationRequestDialog(); |
| 32 | |
| 33 | signals: |
| 34 | void |
| 35 | invitationRequestResponded(const ndn::Name& invitationName, bool accepted); |
| 36 | |
| 37 | public slots: |
| 38 | void |
| 39 | onInvitationRequestReceived(QString alias, QString chatroom, ndn::Name invitationInterest); |
| 40 | |
| 41 | private slots: |
| 42 | void |
| 43 | onOkClicked(); |
| 44 | |
| 45 | void |
| 46 | onCancelClicked(); |
| 47 | |
| 48 | |
| 49 | private: |
| 50 | Ui::InvitationRequestDialog* ui; |
| 51 | ndn::Name m_invitationInterest; |
| 52 | }; |
| 53 | |
| 54 | } // namespace chronochat |
| 55 | |
Qiuhan Ding | 0cfc151 | 2015-02-17 17:44:11 -0800 | [diff] [blame] | 56 | #endif // CHRONOCHAT_INVITATION_REQUEST_DIALOG_HPP |