blob: 443b87d662f32c24f11e1337b3b8c16a3cb2aeea [file] [log] [blame]
Yingdi Yu348f5ea2014-03-01 14:47:25 -08001/* -*- 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 Yu0b0a7362014-08-05 16:31:30 -070011#ifndef CHRONOS_SETTING_DIALOG_HPP
12#define CHRONOS_SETTING_DIALOG_HPP
Yingdi Yu348f5ea2014-03-01 14:47:25 -080013
14#include <QDialog>
15
16#ifndef Q_MOC_RUN
17#endif
18
19namespace Ui {
20class SettingDialog;
21}
22
Yingdi Yu0b0a7362014-08-05 16:31:30 -070023namespace chronos {
24
Yingdi Yu348f5ea2014-03-01 14:47:25 -080025class SettingDialog : public QDialog
26{
27 Q_OBJECT
28
29public:
Yingdi Yufa0b6a02014-04-30 14:26:42 -070030 explicit
Yingdi Yu0b0a7362014-08-05 16:31:30 -070031 SettingDialog(QWidget* parent = 0);
Yingdi Yu348f5ea2014-03-01 14:47:25 -080032
33 ~SettingDialog();
34
35 void
36 setNick(const QString& nick);
37
38signals:
39 void
40 identityUpdated(const QString& identity);
41
42 void
43 nickUpdated(const QString& nick);
44
45public slots:
46 void
47 onIdentityUpdated(const QString& identity);
48
49private slots:
50 void
51 onSaveClicked();
52
53 void
54 onCancelClicked();
55
56private:
Yingdi Yu0b0a7362014-08-05 16:31:30 -070057 Ui::SettingDialog* ui;
Yingdi Yu348f5ea2014-03-01 14:47:25 -080058 QString m_identity;
59 QString m_nick;
60};
61
Yingdi Yu0b0a7362014-08-05 16:31:30 -070062} // namespace chronos
63
64#endif // CHRONOS_SETTING_DIALOG_HPP