File indexing completed on 2024-04-28 08:32:03

0001 /*
0002     SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KOPENINGHOURS_DISPLAY_H
0008 #define KOPENINGHOURS_DISPLAY_H
0009 
0010 #include "kopeninghours_export.h"
0011 
0012 #include <qobjectdefs.h>
0013 
0014 class QString;
0015 
0016 namespace KOpeningHours {
0017 
0018 class OpeningHours;
0019 
0020 /** Utilities for displaying human-readable/localized opening hours information. */
0021 class KOPENINGHOURS_EXPORT Display
0022 {
0023     Q_GADGET
0024 public:
0025     /** Localized description of the current opening state, and upcoming transitions. */
0026     Q_INVOKABLE static QString currentState(const KOpeningHours::OpeningHours &oh);
0027 };
0028 
0029 }
0030 
0031 #endif // KOPENINGHOURS_DISPLAY_H