KTextAddons

exportabstractautocorrection.h
1/*
2 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QHash>
10#include <QSet>
11#include <QString>
12
13#include "textautocorrectioncore_private_export.h"
14namespace TextAutoCorrectionCore
15{
16class TEXTAUTOCORRECTIONCORE_TESTS_EXPORT ExportAbstractAutocorrection
17{
18public:
19 ExportAbstractAutocorrection();
20 virtual ~ExportAbstractAutocorrection();
21 virtual bool exportData(const QString &language, const QString &fileName, QString &errorMessage, const QString &writablePath) = 0;
22
23 void setUpperCaseExceptions(const QSet<QString> &newUpperCaseExceptions);
24 void setTwoUpperLetterExceptions(const QSet<QString> &newTwoUpperLetterExceptions);
25 void setAutocorrectEntries(const QHash<QString, QString> &newAutocorrectEntries);
26
27protected:
28 QSet<QString> mUpperCaseExceptions;
29 QSet<QString> mTwoUpperLetterExceptions;
30 QHash<QString, QString> mAutocorrectEntries;
31};
32}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:49:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.