Purpose

types.h
1/*
2 SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef PURPOSE_QML_TYPES
8#define PURPOSE_QML_TYPES
9
10#include <QQmlEngine>
11
12#include "alternativesmodel.h"
13#include "configuration.h"
14#include "job.h"
15#include "jobcontroller.h"
16
17struct AlternativesModelForeign {
18 Q_GADGET
19 QML_ELEMENT
20 QML_NAMED_ELEMENT(PurposeAlternativesModel)
22};
23
24struct JobControllerForeign {
25 Q_GADGET
26 QML_ELEMENT
27 QML_NAMED_ELEMENT(PurposeJobController)
28 QML_FOREIGN(Purpose::JobController)
29};
30
31struct JobForeign {
32 Q_GADGET
33 QML_ELEMENT
34 QML_NAMED_ELEMENT(PurposeJob)
35 QML_FOREIGN(Purpose::Job)
36 QML_UNCREATABLE("You're not supposed to instantiate jobs")
37};
38
39struct ConfigurationForeign {
40 Q_GADGET
41 QML_ELEMENT
42 QML_NAMED_ELEMENT(PurposeConfiguration)
43 QML_FOREIGN(Purpose::Configuration)
44 QML_UNCREATABLE("You're not supposed to instantiate configurations")
45};
46
47#endif
Interface for client applications to share data.
This class will be in charge of figuring out the job configuration.
Job that will actually perform the sharing.
Definition job.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.