blob: 011218569e9fe5202852b839c5065792279137a4 [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
Yingdi Yu348f5ea2014-03-01 14:47:25 -080011#ifndef INVITATION_DIALOG_H
12#define INVITATION_DIALOG_H
Yingdi Yu24ca96f2013-10-22 23:42:16 -070013
14#include <QDialog>
15
Yingdi Yu978b3ae2013-10-23 11:50:51 -070016#ifndef Q_MOC_RUN
Yingdi Yu348f5ea2014-03-01 14:47:25 -080017#include <ndn-cpp-dev/name.hpp>
Yingdi Yu978b3ae2013-10-23 11:50:51 -070018#endif
19
Yingdi Yu24ca96f2013-10-22 23:42:16 -070020namespace Ui {
21class InvitationDialog;
22}
23
24class InvitationDialog : public QDialog
25{
26 Q_OBJECT
27
28public:
29 explicit InvitationDialog(QWidget *parent = 0);
30 ~InvitationDialog();
31
32 void
Yingdi Yu7989eb22013-10-31 17:38:22 -070033 setInvitation(const std::string& alias,
Yingdi Yu348f5ea2014-03-01 14:47:25 -080034 const std::string& chatroom,
Yingdi Yufa4ce792014-02-06 18:09:22 -080035 const ndn::Name& invitationInterest);
Yingdi Yu978b3ae2013-10-23 11:50:51 -070036
Yingdi Yu24ca96f2013-10-22 23:42:16 -070037signals:
38 void
Yingdi Yu348f5ea2014-03-01 14:47:25 -080039 invitationResponded(const ndn::Name& invitationName, bool accepted);
Yingdi Yu24ca96f2013-10-22 23:42:16 -070040
41private slots:
42 void
43 onOkClicked();
44
45 void
46 onCancelClicked();
47
48
49private:
50 Ui::InvitationDialog *ui;
Yingdi Yufa4ce792014-02-06 18:09:22 -080051 ndn::Name m_invitationInterest;
Yingdi Yu24ca96f2013-10-22 23:42:16 -070052};
53
Yingdi Yu348f5ea2014-03-01 14:47:25 -080054#endif // INVITATION_DIALOG_H