blob: 8a0f2ee12129dc91e19c4b0bdc8ec15f51ee5c09 [file] [log] [blame]
Yingdi Yu24ca96f2013-10-22 23:42:16 -07001/* -*- 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
Yingdi Yu24ca96f2013-10-22 23:42:16 -07004 * 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 Yueb692ac2015-02-10 18:46:18 -080011#ifndef CHRONOCHAT_INVITATION_DIALOG_HPP
12#define CHRONOCHAT_INVITATION_DIALOG_HPP
Yingdi Yu24ca96f2013-10-22 23:42:16 -070013
Yingdi Yu0b0a7362014-08-05 16:31:30 -070014#include "common.hpp"
Varun Patila24bd3e2020-11-24 10:08:33 +053015#include <QDialog>
Yingdi Yu978b3ae2013-10-23 11:50:51 -070016
Yingdi Yu24ca96f2013-10-22 23:42:16 -070017namespace Ui {
18class InvitationDialog;
Varun Patila24bd3e2020-11-24 10:08:33 +053019} // namespace Ui
Yingdi Yu24ca96f2013-10-22 23:42:16 -070020
Yingdi Yueb692ac2015-02-10 18:46:18 -080021namespace chronochat {
Yingdi Yu0b0a7362014-08-05 16:31:30 -070022
Yingdi Yu24ca96f2013-10-22 23:42:16 -070023class InvitationDialog : public QDialog
24{
25 Q_OBJECT
26
27public:
Yingdi Yu0b0a7362014-08-05 16:31:30 -070028 explicit
29 InvitationDialog(QWidget* parent = 0);
30
Yingdi Yu24ca96f2013-10-22 23:42:16 -070031 ~InvitationDialog();
32
Yingdi Yu24ca96f2013-10-22 23:42:16 -070033signals:
34 void
Yingdi Yu348f5ea2014-03-01 14:47:25 -080035 invitationResponded(const ndn::Name& invitationName, bool accepted);
Yingdi Yu24ca96f2013-10-22 23:42:16 -070036
Yingdi Yu2c9e7712014-10-20 11:55:05 -070037public slots:
38 void
39 onInvitationReceived(QString alias, QString chatroom, ndn::Name invitationInterest);
40
Yingdi Yu24ca96f2013-10-22 23:42:16 -070041private slots:
42 void
43 onOkClicked();
Yingdi Yufa0b6a02014-04-30 14:26:42 -070044
Yingdi Yu24ca96f2013-10-22 23:42:16 -070045 void
46 onCancelClicked();
47
48
49private:
Yingdi Yu0b0a7362014-08-05 16:31:30 -070050 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 Yueb692ac2015-02-10 18:46:18 -080054} // namespace chronochat
Yingdi Yu0b0a7362014-08-05 16:31:30 -070055
Yingdi Yueb692ac2015-02-10 18:46:18 -080056#endif // CHRONOCHAT_INVITATION_DIALOG_HPP