1 | // Copyright (C) 2024 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QTIMEZONELOCALE_P_H |
5 | #define QTIMEZONELOCALE_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists for the convenience |
12 | // of internal files. This header file may change from version to version |
13 | // without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | #include <private/qglobal_p.h> |
18 | |
19 | #include <QtCore/qstring.h> |
20 | #include <QtCore/qtimezone.h> |
21 | |
22 | #if QT_CONFIG(icu) |
23 | #include <unicode/ucal.h> |
24 | #endif |
25 | |
26 | QT_REQUIRE_CONFIG(timezone); |
27 | QT_REQUIRE_CONFIG(timezone_locale); |
28 | |
29 | QT_BEGIN_NAMESPACE |
30 | |
31 | namespace QtTimeZoneLocale { |
32 | #if QT_CONFIG(icu) |
33 | QString ucalTimeZoneDisplayName(UCalendar *ucal, QTimeZone::TimeType timeType, |
34 | QTimeZone::NameType nameType, |
35 | const QByteArray &localeCode); |
36 | #else |
37 | // Define data types for QTZL_data_p.h |
38 | |
39 | #endif |
40 | } |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | #endif // QTIMEZONELOCALE_P_H |
45 | |