Workspace 6.21.5
|
#include <Workspace/Application/System/systemutilities.h>
Static Public Member Functions | |
static QString | convertToRelativePath (const QString &relativePath) |
static QString | downloadIfRemote (const QString &source, const QString &description, QString target=QString(), bool translateLineEndings=false, bool logInfo=true, bool logErrors=true, int timeoutMsec=20000) |
static bool | ensureFileExists (const QString &fileName, bool createFolder, QString &absoluteFilePath) |
static bool | ensureFileExists (const QString &fileName, bool createFolder=true) |
static void | ensureMiniDumpCapture () |
static void | exitWithProcess (int processId) |
static VisualStudioVersion | getCompiledVersion () |
static QStringList | getCurrentStack () |
Get callstack of current thread. | |
static QMap< VisualStudioVersion, QString > | getDefaultVsCmdPromptPathMap () |
static QMap< VisualStudioVersion, QString > | getDefaultVsIdePathMap () |
static bool | getListOfBackupFiles (QStringList &backupFiles, bool onlyNewFiles=true, QDir userDir=QDir(Application::Settings::getInstance().getBackupDirectory())) |
static QStringList | getMonitorSerialNumbers () |
static QString | getPlatformArchitectureString () |
static QString | getPlatformString () |
static QString | getSystemIconPath () |
static QMap< VisualStudioProduct, QString > | getVisualStudioProductMap () |
static QString | getWorkspaceEditorBaseName () |
static VisualStudioVersion | guessVisualStudioVersion (const QString &path) |
static bool | isApplicationWorkspaceEditor () |
static bool | isCompilerVersionCompatible (const QString &v1, const QString &v2) |
static bool | isLocalFile (const QString &filename) |
static bool | isRemoteFile (const QString &filename) |
static void | requestTerminate (QProcess &process) |
static QString | resolveAbsoluteFilePath (const QString &filename) |
static QString | resolveVisualStudioPath (const QString &path) |
static QString | resolveVisualStudioPath (const QString &path, VisualStudioProduct product) |
static void | setSymbolPath (const QString &symbolpath) |
static void | setupMiniDumpCapture (const QString &filename, const QString &customTitle=QString::null, const QString &customDescription=QString::null) |
static QString | visualStudioProductToString (VisualStudioProduct product) |
static QString | visualStudioVersionToString (VisualStudioVersion version) |
|
static |
|
static |
source | The filename to check. Filename can point to a local file or to a remote url (typically HTTP). |
description | A description of the file being downloaded - used for provenance recording but can be left empty |
target | If source is remote then download file to this target file or directory if it is specified (otherwise use a temporary file) |
translateLineEndings | Convert line endings (off by default) |
logInfo | Display Log messages (off by default) |
logErrors | Display Error messages (on by default) |
timeoutMsec | Timeout in milliseconds after which to give up if connection could not be made |
Takes a filename and determines if it is a local file or not. If it is remote then it downloads the file to the target if if it supplied. If target is empty then it creates a temporary. Line ending translation, logging and error reporting can be set, parameter have default values
|
static |
fileName | The filename to check. |
createFolder | Create directory for file if not existing (true by default). |
absoluteFilePath | Absolute path of the fileName |
|
static |
fileName | The filename to check. |
createFolder | Create directory for file if not existing (true by default). |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
path | A path to a file within the Visual Studio directory. |
|
static |
|
static |
|
static |
|
inlinestatic |
|
static |
|
static |
|
static |
path | Path to a Visual Studio file or folder. |
Visual studio default installation path since v2017 has changed so we will need to try all default install areas for each product type. We shall prefer the most expensive version available.
|
static |
path | Path to a Visual Studio file or folder. |
product | Visual Studio product type. |
|
static |
|
static |
|
static |
|
static |
version | The Visual Studio version. |