blob: 77feea15d461876c941dade98b13b18866d230d1 [file] [log] [blame]
Yingdi Yu04842232013-10-23 14:03:09 -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
11#ifndef CHATDIALOG_H
12#define CHATDIALOG_H
13
14#include <QDialog>
15
16#ifndef Q_MOC_RUN
17#include <ndn.cxx/data.h>
18#endif
19
20namespace Ui {
21class ChatDialog;
22}
23
24class ChatDialog : public QDialog
25{
26 Q_OBJECT
27
28public:
29 explicit ChatDialog(const ndn::Name& chatroomPrefix,
30 const ndn::Name& localPrefix,
31 QWidget *parent = 0);
32 ~ChatDialog();
33
34 const ndn::Name&
35 getChatroomPrefix() const
36 { return m_chatroomPrefix; }
37
38 const ndn::Name&
39 getLocalPrefix() const
40 { return m_localPrefix; }
41
42 void
43 sendInvitation();
44
45private:
46 Ui::ChatDialog *ui;
47 ndn::Name m_chatroomPrefix;
48 ndn::Name m_localPrefix;
49};
50
51#endif // ChatDIALOG_H