Yingdi Yu | e50bcf9 | 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 | |
| 11 | #ifndef SETTINGDIALOG_H |
| 12 | #define SETTINGDIALOG_H |
| 13 | |
| 14 | #include <QDialog> |
| 15 | |
| 16 | namespace Ui { |
| 17 | class SettingDialog; |
| 18 | } |
| 19 | |
| 20 | class SettingDialog : public QDialog |
| 21 | { |
| 22 | Q_OBJECT |
| 23 | |
| 24 | public: |
| 25 | explicit SettingDialog(QWidget *parent = 0); |
| 26 | ~SettingDialog(); |
| 27 | |
| 28 | void |
| 29 | setIdentity(const std::string& identity); |
| 30 | |
| 31 | signals: |
| 32 | void |
| 33 | identitySet(const QString& identity); |
| 34 | |
| 35 | private slots: |
| 36 | void |
| 37 | onOkClicked(); |
| 38 | |
| 39 | private: |
| 40 | Ui::SettingDialog *ui; |
| 41 | std::string m_identity; |
| 42 | }; |
| 43 | |
| 44 | #endif // SETTINGDIALOG_H |