KTextAddons

extractlanguagejob.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "libbergamot_private_export.h"
9#include <QObject>
10
11class LIBBERGAMOT_TESTS_EXPORT ExtractLanguageJob : public QObject
12{
13 Q_OBJECT
14public:
15 explicit ExtractLanguageJob(QObject *parent = nullptr);
16 ~ExtractLanguageJob() override;
17
18 [[nodiscard]] bool canStart() const;
19 void start();
20
21 [[nodiscard]] QString source() const;
22 void setSource(const QString &newSource);
23
25 void finished();
26 void errorText(const QString &str);
27
28private:
29 QString mSource;
30};
Q_SCRIPTABLE Q_NOREPLY void start()
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.