File indexing completed on 2024-12-22 04:40:15

0001 /*
0002     SPDX-FileCopyrightText: 2007-2009 Sergio Pistone <sergio_pistone@yahoo.com.ar>
0003     SPDX-FileCopyrightText: 2010-2022 Mladen Milinkovic <max@smoothware.net>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef SCRIPTING_SUBTITLEMODULE_H
0009 #define SCRIPTING_SUBTITLEMODULE_H
0010 
0011 #include "core/subtitletarget.h"
0012 
0013 #include <QObject>
0014 
0015 namespace SubtitleComposer {
0016 namespace Scripting {
0017 class SubtitleModule : public QObject
0018 {
0019     Q_OBJECT
0020 
0021     Q_ENUMS(TextTarget)
0022 
0023 public:
0024     SubtitleModule(QObject *parent = 0);
0025 
0026     using TextTarget = SubtitleComposer::SubtitleTarget;
0027 
0028 public slots:
0029     QObject * instance();
0030 
0031     bool translationMode();
0032 };
0033 }
0034 }
0035 #endif