File indexing completed on 2024-04-28 04:00:32
0001 /* 0002 SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef PURPOSE_QML_TYPES 0008 #define PURPOSE_QML_TYPES 0009 0010 #include <QQmlEngine> 0011 0012 #include "alternativesmodel.h" 0013 #include "configuration.h" 0014 #include "job.h" 0015 #include "jobcontroller.h" 0016 0017 struct AlternativesModelForeign { 0018 Q_GADGET 0019 QML_ELEMENT 0020 QML_NAMED_ELEMENT(PurposeAlternativesModel) 0021 QML_FOREIGN(Purpose::AlternativesModel) 0022 }; 0023 0024 struct JobControllerForeign { 0025 Q_GADGET 0026 QML_ELEMENT 0027 QML_NAMED_ELEMENT(PurposeJobController) 0028 QML_FOREIGN(Purpose::JobController) 0029 }; 0030 0031 struct JobForeign { 0032 Q_GADGET 0033 QML_ELEMENT 0034 QML_NAMED_ELEMENT(PurposeJob) 0035 QML_FOREIGN(Purpose::Job) 0036 QML_UNCREATABLE("You're not supposed to instantiate jobs") 0037 }; 0038 0039 struct ConfigurationForeign { 0040 Q_GADGET 0041 QML_ELEMENT 0042 QML_NAMED_ELEMENT(PurposeConfiguration) 0043 QML_FOREIGN(Purpose::Configuration) 0044 QML_UNCREATABLE("You're not supposed to instantiate configurations") 0045 }; 0046 0047 #endif