swift
Loading...
Searching...
No Matches
simulatorplugininfolist.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_MISC_SIMULATION_SIMULATORPLUGININFOLIST_H
7#define SWIFT_MISC_SIMULATION_SIMULATORPLUGININFOLIST_H
8
9#include <QMetaType>
10#include <QString>
11#include <QStringList>
12
13#include "misc/collection.h"
14#include "misc/sequence.h"
18
19SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::simulation, CSimulatorPluginInfo, CSimulatorPluginInfoList)
20
21namespace swift::misc::simulation
22{
24
27 public swift::misc::CSequence<CSimulatorPluginInfo>,
28 public swift::misc::mixin::MetaType<CSimulatorPluginInfoList>
29 {
30 public:
33
36
39
41 bool supportsSimulator(const QString &simulator) const;
42
44 QStringList toStringList(bool i18n = false) const;
45
47 CSimulatorPluginInfo findByIdentifier(const QString &identifier) const;
48
51 };
52} // namespace swift::misc::simulation
53
56
57#endif // SWIFT_MISC_SIMULATION_SIMULATORPLUGININFOLIST_H
Generic ordered container with value semantics.
Definition collection.h:113
Generic sequential container with value semantics.
Definition sequence.h:86
CSequence()=default
Default constructor.
CRTP class template from which a derived class can inherit common methods dealing with the metatype o...
Simple hardcoded info about the corresponding simulator.
Value object encapsulating a list of SimulatorInfo objects.
QStringList toStringList(bool i18n=false) const
String list with meaningful representations.
CSimulatorPluginInfoList(const CSequence< CSimulatorPluginInfo > &other)
Construct from a base class object.
CSimulatorPluginInfo findBySimulator(const swift::misc::simulation::CSimulatorInfo &simulator) const
Find by simulator.
bool supportsSimulator(const QString &simulator) const
Is simulator supported.
CSimulatorPluginInfoList()=default
Default constructor.
CSimulatorPluginInfo findByIdentifier(const QString &identifier) const
Find by identifier (unique).
#define SWIFT_MISC_DECLARE_USING_MIXIN_METATYPE(DERIVED)
When a derived class and a base class both inherit from mixin::MetaType, the derived class uses this ...
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
Definition sequence.h:62
#define SWIFT_MISC_EXPORT
Export a class or function from the library.