File indexing completed on 2024-05-12 04:42:45

0001 /*
0002     SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KPUBLICTRANSPORT_STOPOVERUTIL_P_H
0008 #define KPUBLICTRANSPORT_STOPOVERUTIL_P_H
0009 
0010 #include "kpublictransport_export.h"
0011 
0012 class QTimeZone;
0013 
0014 namespace KPublicTransport {
0015 
0016 class Stopover;
0017 class StopoverRequest;
0018 
0019 /** Internal methods around Stopover objects. */
0020 namespace StopoverUtil
0021 {
0022     /** Request specific time-based sorting/comparison. */
0023     bool timeLessThan(const StopoverRequest &req, const Stopover &lhs, const Stopover &rhs);
0024     bool timeEqual(const StopoverRequest &req, const Stopover &lhs, const Stopover &rhs);
0025 
0026     /** Reinterpret all floating times as times with the given timezone.
0027      *  @internal only exported for KPublicTransportOnboard
0028      */
0029     KPUBLICTRANSPORT_EXPORT void applyTimeZone(Stopover &dep, const QTimeZone &tz);
0030 }
0031 
0032 }
0033 
0034 #endif // KPUBLICTRANSPORT_STOPOVERUTIL_H