1 // SPDX-License-Identifier: Apache-2.0
3 * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
4 * Copyright (C) 2016 The Qt Company Ltd.
5 * Copyright (c) 2018 TOYOTA MOTOR CORPORATION
12 #include <QtCore/QSharedDataPointer>
17 Q_PROPERTY(QString id READ id)
18 Q_PROPERTY(QString name READ name)
19 Q_PROPERTY(QString iconPath READ iconPath)
22 AppInfo(const QString &icon, const QString &name, const QString &id);
23 AppInfo(const AppInfo &other);
25 AppInfo &operator =(const AppInfo &other);
26 void swap(AppInfo &other) { qSwap(d, other.d); }
30 QString iconPath() const;
32 void read(const QJsonObject &json);
36 QSharedDataPointer<Private> d;
39 Q_DECLARE_SHARED(AppInfo)
40 Q_DECLARE_METATYPE(AppInfo)
41 Q_DECLARE_METATYPE(QList<AppInfo>)