Qiuhan Ding | ba3e57a | 2015-01-08 19:07:39 -0800 | [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 | * |
| 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 | |
| 11 | #ifndef CHRONOS_INVITATION_REQUEST_DIALOG_HPP |
| 12 | #define CHRONOS_INVITATION_REQUEST_DIALOG_HPP |
| 13 | |
| 14 | #include <QDialog> |
| 15 | |
| 16 | #ifndef Q_MOC_RUN |
| 17 | #include "common.hpp" |
| 18 | #endif |
| 19 | |
| 20 | namespace Ui { |
| 21 | class InvitationRequestDialog; |
| 22 | } |
| 23 | |
| 24 | namespace chronochat{ |
| 25 | |
| 26 | class InvitationRequestDialog : public QDialog |
| 27 | { |
| 28 | Q_OBJECT |
| 29 | |
| 30 | public: |
| 31 | explicit |
| 32 | InvitationRequestDialog(QWidget* parent = 0); |
| 33 | |
| 34 | ~InvitationRequestDialog(); |
| 35 | |
| 36 | signals: |
| 37 | void |
| 38 | invitationRequestResponded(const ndn::Name& invitationName, bool accepted); |
| 39 | |
| 40 | public slots: |
| 41 | void |
| 42 | onInvitationRequestReceived(QString alias, QString chatroom, ndn::Name invitationInterest); |
| 43 | |
| 44 | private slots: |
| 45 | void |
| 46 | onOkClicked(); |
| 47 | |
| 48 | void |
| 49 | onCancelClicked(); |
| 50 | |
| 51 | |
| 52 | private: |
| 53 | Ui::InvitationRequestDialog* ui; |
| 54 | ndn::Name m_invitationInterest; |
| 55 | }; |
| 56 | |
| 57 | } // namespace chronochat |
| 58 | |
| 59 | #endif // CHRONOS_INVITATION_REQUEST_DIALOG_HPP |