forked from qt-creator/qt-creator
And add a test to document what we expect from devicectl. Change-Id: Ic69af99a472976a6c06801a646af59f8139d5624 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
29 lines
1.1 KiB
C++
29 lines
1.1 KiB
C++
// Copyright (C) 2024 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#pragma once
|
|
|
|
#include <utils/expected.h>
|
|
|
|
#include <QJsonValue>
|
|
|
|
namespace Ios::Internal {
|
|
|
|
const char kDeviceName[] = "deviceName";
|
|
const char kDeveloperStatus[] = "developerStatus";
|
|
const char kDeviceConnected[] = "deviceConnected";
|
|
const char kOsVersion[] = "osVersion";
|
|
const char kCpuArchitecture[] = "cpuArchitecture";
|
|
const char kUniqueDeviceId[] = "uniqueDeviceId";
|
|
const char vOff[] = "*off*";
|
|
const char vDevelopment[] = "Development";
|
|
const char vYes[] = "YES";
|
|
|
|
Utils::expected_str<QJsonValue> parseDevicectlResult(const QByteArray &rawOutput);
|
|
Utils::expected_str<QMap<QString, QString>> parseDeviceInfo(const QByteArray &rawOutput,
|
|
const QString &deviceUsbId);
|
|
Utils::expected_str<QUrl> parseAppInfo(const QByteArray &rawOutput, const QString &bundleIdentifier);
|
|
Utils::expected_str<qint64> parseProcessIdentifier(const QByteArray &rawOutput);
|
|
|
|
} // namespace Ios::Internal
|