summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/buildconfiguration.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/projectexplorer/buildconfiguration.h
parent10c3240e406e9784296b3b1a9b9d47e05404fe56 (diff)
downloadqt-creator-0d4fdd291ab85183c937223a0b33e901023ea448.tar.gz
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/projectexplorer/buildconfiguration.h')
-rw-r--r--src/plugins/projectexplorer/buildconfiguration.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/plugins/projectexplorer/buildconfiguration.h b/src/plugins/projectexplorer/buildconfiguration.h
index e391e03877..c0bc765771 100644
--- a/src/plugins/projectexplorer/buildconfiguration.h
+++ b/src/plugins/projectexplorer/buildconfiguration.h
@@ -53,15 +53,10 @@ public:
// ctors are protected
virtual ~BuildConfiguration();
- QList<BuildStep *> buildSteps() const;
- void insertBuildStep(int position, BuildStep *step);
- void removeBuildStep(int position);
- void moveBuildStepUp(int position);
-
- QList<BuildStep *> cleanSteps() const;
- void insertCleanStep(int position, BuildStep *step);
- void removeCleanStep(int position);
- void moveCleanStepUp(int position);
+ QList<BuildStep *> steps(StepType type) const;
+ void insertStep(StepType type, int position, BuildStep *step);
+ void removeStep(StepType type, int position);
+ void moveStepUp(StepType type, int position);
virtual QString buildDirectory() const = 0;
@@ -90,8 +85,7 @@ protected:
virtual bool fromMap(const QVariantMap &map);
private:
- QList<BuildStep *> m_buildSteps;
- QList<BuildStep *> m_cleanSteps;
+ QList<BuildStep *> m_steps[LastStepType];
Target *m_target;
bool m_clearSystemEnvironment;