| 1 | /***************************************************************************** |
| 2 | ** QNapi |
| 3 | ** Copyright (C) 2008-2017 Piotr KrzemiĆski <[email protected]> |
| 4 | ** |
| 5 | ** This program is free software; you can redistribute it and/or modify |
| 6 | ** it under the terms of the GNU General Public License as published by |
| 7 | ** the Free Software Foundation; either version 2 of the License, or |
| 8 | ** (at your option) any later version. |
| 9 | ** |
| 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
| 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 12 | ** |
| 13 | *****************************************************************************/ |
| 14 | |
| 15 | #ifndef SUBTITLEFORMAT_H |
| 16 | #define SUBTITLEFORMAT_Hcxx . . $ `libqnapi/src/subconvert/subtitleformat.h:16:9`! |
| 17 | |
| 18 | #include <QString> |
| 19 | #include "subconvert/subfile.h"cxx . . $ `<file>/libqnapi/src/subconvert/subfile.h`/ |
| 20 | |
| 21 | class SubtitleFormatcxx . . $ SubtitleFormat# { |
| 22 | public: |
| 23 | virtual ~cxx . . $ SubtitleFormat#`~SubtitleFormat`(49f6e7a06ebc5aa8).SubtitleFormatcxx . . $ SubtitleFormat#() {} |
| 24 | virtual bool isTimeBasedcxx . . $ SubtitleFormat#isTimeBased(50ce9a9e25b4a850).() const = 0; |
| 25 | virtual QStringcxx . . $ QString# formatNamecxx . . $ SubtitleFormat#formatName(6ef7b6c27b00b43d).() const = 0; |
| 26 | virtual QStringcxx . . $ QString# defaultExtensioncxx . . $ SubtitleFormat#defaultExtension(6ef7b6c27b00b43d).() const = 0; |
| 27 | |
| 28 | virtual bool detectcxx . . $ SubtitleFormat#detect(5f1b03c390062051).(const QStringListcxx . . $ QStringList#& lines) const = 0; |
| 29 | virtual SubFilecxx . . $ SubFile# decodecxx . . $ SubtitleFormat#decode(a10217bac3d52496).(const QStringListcxx . . $ QStringList#& lines) const = 0; |
| 30 | virtual QStringListcxx . . $ QStringList# encodecxx . . $ SubtitleFormat#encode(547b88c4cc907c03).(const SubFilecxx . . $ SubFile#& subFile) const = 0; |
| 31 | |
| 32 | QVectorcxx . . $ QVector#<SubTokencxx . . $ SubToken#> decodeTokenStreamcxx . . $ SubtitleFormat#decodeTokenStream(8709a708f98d071b).(QStringcxx . . $ QString# tokenStream) const; |
| 33 | |
| 34 | private: |
| 35 | QStringcxx . . $ QString# parseColorcxx . . $ SubtitleFormat#parseColor(f6736f2569bd2ccc).(QStringcxx . . $ QString# colorString) const; |
| 36 | }; |
| 37 | |
| 38 | #endif // SUBTITLEFORMAT_H |