blob: be7eafe85da798dd4c3a2f342fc06a499771c306 [file] [log] [blame]
Yingdi Yu595aadc2013-10-21 15:01:40 -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 Yu0b0a7362014-08-05 16:31:30 -070011#ifndef CHRONOS_START_CHAT_DIALOG_HPP
12#define CHRONOS_START_CHAT_DIALOG_HPP
Yingdi Yu595aadc2013-10-21 15:01:40 -070013
14#include <QDialog>
15
16#ifndef Q_MOC_RUN
17#include <string>
18#endif
19
20namespace Ui {
21class StartChatDialog;
22}
23
Yingdi Yu0b0a7362014-08-05 16:31:30 -070024namespace chronos {
25
Yingdi Yu595aadc2013-10-21 15:01:40 -070026class StartChatDialog : public QDialog
27{
28 Q_OBJECT
29
30public:
Yingdi Yu0b0a7362014-08-05 16:31:30 -070031 explicit StartChatDialog(QWidget* parent = 0);
Yingdi Yufa4ce792014-02-06 18:09:22 -080032
Yingdi Yu595aadc2013-10-21 15:01:40 -070033 ~StartChatDialog();
34
35 void
Yingdi Yufa4ce792014-02-06 18:09:22 -080036 setChatroom(const std::string& chatroom);
Yingdi Yu595aadc2013-10-21 15:01:40 -070037
38signals:
39 void
Yingdi Yu348f5ea2014-03-01 14:47:25 -080040 startChatroom(const QString& chatroomName, bool secured);
Yingdi Yufa0b6a02014-04-30 14:26:42 -070041
Yingdi Yu595aadc2013-10-21 15:01:40 -070042private slots:
43 void
44 onOkClicked();
Yingdi Yufa0b6a02014-04-30 14:26:42 -070045
Yingdi Yu595aadc2013-10-21 15:01:40 -070046 void
47 onCancelClicked();
48
49private:
Yingdi Yu0b0a7362014-08-05 16:31:30 -070050 Ui::StartChatDialog* ui;
Yingdi Yu595aadc2013-10-21 15:01:40 -070051};
52
Yingdi Yu0b0a7362014-08-05 16:31:30 -070053} // namespace chronos
54
55#endif // CHRONOS_START_CHAT_DIALOG_HPP