KOpeningHours
display.cpp
54 ? i18np("Currently closed, opens in one minute", "Currently closed, opens in %1 minutes", minDiff)
55 : i18np("Currently closed (%2), opens in one minute", "Currently closed (%2), opens in %1 minutes", minDiff, i.comment());
73 : i18np("Currently closed (%2), opens in one hour", "Currently closed (%2), opens in %1 hours", hourDiff, i.comment());
91 : i18np("Currently closed (%2), opens in one day", "Currently closed (%2), opens in %1 days", dayDiff, i.comment());
99 // next change is further ahead than one week, or we are transitioning in a way we don't handle above
102 return i.comment().isEmpty() ? i18n("Currently open") : i18n("Currently open (%1)", i.comment());
QDateTime currentDateTime()
QString i18n(const char *text, const TYPE &arg...)
bool isEmpty() const const
Q_INVOKABLE KOpeningHours::Interval nextInterval(const KOpeningHours::Interval &interval) const
Returns the interval immediately following interval.
Definition: openinghours.cpp:600
QString i18np(const char *singular, const char *plural, const TYPE &arg...)
Q_INVOKABLE KOpeningHours::Interval interval(const QDateTime &dt) const
Returns the interval containing dt.
Definition: openinghours.cpp:512
KOPENINGHOURS_EXPORT QString currentState(const OpeningHours &oh)
Localized description of the current opening state, and upcoming transitions.
Definition: display.cpp:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 9 2022 04:07:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Aug 9 2022 04:07:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.