File indexing completed on 2024-06-23 05:08:43
0001 /* 0002 SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KANDROIDEXTRAS_LOCALE_H 0008 #define KANDROIDEXTRAS_LOCALE_H 0009 0010 #include "kandroidextras_export.h" 0011 0012 class QJniObject; 0013 class QLocale; 0014 0015 namespace KAndroidExtras { 0016 0017 /** Conversion methods between java.util.Locale and QLocale. 0018 * @note Do not rename this file to locale.h, that clashes with POSIX locale.h when your 0019 * include paths are unfortunately set up causing bizarre compilation issues. 0020 */ 0021 namespace Locale 0022 { 0023 /** Create an java.util.Locale object from a QLocale. */ 0024 KANDROIDEXTRAS_EXPORT QJniObject fromLocale(const QLocale &locale); 0025 0026 /** Create an java.util.Locale object for the current QLocale. */ 0027 KANDROIDEXTRAS_EXPORT QJniObject current(); 0028 } 0029 0030 } 0031 0032 #endif // KANDROIDEXTRAS_LOCALE_H