blob: 6441b4b7ec4f9204af348903a0410c11ff4f5cbf [file] [log] [blame]
Qiuhan Dingba3e57a2015-01-08 19:07:39 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
Varun Patila24bd3e2020-11-24 10:08:33 +05303 * Copyright (c) 2020, Regents of the University of California
Qiuhan Dingba3e57a2015-01-08 19:07:39 -08004 *
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
Qiuhan Ding0cfc1512015-02-17 17:44:11 -080011#ifndef CHRONOCHAT_INVITATION_REQUEST_DIALOG_HPP
12#define CHRONOCHAT_INVITATION_REQUEST_DIALOG_HPP
Qiuhan Dingba3e57a2015-01-08 19:07:39 -080013
Qiuhan Dingba3e57a2015-01-08 19:07:39 -080014#include "common.hpp"
Varun Patila24bd3e2020-11-24 10:08:33 +053015#include <QDialog>
Qiuhan Dingba3e57a2015-01-08 19:07:39 -080016
17namespace Ui {
18class InvitationRequestDialog;
Varun Patila24bd3e2020-11-24 10:08:33 +053019} // namespace Ui
Qiuhan Dingba3e57a2015-01-08 19:07:39 -080020
Varun Patila24bd3e2020-11-24 10:08:33 +053021namespace chronochat {
Qiuhan Dingba3e57a2015-01-08 19:07:39 -080022
23class InvitationRequestDialog : public QDialog
24{
25 Q_OBJECT
26
27public:
28 explicit
29 InvitationRequestDialog(QWidget* parent = 0);
30
31 ~InvitationRequestDialog();
32
33signals:
34 void
35 invitationRequestResponded(const ndn::Name& invitationName, bool accepted);
36
37public slots:
38 void
39 onInvitationRequestReceived(QString alias, QString chatroom, ndn::Name invitationInterest);
40
41private slots:
42 void
43 onOkClicked();
44
45 void
46 onCancelClicked();
47
48
49private:
50 Ui::InvitationRequestDialog* ui;
51 ndn::Name m_invitationInterest;
52};
53
54} // namespace chronochat
55
Qiuhan Ding0cfc1512015-02-17 17:44:11 -080056#endif // CHRONOCHAT_INVITATION_REQUEST_DIALOG_HPP