blob: 030cec8631759730b609624510e7f42539104380 [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 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
14#include <QDialog>
15
Yingdi Yu978b3ae2013-10-23 11:50:51 -070016#ifndef Q_MOC_RUN
Yingdi Yu0b0a7362014-08-05 16:31:30 -070017#include "common.hpp"
Yingdi Yu978b3ae2013-10-23 11:50:51 -070018#endif
19
Yingdi Yu24ca96f2013-10-22 23:42:16 -070020namespace Ui {
21class InvitationDialog;
22}
23
Yingdi Yueb692ac2015-02-10 18:46:18 -080024namespace chronochat {
Yingdi Yu0b0a7362014-08-05 16:31:30 -070025
Yingdi Yu24ca96f2013-10-22 23:42:16 -070026class InvitationDialog : public QDialog
27{
28 Q_OBJECT
29
30public:
Yingdi Yu0b0a7362014-08-05 16:31:30 -070031 explicit
32 InvitationDialog(QWidget* parent = 0);
33
Yingdi Yu24ca96f2013-10-22 23:42:16 -070034 ~InvitationDialog();
35
Yingdi Yu24ca96f2013-10-22 23:42:16 -070036signals:
37 void
Yingdi Yu348f5ea2014-03-01 14:47:25 -080038 invitationResponded(const ndn::Name& invitationName, bool accepted);
Yingdi Yu24ca96f2013-10-22 23:42:16 -070039
Yingdi Yu2c9e7712014-10-20 11:55:05 -070040public slots:
41 void
42 onInvitationReceived(QString alias, QString chatroom, ndn::Name invitationInterest);
43
Yingdi Yu24ca96f2013-10-22 23:42:16 -070044private slots:
45 void
46 onOkClicked();
Yingdi Yufa0b6a02014-04-30 14:26:42 -070047
Yingdi Yu24ca96f2013-10-22 23:42:16 -070048 void
49 onCancelClicked();
50
51
52private:
Yingdi Yu0b0a7362014-08-05 16:31:30 -070053 Ui::InvitationDialog* ui;
Yingdi Yufa4ce792014-02-06 18:09:22 -080054 ndn::Name m_invitationInterest;
Yingdi Yu24ca96f2013-10-22 23:42:16 -070055};
56
Yingdi Yueb692ac2015-02-10 18:46:18 -080057} // namespace chronochat
Yingdi Yu0b0a7362014-08-05 16:31:30 -070058
Yingdi Yueb692ac2015-02-10 18:46:18 -080059#endif // CHRONOCHAT_INVITATION_DIALOG_HPP