File indexing completed on 2024-12-22 04:40:10
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 OUTPUTFORMAT_H 0009 #define OUTPUTFORMAT_H 0010 0011 #include "format.h" 0012 0013 namespace SubtitleComposer { 0014 class OutputFormat : public Format 0015 { 0016 public: 0017 0018 QString writeSubtitle(const Subtitle &subtitle, bool primary) const 0019 { 0020 return dumpSubtitles(subtitle, primary); 0021 } 0022 0023 protected: 0024 virtual QString dumpSubtitles(const Subtitle &subtitle, bool primary) const = 0; 0025 0026 OutputFormat(const QString &name, const QStringList &extensions) : Format(name, extensions) {} 0027 }; 0028 } 0029 0030 #endif