File indexing completed on 2025-01-12 07:20:49
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_LOCATIONUTIL_P_H 0008 #define KPUBLICTRANSPORT_LOCATIONUTIL_P_H 0009 0010 class QString; 0011 0012 namespace KPublicTransport { 0013 0014 class Location; 0015 class LocationRequest; 0016 0017 /** Internal methods around Location. */ 0018 namespace LocationUtil 0019 { 0020 /** Request specific sorting/comparison for replies/models. */ 0021 bool sortLessThan(const LocationRequest &request, const Location &lhs, const Location &rhs); 0022 0023 /** Returns the key used for caching a location @p loc. */ 0024 QString cacheKey(const Location &loc); 0025 } 0026 0027 } 0028 0029 #endif // KPUBLICTRANSPORT_LOCATIONUTIL_P_H