Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -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 |
| 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 Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame^] | 11 | #ifndef START_CHAT_DIALOG_H |
| 12 | #define START_CHAT_DIALOG_H |
Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -0700 | [diff] [blame] | 13 | |
| 14 | #include <QDialog> |
| 15 | |
| 16 | #ifndef Q_MOC_RUN |
| 17 | #include <string> |
| 18 | #endif |
| 19 | |
| 20 | namespace Ui { |
| 21 | class StartChatDialog; |
| 22 | } |
| 23 | |
| 24 | class StartChatDialog : public QDialog |
| 25 | { |
| 26 | Q_OBJECT |
| 27 | |
| 28 | public: |
| 29 | explicit StartChatDialog(QWidget *parent = 0); |
Yingdi Yu | fa4ce79 | 2014-02-06 18:09:22 -0800 | [diff] [blame] | 30 | |
Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -0700 | [diff] [blame] | 31 | ~StartChatDialog(); |
| 32 | |
| 33 | void |
Yingdi Yu | fa4ce79 | 2014-02-06 18:09:22 -0800 | [diff] [blame] | 34 | setChatroom(const std::string& chatroom); |
Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -0700 | [diff] [blame] | 35 | |
| 36 | signals: |
| 37 | void |
Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame^] | 38 | startChatroom(const QString& chatroomName, bool secured); |
Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -0700 | [diff] [blame] | 39 | |
| 40 | private slots: |
| 41 | void |
| 42 | onOkClicked(); |
| 43 | |
| 44 | void |
| 45 | onCancelClicked(); |
| 46 | |
| 47 | private: |
| 48 | Ui::StartChatDialog *ui; |
Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -0700 | [diff] [blame] | 49 | }; |
| 50 | |
Yingdi Yu | 348f5ea | 2014-03-01 14:47:25 -0800 | [diff] [blame^] | 51 | #endif // START_CHAT_DIALOG_H |