blob: 056ef9aeb6e9ec150c30ecd5f2b1212950640073 [file] [log] [blame]
Yingdi Yu100267f2013-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
11#ifndef STARTCHATDIALOG_H
12#define STARTCHATDIALOG_H
13
14#include <QDialog>
15
16#ifndef Q_MOC_RUN
17#include <string>
18#endif
19
20namespace Ui {
21class StartChatDialog;
22}
23
24class StartChatDialog : public QDialog
25{
26 Q_OBJECT
27
28public:
29 explicit StartChatDialog(QWidget *parent = 0);
Yingdi Yua1a688f2014-02-06 18:09:22 -080030
Yingdi Yu100267f2013-10-21 15:01:40 -070031 ~StartChatDialog();
32
33 void
Yingdi Yua1a688f2014-02-06 18:09:22 -080034 setChatroom(const std::string& chatroom);
Yingdi Yu100267f2013-10-21 15:01:40 -070035
36signals:
37 void
Yingdi Yua1a688f2014-02-06 18:09:22 -080038 chatroomConfirmed(const QString& chatroomName);
Yingdi Yu100267f2013-10-21 15:01:40 -070039
40private slots:
41 void
42 onOkClicked();
43
44 void
45 onCancelClicked();
46
47private:
48 Ui::StartChatDialog *ui;
Yingdi Yu100267f2013-10-21 15:01:40 -070049};
50
51#endif // STARTCHATDIALOG_H