aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/android/androidpackageinstallationstep.h
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@digia.com>2013-10-10 16:12:16 +0200
committerDaniel Teske <daniel.teske@digia.com>2013-10-15 16:19:38 +0200
commit0a600e041afd7478aef528c61776a0fc660fd175 (patch)
tree2cc4ee5c9fb96091a9138bd3e2c55b16da03eac8 /src/plugins/android/androidpackageinstallationstep.h
parent4f82c36a19ec07c1615e195ff49291770d6f0794 (diff)
Android: Rework AndroidPacakgeInstallationStep
It derived from MakeStep which is a rather odd base class for it, make it derive from AbstractProcessStep instead. Also implement a config widget for it. That one does nothing, but the old one didn't do anything interesting either. Change-Id: I76c2311580dbb62d08524fe0f77e803fd52ffbf4 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> Reviewed-by: BogDan Vatra <bogdan@kde.org>
Diffstat (limited to 'src/plugins/android/androidpackageinstallationstep.h')
-rw-r--r--src/plugins/android/androidpackageinstallationstep.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/plugins/android/androidpackageinstallationstep.h b/src/plugins/android/androidpackageinstallationstep.h
index 2ccbc7ad69..4b088b5238 100644
--- a/src/plugins/android/androidpackageinstallationstep.h
+++ b/src/plugins/android/androidpackageinstallationstep.h
@@ -30,12 +30,13 @@
#ifndef ANDROIDPACKAGEINSTALLATIONSTEP_H
#define ANDROIDPACKAGEINSTALLATIONSTEP_H
-#include <qt4projectmanager/makestep.h>
+#include <projectexplorer/buildstep.h>
+#include <projectexplorer/abstractprocessstep.h>
namespace Android {
namespace Internal {
-class AndroidPackageInstallationStep : public Qt4ProjectManager::MakeStep
+class AndroidPackageInstallationStep : public ProjectExplorer::AbstractProcessStep
{
Q_OBJECT
friend class AndroidPackageInstallationFactory;
@@ -48,6 +49,9 @@ public:
bool fromMap(const QVariantMap &map);
QVariantMap toMap() const;
+ ProjectExplorer::BuildStepConfigWidget *createConfigWidget();
+ bool immutable() const;
+
private:
AndroidPackageInstallationStep(ProjectExplorer::BuildStepList *bc,
AndroidPackageInstallationStep *other);
@@ -55,6 +59,18 @@ private:
static const Core::Id Id;
};
+class AndroidPackageInstallationStepWidget : public ProjectExplorer::BuildStepConfigWidget
+{
+public:
+ AndroidPackageInstallationStepWidget(AndroidPackageInstallationStep *step);
+
+ QString summaryText() const;
+ QString displayName() const;
+ bool showWidget() const;
+private:
+ AndroidPackageInstallationStep *m_step;
+};
+
} // namespace Internal
} // namespace Android