summaryrefslogtreecommitdiffstats
path: root/src/gui/wizardform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/wizardform.h')
-rw-r--r--src/gui/wizardform.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/gui/wizardform.h b/src/gui/wizardform.h
new file mode 100644
index 0000000..9332d3f
--- /dev/null
+++ b/src/gui/wizardform.h
@@ -0,0 +1,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, const char* name = 0, bool modal = false, Qt::WindowFlags fl = 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