summaryrefslogtreecommitdiffstats
path: root/src/gui/diamondcardprofileform.h
blob: 5d74562d5e5086b8df5617bfcb63f62ae22a92c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef DIAMONDCARDPROFILEFORM_H
#define DIAMONDCARDPROFILEFORM_H
#include <QLabel>
#include <QLineEdit>
#include "user.h"
#include "ui_diamondcardprofileform.h"

class DiamondcardProfileForm : public QDialog, public Ui::DiamondcardProfileForm
{
	Q_OBJECT

public:
    DiamondcardProfileForm(QWidget* parent = 0);
	~DiamondcardProfileForm();

	virtual int exec( t_user * user );

public slots:
	virtual void destroyOldUserConfig();
	virtual void show( t_user * user );
	virtual void validate();
	virtual void mouseReleaseEvent( QMouseEvent * e );
	virtual void processLeftMouseButtonRelease( QMouseEvent * e );

signals:
	void success();
	void newDiamondcardProfile(const QString&);

protected slots:
	virtual void languageChange();

private:
	t_user *user_config;
	bool destroy_user_config;
	QLineEdit *accountIdLineEdit;
	QLineEdit *pinCodeLineEdit;
	QLineEdit *nameLineEdit;
	QLabel *signUpTextLabel;

	void init();
	void destroy();

};


#endif