X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fconfigwizard.h;fp=src%2Fqtui%2Fconfigwizard.h;h=0000000000000000000000000000000000000000;hp=a63cd5493bae7f3c097ccad1a02f9c6e07a7747b;hb=4f9dd5e4618a2ae5b14a6dab871ad5d7c984500d;hpb=b2ff94f8f094090aa24e9e1d08eec51acbc02eb8 diff --git a/src/qtui/configwizard.h b/src/qtui/configwizard.h deleted file mode 100644 index a63cd549..00000000 --- a/src/qtui/configwizard.h +++ /dev/null @@ -1,120 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * - * devel@quassel-irc.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) version 3. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - -#ifndef CONFIGWIZARD_H_ -#define CONFIGWIZARD_H_ - -#include - -class QLabel; -class QLineEdit; -class QComboBox; - -class ConfigWizard : public QWizard { - Q_OBJECT - - public: - enum { - Page_Intro, - Page_AdminUser, - Page_StorageSelection, - Page_StorageDetails, - Page_Conclusion - }; - - ConfigWizard(const QStringList &storageProviders, QWidget *parent = NULL); -}; - -class IntroPage : public QWizardPage { - Q_OBJECT - - public: - IntroPage(QWidget *parent = NULL); - - int nextId() const; - - private: - QLabel *label; -}; - -class AdminUserPage : public QWizardPage { - Q_OBJECT - - public: - AdminUserPage(QWidget *parent = NULL); - - int nextId() const; - - private: - QLabel *nameLabel; - QLineEdit *nameEdit; - QLabel *passwordLabel; - QLineEdit *passwordEdit; -}; - -class StorageSelectionPage : public QWizardPage { - Q_OBJECT - - public: - StorageSelectionPage(const QStringList &storageProviders, QWidget *parent = NULL); - - int nextId() const; - - private: - QComboBox *storageSelection; -}; - -class StorageDetailsPage : public QWizardPage { - Q_OBJECT - - public: - StorageDetailsPage(QWidget *parent = NULL); - - int nextId() const; - - private: - QLabel *hostLabel; - QLineEdit *hostEdit; - QLabel *portLabel; - QLineEdit *portEdit; - QLabel *databaseLabel; - QLineEdit *databaseEdit; - QLabel *userLabel; - QLineEdit *userEdit; - QLabel *passwordLabel; - QLineEdit *passwordEdit; -}; - -class ConclusionPage : public QWizardPage { - Q_OBJECT - - public: - ConclusionPage(const QStringList &storageProviders, QWidget *parent = NULL); - - void initializePage(); - int nextId() const; - - private: - QLabel *adminuser; - QLabel *storage; - QStringList storageProviders; -}; - -#endif /*CONFIGWIZARD_H_*/