blob: a93a0ec860132e6c2cb6e746f265369d092a1b40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <projectexplorer/devicesupport/idevice.h>
#include <projectexplorer/devicesupport/idevicefactory.h>
#include <utils/filepath.h>
#include <QDebug>
namespace Ios::Internal {
class IosConfigurations;
class IosSimulatorFactory;
class IosDeviceType
{
public:
enum Type {
IosDevice,
SimulatedDevice
};
IosDeviceType(Type type = IosDevice, const QString &identifier = QString(),
const QString &displayName = QString());
bool fromMap(const Utils::Store &map);
Utils::Store toMap() const;
bool operator ==(const IosDeviceType &o) const;
bool operator !=(const IosDeviceType &o) const { return !(*this == o); }
bool operator <(const IosDeviceType &o) const;
Type type;
QString identifier;
QString displayName;
};
QDebug operator <<(QDebug debug, const IosDeviceType &deviceType);
class IosSimulator final : public ProjectExplorer::IDevice
{
public:
using ConstPtr = std::shared_ptr<const IosSimulator>;
using Ptr = std::shared_ptr<IosSimulator>;
ProjectExplorer::IDevice::DeviceInfo deviceInformation() const override;
ProjectExplorer::IDeviceWidget *createWidget() override;
Utils::Port nextPort() const;
protected:
friend class IosSimulatorFactory;
friend class IosConfigurations;
IosSimulator();
IosSimulator(Utils::Id id);
private:
mutable quint16 m_lastPort;
};
class IosSimulatorFactory final : public ProjectExplorer::IDeviceFactory
{
public:
IosSimulatorFactory();
};
} // Ios::Internal
Q_DECLARE_METATYPE(Ios::Internal::IosDeviceType)
|