File indexing completed on 2025-02-02 05:02:31

0001 /*
0002     SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef LOCATIONHELPER_H
0008 #define LOCATIONHELPER_H
0009 
0010 class QString;
0011 class QVariant;
0012 
0013 namespace LocationHelper
0014 {
0015     /** Departing country for location changes, location country otherwise. */
0016     QString departureCountry(const QVariant &res);
0017     /** Arrival country for location changes, location country otherwise. */
0018     QString destinationCountry(const QVariant &res);
0019 
0020     /** ISO 3166-1/2 country or region code for @p loc. */
0021     QString regionCode(const QVariant &loc);
0022 }
0023 
0024 #endif // LOCATIONHELPER_H