summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectexplorer.h
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2012-01-10 19:17:24 +0100
committerhjk <qthjk@ovi.com>2012-01-11 13:52:26 +0100
commita6ff74c0d878c7d85ab11bbd63c7bb10639a62df (patch)
tree4cf6e3d5c4e740b3eed6104a55b5dfc32f528ab9 /src/plugins/projectexplorer/projectexplorer.h
parent2230f301ec2efaa0bec8b9f2c5db65c34d48712a (diff)
downloadqt-creator-a6ff74c0d878c7d85ab11bbd63c7bb10639a62df.tar.gz
ProjectExplorer: use enum instead of QString for run mode
Change-Id: Ia906944a489b09afdea59f74afbf759b4caebe37 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/projectexplorer.h')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.h b/src/plugins/projectexplorer/projectexplorer.h
index 672e29e2cd..faf9167e81 100644
--- a/src/plugins/projectexplorer/projectexplorer.h
+++ b/src/plugins/projectexplorer/projectexplorer.h
@@ -34,6 +34,7 @@
#define PROJECTEXPLORER_H
#include "projectexplorer_export.h"
+#include "projectexplorerconstants.h"
#include <extensionsystem/iplugin.h>
@@ -105,7 +106,7 @@ public:
void setProjectExplorerSettings(const Internal::ProjectExplorerSettings &pes);
Internal::ProjectExplorerSettings projectExplorerSettings() const;
- void startRunControl(RunControl *runControl, const QString &mode);
+ void startRunControl(RunControl *runControl, RunMode runMode);
// internal public for FlatModel
void renameFile(Node *node, const QString &to);
@@ -113,10 +114,10 @@ public:
bool coreAboutToClose();
QList<QPair<QString, QString> > recentProjects();
- bool canRun(Project *pro, const QString &runMode);
- QString cannotRunReason(Project *project, const QString &runMode);
- void runProject(Project *pro, const QString &mode, const bool forceSkipDeploy = false);
- void runRunConfiguration(ProjectExplorer::RunConfiguration *rc, const QString &mode,
+ bool canRun(Project *pro, RunMode runMode);
+ QString cannotRunReason(Project *project, RunMode runMode);
+ void runProject(Project *pro, RunMode, const bool forceSkipDeploy = false);
+ void runRunConfiguration(ProjectExplorer::RunConfiguration *rc, RunMode runMode,
const bool forceSkipDeploy = false);
void addExistingFiles(ProjectExplorer::ProjectNode *projectNode, const QStringList &filePaths);
@@ -140,7 +141,7 @@ signals:
void currentProjectChanged(ProjectExplorer::Project *project);
void currentNodeChanged(ProjectExplorer::Node *node, ProjectExplorer::Project *project);
- void aboutToExecuteProject(ProjectExplorer::Project *project, const QString &runMode);
+ void aboutToExecuteProject(ProjectExplorer::Project *project, RunMode runMode);
void recentProjectsChanged();
void settingsChanged();
@@ -262,7 +263,7 @@ private:
int queue(QList<Project *>, QStringList stepIds);
void updateContextMenuActions();
bool parseArguments(const QStringList &arguments, QString *error);
- void executeRunConfiguration(RunConfiguration *, const QString &mode);
+ void executeRunConfiguration(RunConfiguration *, RunMode mode);
bool hasBuildSettings(Project *pro);
QPair<bool, QString> buildSettingsEnabledForSession();
QPair<bool, QString> buildSettingsEnabled(Project *pro);
@@ -271,7 +272,7 @@ private:
void setCurrent(Project *project, QString filePath, Node *node);
QStringList allFilesWithDependencies(Project *pro);
- IRunControlFactory *findRunControlFactory(RunConfiguration *config, const QString &mode);
+ IRunControlFactory *findRunControlFactory(RunConfiguration *config, RunMode mode);
void addToRecentProjects(const QString &fileName, const QString &displayName);