File indexing completed on 2024-05-26 16:08:48

0001 /*
0002    SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "libruqola_private_export.h"
0010 #include <QDebug>
0011 
0012 class LIBRUQOLACORE_TESTS_EXPORT AutotranslateLanguage
0013 {
0014 public:
0015     AutotranslateLanguage();
0016     [[nodiscard]] QString language() const;
0017     void setLanguage(const QString &language);
0018 
0019     [[nodiscard]] QString displayLanguage() const;
0020     void setDisplayLanguage(const QString &displayLanguage);
0021 
0022 private:
0023     QString mLanguage;
0024     QString mDisplayLanguage;
0025 };
0026 LIBRUQOLACORE_EXPORT QDebug operator<<(QDebug d, const AutotranslateLanguage &t);
0027 Q_DECLARE_METATYPE(AutotranslateLanguage)
0028 Q_DECLARE_TYPEINFO(AutotranslateLanguage, Q_MOVABLE_TYPE);