blob: bb29b7a5135fe4f76c907cf2b27aeefcda0ee1df [file] [log] [blame]
Mengjin Yan391d7242014-08-28 20:51:55 -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: Mengjin Yan <jane.yan0129@gmail.com>
9 * Author: Yingdi Yu <yingdi@cs.ucla.edu>
10 */
11
12#ifndef CHRONOCHAT_CHATROOM_DISCOVERY_VIEW_DIALOG_HPP
13#define CHRONOCHAT_CHATROOM_DISCOVERY_VIEW_DIALOG_HPP
14
15#include <QDialog>
16
17#ifndef Q_MOC_RUN
18#include "common.hpp"
19#endif
20
21namespace Ui {
22class ChatroomDiscoveryViewDialog;
23}
24
25namespace chronos {
26
27class ChatroomDiscoveryViewDialog : public QDialog
28{
29 Q_OBJECT
30
31public:
32 explicit ChatroomDiscoveryViewDialog(QWidget* parent = 0);
33 ~ChatroomDiscoveryViewDialog();
34
35 void
36 setChatroomName(QString chatroomName);
37
38 void
39 setChatroomTrustModel(QString chatroomTrustModel);
40
41 void
Qiuhan Ding5d98cc52014-10-30 15:17:53 -070042 setChatroomParticipants(const std::list<ndn::Name>& chatroomParticipants);
Mengjin Yan391d7242014-08-28 20:51:55 -070043
44
45private slots:
46 void
47 onCloseButtonClicked();
48
49private:
50 Ui::ChatroomDiscoveryViewDialog* ui;
51};
52
53} //namespace chronos
54
55#endif // CHRONOCHAT_CHATROOM_DISCOVERY_VIEW_DIALOG_HPP