Yingdi Yu | c2ab62c | 2013-10-23 10:31:08 -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 | |
Zhenkai Zhu | 85845d2 | 2012-06-01 23:10:43 -0700 | [diff] [blame] | 11 | #ifndef SETTINGDIALOG_H |
| 12 | #define SETTINGDIALOG_H |
Zhenkai Zhu | 85845d2 | 2012-06-01 23:10:43 -0700 | [diff] [blame] | 13 | |
Yingdi Yu | c2ab62c | 2013-10-23 10:31:08 -0700 | [diff] [blame] | 14 | #include <QDialog> |
| 15 | |
| 16 | namespace Ui { |
| 17 | class SettingDialog; |
| 18 | } |
| 19 | |
| 20 | class SettingDialog : public QDialog |
Zhenkai Zhu | 85845d2 | 2012-06-01 23:10:43 -0700 | [diff] [blame] | 21 | { |
| 22 | Q_OBJECT |
| 23 | |
| 24 | public: |
Yingdi Yu | c2ab62c | 2013-10-23 10:31:08 -0700 | [diff] [blame] | 25 | explicit SettingDialog(QWidget *parent = 0); |
| 26 | ~SettingDialog(); |
| 27 | |
| 28 | void |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 29 | setIdentity(const std::string& identity, |
| 30 | const std::string& nickName); |
Yingdi Yu | c2ab62c | 2013-10-23 10:31:08 -0700 | [diff] [blame] | 31 | |
| 32 | signals: |
| 33 | void |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 34 | identitySet(const QString& identity, |
| 35 | const QString& nickName); |
Zhenkai Zhu | 7e9b06d | 2012-06-02 00:44:42 -0700 | [diff] [blame] | 36 | |
| 37 | private slots: |
Yingdi Yu | c2ab62c | 2013-10-23 10:31:08 -0700 | [diff] [blame] | 38 | void |
| 39 | onOkClicked(); |
Zhenkai Zhu | 7e9b06d | 2012-06-02 00:44:42 -0700 | [diff] [blame] | 40 | |
Yingdi Yu | c2ab62c | 2013-10-23 10:31:08 -0700 | [diff] [blame] | 41 | private: |
| 42 | Ui::SettingDialog *ui; |
| 43 | std::string m_identity; |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 44 | std::string m_nickName; |
Zhenkai Zhu | 85845d2 | 2012-06-01 23:10:43 -0700 | [diff] [blame] | 45 | }; |
| 46 | |
Yingdi Yu | c2ab62c | 2013-10-23 10:31:08 -0700 | [diff] [blame] | 47 | #endif // SETTINGDIALOG_H |