blob: fc61fb4b4b2eeb5409f71e63f9fb7abac29b441e [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
11#ifndef SETTING_DIALOG_H
12#define SETTING_DIALOG_H
13
14#include <QDialog>
15
16#ifndef Q_MOC_RUN
17#endif
18
19namespace Ui {
20class SettingDialog;
21}
22
23class SettingDialog : public QDialog
24{
25 Q_OBJECT
26
27public:
Yingdi Yufa0b6a02014-04-30 14:26:42 -070028 explicit
Yingdi Yu348f5ea2014-03-01 14:47:25 -080029 SettingDialog(QWidget *parent = 0);
30
31 ~SettingDialog();
32
33 void
34 setNick(const QString& nick);
35
36signals:
37 void
38 identityUpdated(const QString& identity);
39
40 void
41 nickUpdated(const QString& nick);
42
43public slots:
44 void
45 onIdentityUpdated(const QString& identity);
46
47private slots:
48 void
49 onSaveClicked();
50
51 void
52 onCancelClicked();
53
54private:
55 Ui::SettingDialog *ui;
56 QString m_identity;
57 QString m_nick;
58};
59
60#endif // SETTING_DIALOG_H