KOpeningHours

display.h
1/*
2 SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KOPENINGHOURS_DISPLAY_H
8#define KOPENINGHOURS_DISPLAY_H
9
10#include "kopeninghours_export.h"
11
12#include <qobjectdefs.h>
13
14class QString;
15
16namespace KOpeningHours {
17
18class OpeningHours;
19
20/** Utilities for displaying human-readable/localized opening hours information. */
21class KOPENINGHOURS_EXPORT Display
22{
23 Q_GADGET
24public:
25 /** Localized description of the current opening state, and upcoming transitions. */
26 Q_INVOKABLE static QString currentState(const KOpeningHours::OpeningHours &oh);
27};
28
29}
30
31#endif // KOPENINGHOURS_DISPLAY_H
Utilities for displaying human-readable/localized opening hours information.
Definition display.h:22
An OSM opening hours specification.
OSM opening hours parsing and evaluation.
Definition display.h:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:20:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.