aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/genericprojectmanager/genericmakestep.h
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2010-03-16 14:36:59 +0100
committerdt <qtc-committer@nokia.com>2010-03-16 17:45:08 +0100
commit0d4fdd291ab85183c937223a0b33e901023ea448 (patch)
treec8ad614682e851cb7c41fde8349b9adec40b5fc5 /src/plugins/genericprojectmanager/genericmakestep.h
parent10c3240e406e9784296b3b1a9b9d47e05404fe56 (diff)
Use a type enum instead of duplicating functions between build and clean
That is e.g. buildSteps() and cleanSteps() --> steps(type)
Diffstat (limited to 'src/plugins/genericprojectmanager/genericmakestep.h')
-rw-r--r--src/plugins/genericprojectmanager/genericmakestep.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/plugins/genericprojectmanager/genericmakestep.h b/src/plugins/genericprojectmanager/genericmakestep.h
index 8e6edd84c89..fbe22581c21 100644
--- a/src/plugins/genericprojectmanager/genericmakestep.h
+++ b/src/plugins/genericprojectmanager/genericmakestep.h
@@ -113,19 +113,27 @@ public:
explicit GenericMakeStepFactory(QObject *parent = 0);
virtual ~GenericMakeStepFactory();
- virtual bool canCreate(ProjectExplorer::BuildConfiguration *parent, const QString &id) const;
+ virtual bool canCreate(ProjectExplorer::BuildConfiguration *parent,
+ ProjectExplorer::StepType type,
+ const QString &id) const;
virtual ProjectExplorer::BuildStep *create(ProjectExplorer::BuildConfiguration *parent,
+ ProjectExplorer::StepType type,
const QString &id);
virtual bool canClone(ProjectExplorer::BuildConfiguration *parent,
+ ProjectExplorer::StepType type,
ProjectExplorer::BuildStep *source) const;
virtual ProjectExplorer::BuildStep *clone(ProjectExplorer::BuildConfiguration *parent,
+ ProjectExplorer::StepType type,
ProjectExplorer::BuildStep *source);
virtual bool canRestore(ProjectExplorer::BuildConfiguration *parent,
+ ProjectExplorer::StepType type,
const QVariantMap &map) const;
virtual ProjectExplorer::BuildStep *restore(ProjectExplorer::BuildConfiguration *parent,
+ ProjectExplorer::StepType type,
const QVariantMap &map);
- virtual QStringList availableCreationIds(ProjectExplorer::BuildConfiguration *bc) const;
+ virtual QStringList availableCreationIds(ProjectExplorer::BuildConfiguration *bc,
+ ProjectExplorer::StepType type) const;
virtual QString displayNameForId(const QString &id) const;
};