File indexing completed on 2024-06-09 04:53:11

0001 /*
0002     SPDX-FileCopyrightText: 2023 Mladen Milinkovic <max@smoothware.net>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #ifndef TRANSLATEENGINE_H
0007 #define TRANSLATEENGINE_H
0008 
0009 #include <QObject>
0010 #include <QString>
0011 #include <QVector>
0012 #include <QWidget>
0013 
0014 namespace SubtitleComposer {
0015 
0016 class TranslateEngine : public QObject
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     explicit TranslateEngine(QObject *parent=nullptr);
0022 
0023     virtual QString name() const = 0;
0024 
0025     virtual void settings(QWidget *widget) = 0;
0026     virtual void translate(QVector<QString> &textLines) = 0;
0027 
0028 signals:
0029     void engineReady(bool status);
0030     void translated();
0031 };
0032 } // namespace SubtitleComposer
0033 
0034 #endif // TRANSLATEENGINE_H