summaryrefslogtreecommitdiff
path: root/src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2010-09-17 12:58:19 +0200
committerChristian Kandeler <christian.kandeler@nokia.com>2010-09-17 12:59:48 +0200
commitb735b433a1785840af2df8828b3f359fc47839f2 (patch)
tree8c6feae295295390a0b4c3f872e2e15a3256496f /src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.h
parent8fc775eb5875e5cd61db17bf9e4591264fc47911 (diff)
downloadqt-creator-b735b433a1785840af2df8828b3f359fc47839f2.tar.gz
QML/Mobile wizard: Final redundancy removal.
Task-number: QTCREATORBUG-2341 (en passant) Reviewed-by: Alessandro Portale
Diffstat (limited to 'src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.h')
-rw-r--r--src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.h b/src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.h
new file mode 100644
index 0000000000..115f958d18
--- /dev/null
+++ b/src/plugins/qt4projectmanager/wizards/abstractmobileappwizard.h
@@ -0,0 +1,79 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** Commercial Usage
+**
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Commercial License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Nokia.
+**
+** GNU Lesser General Public License Usage
+**
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at http://qt.nokia.com/contact.
+**
+**************************************************************************/
+
+#ifndef ABSTRACTMOBILEAPPWIZARD_H
+#define ABSTRACTMOBILEAPPWIZARD_H
+
+#include <coreplugin/basefilewizard.h>
+#include <projectexplorer/baseprojectwizarddialog.h>
+
+namespace Qt4ProjectManager {
+namespace Internal {
+
+class AbstractMobileApp;
+
+class AbstractMobileAppWizardDialog : public ProjectExplorer::BaseProjectWizardDialog
+{
+ Q_OBJECT
+ friend class AbstractMobileAppWizard;
+
+protected:
+ explicit AbstractMobileAppWizardDialog(QWidget *parent = 0);
+
+private:
+ class MobileAppWizardOptionsPage *m_optionsPage;
+};
+
+class AbstractMobileAppWizard : public Core::BaseFileWizard
+{
+ Q_OBJECT
+protected:
+ explicit AbstractMobileAppWizard(const Core::BaseFileWizardParameters &params,
+ QObject *parent = 0);
+
+private slots:
+ void useProjectPath(const QString &projectName, const QString &projectPath);
+
+private:
+ virtual QWizard *createWizardDialog(QWidget *parent,
+ const QString &defaultPath, const WizardPageList &extensionPages) const;
+ virtual Core::GeneratedFiles generateFiles(const QWizard *wizard,
+ QString *errorMessage) const;
+
+ virtual AbstractMobileApp *app() const=0;
+ virtual AbstractMobileAppWizardDialog *wizardDialog() const=0;
+ virtual AbstractMobileAppWizardDialog *createWizardDialogInternal(QWidget *parent) const=0;
+ virtual void prepareGenerateFiles(const QWizard *wizard,
+ QString *errorMessage) const=0;
+};
+
+} // end of namespace Internal
+} // end of namespace Qt4ProjectManager
+
+#endif // ABSTRACTMOBILEAPPWIZARD_H