summaryrefslogtreecommitdiffstats
path: root/src/gui/wizardform.h
blob: 1ecdf3aaf15a5ddbe54e34ca53c13a95b6e51c7b (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
#ifndef WIZARDFORM_H
#define WIZARDFORM_H

struct t_provider;

#include <map>
#include "user.h"
#include "ui_wizardform.h"

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

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

	virtual void show( t_user * user );

public slots:
	virtual void initProviders();
	virtual int exec( t_user * user );
	virtual void update( const QString & item );
	virtual void updateAuthName( const QString & s );
	virtual void disableSuggestAuthName();
	virtual void validate();

signals:
	void success();

protected slots:
	virtual void languageChange();

private:
	bool suggestAuthName;
	std::map<QString, t_provider> mapProviders;
	t_user *user_config;

	void init();

};


#endif