7#include "libbergamot_export.h"
11class LIBBERGAMOT_EXPORT ManagerModelTranslator :
public QObject
17 qint64 bytesReceived = -1;
18 qint64 bytesTotal = -1;
20 explicit ManagerModelTranslator(
QObject *parent =
nullptr);
21 ~ManagerModelTranslator()
override;
23 static ManagerModelTranslator *self();
25 void downloadListModels();
30 void loadModelList(
const QString &fileName);
32 void downloadLanguage(
const QString &url,
const QString &checkSum);
33 [[nodiscard]]
bool needDownloadModelList()
const;
35 void errorText(
const QString &str);
36 void progress(
const ManagerModelTranslator::ProgressInfo &info);
38 void downLoadModelListDone();
41 LIBBERGAMOT_NO_EXPORT
void parseListModel(
const QJsonObject &obj);
44Q_DECLARE_TYPEINFO(ManagerModelTranslator::ProgressInfo, Q_MOVABLE_TYPE);
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.