6#include <QtCore/QString>
75 static bool ConvertToFileName(
const QString& fileNameString, QString& fileName,
const QString& replacingChar = QString());
87 static QString
GetVariableValue(
const QString& varName,
bool envVars =
true,
bool embeddedVars =
true);
92 static QString
GetEnrolledPath(
const QString& path,
bool envVars =
true,
bool embeddedVars =
true);
112 static bool CopyDirectory(
const QString& sourcePath,
const QString& destinationPath);
122 static bool FileCopy(
const QString& source,
const QString& result,
bool overWrite =
false);
127 static bool FileMove(
const QString& source,
const QString& targetFolder,
bool overWrite =
false);
157 static void SetUserVariables(
const QString& compilerMode,
const QString &acfQtVersion,
const QString& compilerName,
const QString& platformCode);
170 static QString s_compilerMode;
171 static QString s_compilerName;
172 static QString s_platformCode;
173 static QString s_acfQtVersion;
Implementation of global system helpers.
static QString GetCompilerInfo()
Get the comiler info.
static bool ConvertToFileName(const QString &fileNameString, QString &fileName, const QString &replacingChar=QString())
Make a valid file name from a string.
static bool FileMove(const QString &source, const QString &targetFolder, bool overWrite=false)
Move a file to another directory.
static QString GetEnrolledPath(const QString &path, bool envVars=true, bool embeddedVars=true)
Get path with enrolled system variables.
static void Sleep(double seconds)
Sleep current thread.
static QString GetVariableValue(const QString &varName, bool envVars=true, bool embeddedVars=true)
Get value of system variables.
static void SetTempDirectoryPath(const QString &tempPath)
Set path for for temporary data to the current process.
static bool EnsurePathExists(const QString &filePath)
Ensure that the given path exists.
static bool RemoveDirectory(const QString &directoryPath)
Remove a given directory with all contents.
static void SetUserVariables(const QString &compilerMode, const QString &acfQtVersion, const QString &compilerName, const QString &platformCode)
Set some user specific variables to override the generated by compiler.
static QString GetNormalizedPath(const QString &path)
Get normalized path with enrolled system variables.
static bool FileCopy(const QString &source, const QString &result, bool overWrite=false)
Copy file to directory.
static EnvironmentVariables GetEnvironmentVariables()
Get list of environment valiables related to the current process.
static QString GetCurrentUserName()
Get the name of the currently logged user.
static QString GetOperationSystemName()
Get the name of the operation system currently used.
static QString ConvertNetworkPathToUnc(const QString &localPath)
Convert a mapped network path to UNC representation.
static QString GetCompilerVariable(const QString &varName)
Get compiler specific variable.
static bool CopyDirectory(const QString &sourcePath, const QString &destinationPath)
Copy files and directories from one folder to another.
QMap< QString, QString > EnvironmentVariables
static FileDriveInfo GetFileDriveInfo(const QString &fileDrivePath)
Get the free space information for the given file drive.
bool operator==(const FileDriveDescriptor &driveInfo) const
bool operator==(const FileDriveInfo &info) const