Get category when top dialog started.
[speedfreak] / Client / settingsdialog.h
1 /*
2  * SettingsDialog class
3  *
4  * @author     Olavi Pulkkinen <olavi.pulkkinen@fudeco.com>
5  * @copyright  (c) 2010 Speed Freak team
6  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
7  */
8
9 #ifndef SETTINGSDIALOG_H
10 #define SETTINGSDIALOG_H
11
12 #include <QDialog>
13
14 #include "instructionsdialog.h"
15
16 namespace Ui {
17     class SettingsDialog;
18 }
19
20 class SettingsDialog : public QDialog {
21     Q_OBJECT
22 public:
23     SettingsDialog(QWidget *parent = 0);
24     ~SettingsDialog();
25     void setRegUserName(QString username);
26     void setRegPassword(QString password);
27     void setRegEmail(QString email);
28     QString getRegUserName();
29     QString getRegPassword();
30     QString getRegEmail();
31     void setUserName(QString username);
32     void setPassword(QString password);
33     QString getUserName();
34     QString getPassword();
35     void setLabelInfoToUser(QString infoText);
36
37 signals:
38     void sendregistration();
39     void userNameChanged();
40
41 protected:
42     void changeEvent(QEvent *e);
43
44 private:
45     Ui::SettingsDialog *ui;
46     QString regUsername;
47     QString regPassword;
48     QString regEmail;
49     QString username;
50     QString password;
51
52 private slots:
53     void on_setUserPushButton_clicked();
54     void on_registratePushButton_clicked();
55 };
56
57 #endif // SETTINGSDIALOG_H