KOpeningHours

types.h
1/*
2 SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KOPENINGHOURS_QMLPLUGIN_TYPES_H
7#define KOPENINGHOURS_QMLPLUGIN_TYPES_H
8
9#include <KOpeningHours/Interval>
10#include <KOpeningHours/IntervalModel>
11#include <KOpeningHours/OpeningHours>
12
13#include <QQmlEngine>
14
15struct IntervalForeign {
16 Q_GADGET
17 QML_FOREIGN(KOpeningHours::Interval)
18 QML_VALUE_TYPE(interval)
19};
20
21class IntervalEnums : public KOpeningHours::Interval {
22 Q_GADGET
23};
24namespace IntervalEnumsForeign {
25 Q_NAMESPACE
26 QML_NAMED_ELEMENT(Interval)
27 QML_FOREIGN_NAMESPACE(IntervalEnums)
28}
29
30struct InvervalModelForeign {
31 Q_GADGET
33 QML_NAMED_ELEMENT(IntervalModel)
34};
35
36struct OpeningHoursForeign {
37 Q_GADGET
39 QML_VALUE_TYPE(openingHours)
40};
41
42class OpeningHoursEnums : public KOpeningHours::OpeningHours {
43 Q_GADGET
44};
45namespace OpeningHoursEnumsForeign {
46 Q_NAMESPACE
47 QML_NAMED_ELEMENT(OpeningHours)
48 QML_FOREIGN_NAMESPACE(OpeningHoursEnums)
49}
50
51#endif
Model for showing opening intervals per day.
A time interval for which an opening hours expression has been evaluated.
Definition interval.h:25
An OSM opening hours specification.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:52:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.