KTextAddons

languageinfo.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "textgrammarcheckprivate_export.h"
9
10#include <QObject>
11namespace TextGrammarCheck
12{
13class TEXTGRAMMARCHECK_TESTS_EXPORT LanguageInfo
14{
15public:
16 LanguageInfo();
17 ~LanguageInfo();
18
19 [[nodiscard]] QString name() const;
20 void setName(const QString &name);
21
22 [[nodiscard]] QString longCode() const;
23 void setLongCode(const QString &longCode);
24
25 [[nodiscard]] QString code() const;
26 void setCode(const QString &code);
27
28 [[nodiscard]] bool isValid() const;
29
30 void parse(const QJsonObject &obj);
31
32 [[nodiscard]] bool operator==(const LanguageInfo &other) const;
33
34private:
35 QString mName;
36 QString mLongCode;
37 QString mCode;
38};
39}
40Q_DECLARE_METATYPE(TextGrammarCheck::LanguageInfo)
41Q_DECLARE_TYPEINFO(TextGrammarCheck::LanguageInfo, Q_MOVABLE_TYPE);
QString name(GameStandardAction id)
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
bool isValid(QStringView ifopt)
FeedPtr parse(const DocumentSource &src, const QString &formatHint=QString())
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.