blob: bcfeaa68d70f7c0aa246a5b68fe1540f11a6460a [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
16namespace Ui {
17class InvitationDialog;
18}
19
20class InvitationDialog : public QDialog
21{
22 Q_OBJECT
23
24public:
25 explicit InvitationDialog(QWidget *parent = 0);
26 ~InvitationDialog();
27
28 void
29 setMsg(const std::string& inviter, const std::string& chatroom);
30
31 inline void
32 setInterestName(const ndn::Name& interestName)
33 { m_interestName = interestName; }
34
35signals:
36 void
37 invitationAccepted(const ndn::Name& interestName);
38
39 void
40 invitationRejected(const ndn::Name& interestName);
41
42private slots:
43 void
44 onOkClicked();
45
46 void
47 onCancelClicked();
48
49
50private:
51 Ui::InvitationDialog *ui;
52 ndn::Name m_interestName;
53};
54
55#endif // INVITATIONDIALOG_H