Yingdi Yu | daceb8a | 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 | |
Yingdi Yu | 53eb8a7 | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 16 | #ifndef Q_MOC_RUN |
Yingdi Yu | 6df6125 | 2014-01-21 11:05:11 -0800 | [diff] [blame] | 17 | #include <ndn-cpp-dev/data.hpp> |
| 18 | #include <ndn-cpp-dev/security/identity-certificate.hpp> |
Yingdi Yu | a1a688f | 2014-02-06 18:09:22 -0800 | [diff] [blame^] | 19 | #include "invitation.h" |
Yingdi Yu | 53eb8a7 | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 20 | #endif |
| 21 | |
Yingdi Yu | daceb8a | 2013-10-22 23:42:16 -0700 | [diff] [blame] | 22 | namespace Ui { |
| 23 | class InvitationDialog; |
| 24 | } |
| 25 | |
| 26 | class InvitationDialog : public QDialog |
| 27 | { |
| 28 | Q_OBJECT |
| 29 | |
| 30 | public: |
| 31 | explicit InvitationDialog(QWidget *parent = 0); |
| 32 | ~InvitationDialog(); |
| 33 | |
| 34 | void |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 35 | setInvitation(const std::string& alias, |
Yingdi Yu | a1a688f | 2014-02-06 18:09:22 -0800 | [diff] [blame^] | 36 | const ndn::Name& invitationInterest); |
Yingdi Yu | 53eb8a7 | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 37 | |
Yingdi Yu | daceb8a | 2013-10-22 23:42:16 -0700 | [diff] [blame] | 38 | signals: |
| 39 | void |
Yingdi Yu | a1a688f | 2014-02-06 18:09:22 -0800 | [diff] [blame^] | 40 | invitationAccepted(const ndn::Name& invitationInterest); |
Yingdi Yu | daceb8a | 2013-10-22 23:42:16 -0700 | [diff] [blame] | 41 | |
| 42 | void |
Yingdi Yu | a1a688f | 2014-02-06 18:09:22 -0800 | [diff] [blame^] | 43 | invitationRejected(const ndn::Name& invitationInterest); |
Yingdi Yu | daceb8a | 2013-10-22 23:42:16 -0700 | [diff] [blame] | 44 | |
| 45 | private slots: |
| 46 | void |
| 47 | onOkClicked(); |
| 48 | |
| 49 | void |
| 50 | onCancelClicked(); |
| 51 | |
| 52 | |
| 53 | private: |
| 54 | Ui::InvitationDialog *ui; |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 55 | std::string m_inviterAlias; |
Yingdi Yu | a1a688f | 2014-02-06 18:09:22 -0800 | [diff] [blame^] | 56 | ndn::Name m_invitationInterest; |
Yingdi Yu | daceb8a | 2013-10-22 23:42:16 -0700 | [diff] [blame] | 57 | }; |
| 58 | |
| 59 | #endif // INVITATIONDIALOG_H |