blob: 8edc04d5a455bc9e774f4706aedc468e14ac761b [file] [log] [blame]
Yingdi Yudaceb8a2013-10-22 23:42:16 -07001/* -*- 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 Yu53eb8a72013-10-23 11:50:51 -070016#ifndef Q_MOC_RUN
Yingdi Yu6df61252014-01-21 11:05:11 -080017#include <ndn-cpp-dev/data.hpp>
18#include <ndn-cpp-dev/security/identity-certificate.hpp>
Yingdi Yua1a688f2014-02-06 18:09:22 -080019#include "invitation.h"
Yingdi Yu53eb8a72013-10-23 11:50:51 -070020#endif
21
Yingdi Yudaceb8a2013-10-22 23:42:16 -070022namespace Ui {
23class InvitationDialog;
24}
25
26class InvitationDialog : public QDialog
27{
28 Q_OBJECT
29
30public:
31 explicit InvitationDialog(QWidget *parent = 0);
32 ~InvitationDialog();
33
34 void
Yingdi Yu42f66462013-10-31 17:38:22 -070035 setInvitation(const std::string& alias,
Yingdi Yua1a688f2014-02-06 18:09:22 -080036 const ndn::Name& invitationInterest);
Yingdi Yu53eb8a72013-10-23 11:50:51 -070037
Yingdi Yudaceb8a2013-10-22 23:42:16 -070038signals:
39 void
Yingdi Yua1a688f2014-02-06 18:09:22 -080040 invitationAccepted(const ndn::Name& invitationInterest);
Yingdi Yudaceb8a2013-10-22 23:42:16 -070041
42 void
Yingdi Yua1a688f2014-02-06 18:09:22 -080043 invitationRejected(const ndn::Name& invitationInterest);
Yingdi Yudaceb8a2013-10-22 23:42:16 -070044
45private slots:
46 void
47 onOkClicked();
48
49 void
50 onCancelClicked();
51
52
53private:
54 Ui::InvitationDialog *ui;
Yingdi Yu42f66462013-10-31 17:38:22 -070055 std::string m_inviterAlias;
Yingdi Yua1a688f2014-02-06 18:09:22 -080056 ndn::Name m_invitationInterest;
Yingdi Yudaceb8a2013-10-22 23:42:16 -070057};
58
59#endif // INVITATIONDIALOG_H