Utils: Move meta char policy handling from FilePath to ConsoleProcess

Currently the only place that's using it and the scope is much smaller.

Change-Id: I1a43d14f0e2c69a16f76e6f83b82436bbeeac1c9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-07-23 12:39:05 +02:00
parent 8b72e92167
commit fa81f76237
6 changed files with 13 additions and 13 deletions

View File

@@ -132,15 +132,12 @@ class QTCREATOR_UTILS_EXPORT CommandLine
{
public:
enum RawType { Raw };
enum class MetaCharMode { Abort, Ignore };
CommandLine() {}
explicit CommandLine(const QString &executable);
explicit CommandLine(const FilePath &executable);
CommandLine(const QString &exe, const QStringList &args);
CommandLine(const FilePath &exe,
const QStringList &args,
MetaCharMode metaCharMode = MetaCharMode::Abort);
CommandLine(const FilePath &exe, const QStringList &args);
CommandLine(const FilePath &exe, const QString &unparsedArgs, RawType);
void addArg(const QString &arg, OsType osType = HostOsInfo::hostOs());
@@ -152,13 +149,11 @@ public:
FilePath executable() const { return m_executable; }
QString arguments() const { return m_arguments; }
MetaCharMode metaCharMode() const { return m_metaCharMode; }
QStringList splitArguments(OsType osType = HostOsInfo::hostOs()) const;
private:
FilePath m_executable;
QString m_arguments;
MetaCharMode m_metaCharMode;
};
class QTCREATOR_UTILS_EXPORT FileUtils {