KTextAddons

grammalectemanager.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
9#include "textgrammarcheck_export.h"
10#include <QObject>
11namespace TextGrammarCheck
12{
13class TEXTGRAMMARCHECK_EXPORT GrammalecteManager : public QObject
14{
15 Q_OBJECT
16public:
17 explicit GrammalecteManager(QObject *parent = nullptr);
18 ~GrammalecteManager() override;
19
20 static GrammalecteManager *self();
21
22 [[nodiscard]] QString pythonPath() const;
23 [[nodiscard]] QString grammalectePath() const;
24
25 void setPythonPath(const QString &pythonPath);
26 void setGrammalectePath(const QString &grammalectePath);
27 [[nodiscard]] QStringList options() const;
28 void setOptions(const QStringList &saveOptions);
29
30 void loadSettings();
31 void saveSettings();
32
33private:
34 Q_DISABLE_COPY(GrammalecteManager)
35 QStringList mOptions;
36 QString mPythonPath;
37 QString mGrammalectePath;
38};
39}
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.