Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
2 | /* | ||||
3 | * Copyright (c) 2013, Regents of the University of California | ||||
Yingdi Yu | 5b98913 | 2013-10-23 14:03:09 -0700 | [diff] [blame^] | 4 | * Yingdi Yu |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 5 | * |
Yingdi Yu | 5b98913 | 2013-10-23 14:03:09 -0700 | [diff] [blame^] | 6 | * BSD license, See the LICENSE file for more information |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 7 | * |
Yingdi Yu | 5b98913 | 2013-10-23 14:03:09 -0700 | [diff] [blame^] | 8 | * Author: Yingdi Yu <yingdi@cs.ucla.edu> |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 9 | */ |
10 | |||||
Zhenkai Zhu | 6d589aa | 2012-05-29 17:34:35 -0700 | [diff] [blame] | 11 | #include "chatdialog.h" |
Yingdi Yu | 5b98913 | 2013-10-23 14:03:09 -0700 | [diff] [blame^] | 12 | #include "ui_chatdialog.h" |
Alexander Afanasyev | f829f4d | 2013-05-07 15:59:36 -0700 | [diff] [blame] | 13 | |
Yingdi Yu | 5b98913 | 2013-10-23 14:03:09 -0700 | [diff] [blame^] | 14 | using namespace std; |
15 | using namespace ndn; | ||||
Alexander Afanasyev | f829f4d | 2013-05-07 15:59:36 -0700 | [diff] [blame] | 16 | |
Yingdi Yu | 5b98913 | 2013-10-23 14:03:09 -0700 | [diff] [blame^] | 17 | ChatDialog::ChatDialog(const Name& chatroomPrefix, |
18 | const Name& localPrefix, | ||||
19 | QWidget *parent) | ||||
20 | : QDialog(parent) | ||||
21 | , m_chatroomPrefix(chatroomPrefix) | ||||
22 | , m_localPrefix(localPrefix) | ||||
23 | , ui(new Ui::ChatDialog) | ||||
Zhenkai Zhu | 6d589aa | 2012-05-29 17:34:35 -0700 | [diff] [blame] | 24 | { |
Yingdi Yu | 5b98913 | 2013-10-23 14:03:09 -0700 | [diff] [blame^] | 25 | ui->setupUi(this); |
Zhenkai Zhu | 5a8d5aa | 2012-05-30 21:25:23 -0700 | [diff] [blame] | 26 | } |
27 | |||||
Zhenkai Zhu | 82a6275 | 2012-06-04 17:11:04 -0700 | [diff] [blame] | 28 | ChatDialog::~ChatDialog() |
29 | { | ||||
Yingdi Yu | 5b98913 | 2013-10-23 14:03:09 -0700 | [diff] [blame^] | 30 | delete ui; |
Zhenkai Zhu | 82a6275 | 2012-06-04 17:11:04 -0700 | [diff] [blame] | 31 | } |
32 | |||||
Zhenkai Zhu | 86df741 | 2012-09-27 16:30:20 -0700 | [diff] [blame] | 33 | void |
Yingdi Yu | 5b98913 | 2013-10-23 14:03:09 -0700 | [diff] [blame^] | 34 | ChatDialog::sendInvitation() |
Zhenkai Zhu | cf02444 | 2012-10-05 10:33:08 -0700 | [diff] [blame] | 35 | { |
Yingdi Yu | 5b98913 | 2013-10-23 14:03:09 -0700 | [diff] [blame^] | 36 | |
Zhenkai Zhu | d13acd0 | 2012-06-04 15:25:20 -0700 | [diff] [blame] | 37 | } |
Alexander Afanasyev | b4b9229 | 2013-07-09 13:54:59 -0700 | [diff] [blame] | 38 | |
39 | #if WAF | ||||
40 | #include "chatdialog.moc" | ||||
41 | #include "chatdialog.cpp.moc" | ||||
42 | #endif |