blob: bd2bd1d37a6ac183010ff0b2e8f52f6960d74c42 [file] [log] [blame]
Qiuhan Dingba3e57a2015-01-08 19:07:39 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 *
5 * BSD license, See the LICENSE file for more information
6 *
7 * Author: Qiuhan Ding <qiuhanding@cs.ucla.edu>
8 * Yingdi Yu <yingdi@cs.ucla.edu>
9 */
10
11#ifndef CHRONOS_INVITATION_REQUEST_DIALOG_HPP
12#define CHRONOS_INVITATION_REQUEST_DIALOG_HPP
13
14#include <QDialog>
15
16#ifndef Q_MOC_RUN
17#include "common.hpp"
18#endif
19
20namespace Ui {
21class InvitationRequestDialog;
22}
23
24namespace chronochat{
25
26class InvitationRequestDialog : public QDialog
27{
28 Q_OBJECT
29
30public:
31 explicit
32 InvitationRequestDialog(QWidget* parent = 0);
33
34 ~InvitationRequestDialog();
35
36signals:
37 void
38 invitationRequestResponded(const ndn::Name& invitationName, bool accepted);
39
40public slots:
41 void
42 onInvitationRequestReceived(QString alias, QString chatroom, ndn::Name invitationInterest);
43
44private slots:
45 void
46 onOkClicked();
47
48 void
49 onCancelClicked();
50
51
52private:
53 Ui::InvitationRequestDialog* ui;
54 ndn::Name m_invitationInterest;
55};
56
57} // namespace chronochat
58
59#endif // CHRONOS_INVITATION_REQUEST_DIALOG_HPP