forked from qt-creator/qt-creator
Utils: Rename QtcProcess -> Process
Task-number: QTCREATORBUG-29102 Change-Id: Ibc264f9db6a32206e4097766ee3f7d0b35225a5c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -212,7 +212,7 @@ static QByteArray decodeProvisioningProfile(const QString &path)
|
||||
{
|
||||
QTC_ASSERT(!path.isEmpty(), return QByteArray());
|
||||
|
||||
QtcProcess p;
|
||||
Process p;
|
||||
p.setTimeoutS(3);
|
||||
// path is assumed to be valid file path to .mobileprovision
|
||||
p.setCommand({"openssl", {"smime", "-inform", "der", "-verify", "-in", path}});
|
||||
|
||||
@@ -40,7 +40,7 @@ void XcodeProbe::addDeveloperPath(const QString &path)
|
||||
|
||||
void XcodeProbe::detectDeveloperPaths()
|
||||
{
|
||||
Utils::QtcProcess selectedXcode;
|
||||
Utils::Process selectedXcode;
|
||||
selectedXcode.setTimeoutS(5);
|
||||
selectedXcode.setCommand({"/usr/bin/xcode-select", {"--print-path"}});
|
||||
selectedXcode.runBlocking();
|
||||
|
||||
@@ -52,7 +52,7 @@ Utils::Port IosSimulator::nextPort() const
|
||||
// use qrand instead?
|
||||
if (++m_lastPort >= Constants::IOS_SIMULATOR_PORT_END)
|
||||
m_lastPort = Constants::IOS_SIMULATOR_PORT_START;
|
||||
Utils::QtcProcess portVerifier;
|
||||
Utils::Process portVerifier;
|
||||
// this is a bit too broad (it does not check just listening sockets, but also connections
|
||||
// to that port from this computer)
|
||||
portVerifier.setCommand({"lsof", {"-n", "-P", "-i", QString(":%1").arg(m_lastPort)}});
|
||||
|
||||
@@ -57,7 +57,7 @@ static bool checkForTimeout(const chrono::high_resolution_clock::time_point &sta
|
||||
|
||||
static bool runCommand(const CommandLine &command, QString *stdOutput, QString *allOutput = nullptr)
|
||||
{
|
||||
QtcProcess p;
|
||||
Process p;
|
||||
p.setTimeoutS(-1);
|
||||
p.setCommand(command);
|
||||
p.runBlocking();
|
||||
@@ -98,7 +98,7 @@ static bool launchSimulator(const QString &simUdid) {
|
||||
}
|
||||
}
|
||||
|
||||
return QtcProcess::startDetached({simulatorAppPath, {"--args", "-CurrentDeviceUDID", simUdid}});
|
||||
return Process::startDetached({simulatorAppPath, {"--args", "-CurrentDeviceUDID", simUdid}});
|
||||
}
|
||||
|
||||
static bool isAvailable(const QJsonObject &object)
|
||||
|
||||
Reference in New Issue
Block a user