File indexing completed on 2024-12-22 04:28:24

0001 /*
0002   SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "textspeechtotext_export.h"
0009 #include <QObject>
0010 class QNetworkAccessManager;
0011 namespace TextSpeechToText
0012 {
0013 class TEXTSPEECHTOTEXT_EXPORT SpeechToTextEngineAccessManager : public QObject
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit SpeechToTextEngineAccessManager(QObject *parent = nullptr);
0018     ~SpeechToTextEngineAccessManager();
0019 
0020     static SpeechToTextEngineAccessManager *self();
0021 
0022     QNetworkAccessManager *networkManager() const;
0023 
0024 private:
0025     QNetworkAccessManager *const mNetworkAccessManager;
0026 };
0027 }