blob: 77feea15d461876c941dade98b13b18866d230d1 [file] [log] [blame]
Alexander Afanasyevb4b92292013-07-09 13:54:59 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
Yingdi Yu5b989132013-10-23 14:03:09 -07004 * Yingdi Yu
Alexander Afanasyevb4b92292013-07-09 13:54:59 -07005 *
Yingdi Yu5b989132013-10-23 14:03:09 -07006 * BSD license, See the LICENSE file for more information
Alexander Afanasyevb4b92292013-07-09 13:54:59 -07007 *
Yingdi Yu5b989132013-10-23 14:03:09 -07008 * Author: Yingdi Yu <yingdi@cs.ucla.edu>
Alexander Afanasyevb4b92292013-07-09 13:54:59 -07009 */
10
Zhenkai Zhu6d589aa2012-05-29 17:34:35 -070011#ifndef CHATDIALOG_H
12#define CHATDIALOG_H
Alexander Afanasyevf829f4d2013-05-07 15:59:36 -070013
Yingdi Yu5b989132013-10-23 14:03:09 -070014#include <QDialog>
Alexander Afanasyevf829f4d2013-05-07 15:59:36 -070015
Yingdi Yu5b989132013-10-23 14:03:09 -070016#ifndef Q_MOC_RUN
17#include <ndn.cxx/data.h>
Alexander Afanasyevf829f4d2013-05-07 15:59:36 -070018#endif
19
Yingdi Yu5b989132013-10-23 14:03:09 -070020namespace Ui {
21class ChatDialog;
22}
Zhenkai Zhu6d589aa2012-05-29 17:34:35 -070023
Yingdi Yu5b989132013-10-23 14:03:09 -070024class ChatDialog : public QDialog
Zhenkai Zhu6d589aa2012-05-29 17:34:35 -070025{
Yingdi Yu5b989132013-10-23 14:03:09 -070026 Q_OBJECT
Zhenkai Zhu6d589aa2012-05-29 17:34:35 -070027
28public:
Yingdi Yu5b989132013-10-23 14:03:09 -070029 explicit ChatDialog(const ndn::Name& chatroomPrefix,
30 const ndn::Name& localPrefix,
31 QWidget *parent = 0);
Zhenkai Zhu82a62752012-06-04 17:11:04 -070032 ~ChatDialog();
Zhenkai Zhub45e38a2012-06-01 15:44:36 -070033
Yingdi Yu5b989132013-10-23 14:03:09 -070034 const ndn::Name&
35 getChatroomPrefix() const
36 { return m_chatroomPrefix; }
Zhenkai Zhu3a008fc2012-06-08 17:36:39 -070037
Yingdi Yu5b989132013-10-23 14:03:09 -070038 const ndn::Name&
39 getLocalPrefix() const
40 { return m_localPrefix; }
41
42 void
43 sendInvitation();
Zhenkai Zhu10ccb5a2012-06-04 21:55:14 -070044
Zhenkai Zhub45e38a2012-06-01 15:44:36 -070045private:
Yingdi Yu5b989132013-10-23 14:03:09 -070046 Ui::ChatDialog *ui;
47 ndn::Name m_chatroomPrefix;
48 ndn::Name m_localPrefix;
Zhenkai Zhu6d589aa2012-05-29 17:34:35 -070049};
Yingdi Yu5b989132013-10-23 14:03:09 -070050
51#endif // ChatDIALOG_H