forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user