KTextAddons

languagetoolupdatecombobox.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 "textgrammarcheckprivate_export.h"
10#include <QObject>
11namespace TextGrammarCheck
12{
13class LanguageToolComboBox;
14class TEXTGRAMMARCHECK_TESTS_EXPORT LanguageToolUpdateComboBox : public QObject
15{
16 Q_OBJECT
17public:
18 explicit LanguageToolUpdateComboBox(QObject *parent = nullptr);
19 ~LanguageToolUpdateComboBox() override;
20
21 [[nodiscard]] LanguageToolComboBox *languageToolCombobox() const;
22 void setLanguageToolCombobox(LanguageToolComboBox *languageToolCombobox);
23
24 void checkListOfLanguagesFromSpecificPath(const QString &url);
25 void firstRefreshListOfLanguages();
26 void refreshListOfLanguages();
27
28 [[nodiscard]] QWidget *parentWidget() const;
29 void setParentWidget(QWidget *parentWidget);
30
31private:
32 void slotGetLanguagesFinished(const QString &result);
33 void slotGetLanguagesError(const QString &error);
34 static inline bool mBListWasLoaded = false;
35 LanguageToolComboBox *mLanguageToolCombobox = nullptr;
36 QWidget *mParentWidget = nullptr;
37};
38}
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.