Files
Sourcetrail/src/lib_gui/utility/utilityApp.h
T
mlangkabel 70d619a173 logic: implemented handling of non-ASCII characters in Gradle and Maven project paths
* also: fixed loading sqlite database from path with non-ascii characters
2018-02-09 15:54:28 +01:00

30 lines
745 B
C++

#ifndef UTILITY_APP_H
#define UTILITY_APP_H
#include <mutex>
#include <set>
#include <string>
#include "utility/OsType.h"
#include "utility/file/FilePath.h"
class License;
namespace utility
{
std::string executeProcess(const std::string& command, const FilePath& workingDirectory = FilePath(), const int timeout = 30000);
std::string executeProcessUntilNoOutput(const std::string& command, const FilePath& workingDirectory, int waitTime = 10000);
int executeProcessAndGetExitCode(const std::string& command, const FilePath& workingDirectory = FilePath(), const int timeout = 30000);
void killRunningProcesses();
int getIdealThreadCount();
OsType getOsType();
bool saveLicense(const License* license);
}
#endif // UTILITY_APP_H