blob: 8edc04d5a455bc9e774f4706aedc468e14ac761b [file] [log] [blame]
Yingdi Yu24ca96f2013-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 Yu978b3ae2013-10-23 11:50:51 -070016#ifndef Q_MOC_RUN
Yingdi Yub6fb0302014-01-21 11:05:11 -080017#include <ndn-cpp-dev/data.hpp>
18#include <ndn-cpp-dev/security/identity-certificate.hpp>
Yingdi Yufa4ce792014-02-06 18:09:22 -080019#include "invitation.h"
Yingdi Yu978b3ae2013-10-23 11:50:51 -070020#endif
21
Yingdi Yu24ca96f2013-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 Yu7989eb22013-10-31 17:38:22 -070035 setInvitation(const std::string& alias,
Yingdi Yufa4ce792014-02-06 18:09:22 -080036 const ndn::Name& invitationInterest);
Yingdi Yu978b3ae2013-10-23 11:50:51 -070037
Yingdi Yu24ca96f2013-10-22 23:42:16 -070038signals:
39 void
Yingdi Yufa4ce792014-02-06 18:09:22 -080040 invitationAccepted(const ndn::Name& invitationInterest);
Yingdi Yu24ca96f2013-10-22 23:42:16 -070041
42 void
Yingdi Yufa4ce792014-02-06 18:09:22 -080043 invitationRejected(const ndn::Name& invitationInterest);
Yingdi Yu24ca96f2013-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 Yu7989eb22013-10-31 17:38:22 -070055 std::string m_inviterAlias;
Yingdi Yufa4ce792014-02-06 18:09:22 -080056 ndn::Name m_invitationInterest;
Yingdi Yu24ca96f2013-10-22 23:42:16 -070057};
58
59#endif // INVITATIONDIALOG_H