blob: 9ee6865e47e7cbe0b5f08fbdd9dfcc5fffbe1f9f [file] [log] [blame]
Yingdi Yuc2ab62c2013-10-23 10:31:08 -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
Zhenkai Zhu85845d22012-06-01 23:10:43 -070011#ifndef SETTINGDIALOG_H
12#define SETTINGDIALOG_H
Zhenkai Zhu85845d22012-06-01 23:10:43 -070013
Yingdi Yuc2ab62c2013-10-23 10:31:08 -070014#include <QDialog>
15
16namespace Ui {
17class SettingDialog;
18}
19
20class SettingDialog : public QDialog
Zhenkai Zhu85845d22012-06-01 23:10:43 -070021{
22 Q_OBJECT
23
24public:
Yingdi Yuc2ab62c2013-10-23 10:31:08 -070025 explicit SettingDialog(QWidget *parent = 0);
26 ~SettingDialog();
27
28 void
Yingdi Yu46948282013-11-06 18:43:31 -080029 setIdentity(const std::string& identity,
30 const std::string& nickName);
Yingdi Yuc2ab62c2013-10-23 10:31:08 -070031
32signals:
33 void
Yingdi Yu46948282013-11-06 18:43:31 -080034 identitySet(const QString& identity,
35 const QString& nickName);
Zhenkai Zhu7e9b06d2012-06-02 00:44:42 -070036
37private slots:
Yingdi Yuc2ab62c2013-10-23 10:31:08 -070038 void
39 onOkClicked();
Zhenkai Zhu7e9b06d2012-06-02 00:44:42 -070040
Yingdi Yuc2ab62c2013-10-23 10:31:08 -070041private:
42 Ui::SettingDialog *ui;
43 std::string m_identity;
Yingdi Yu46948282013-11-06 18:43:31 -080044 std::string m_nickName;
Zhenkai Zhu85845d22012-06-01 23:10:43 -070045};
46
Yingdi Yuc2ab62c2013-10-23 10:31:08 -070047#endif // SETTINGDIALOG_H