| 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 TMPLAYERSUBTITLEFORMAT_H |
| 16 | #define TMPLAYERSUBTITLEFORMAT_Hcxx . . $ `libqnapi/src/subconvert/formats/tmplayer.h:16:9`! |
| 17 | |
| 18 | #include "subconvert/subtitleformat.h"cxx . . $ `<file>/libqnapi/src/subconvert/subtitleformat.h`/ |
| 19 | |
| 20 | class TMPlayerSubtitleFormatcxx . . $ TMPlayerSubtitleFormat# : public SubtitleFormatcxx . . $ SubtitleFormat# { |
| 21 | public: |
| 22 | virtual ~cxx . . $ TMPlayerSubtitleFormat#`~TMPlayerSubtitleFormat`(49f6e7a06ebc5aa8).TMPlayerSubtitleFormatcxx . . $ TMPlayerSubtitleFormat#() {} |
| 23 | |
| 24 | bool isTimeBasedcxx . . $ TMPlayerSubtitleFormat#isTimeBased(50ce9a9e25b4a850).() const { return true; } |
| 25 | QStringcxx . . $ QString# formatNamecxx . . $ TMPlayerSubtitleFormat#formatName(6ef7b6c27b00b43d).() const { returncxx . . $ QString#QString(e1217c004a86c950). "TMP"cxx . . $ QString#QString(85c52e162fed56f9).; } |
| 26 | QStringcxx . . $ QString# defaultExtensioncxx . . $ TMPlayerSubtitleFormat#defaultExtension(6ef7b6c27b00b43d).() const { returncxx . . $ QString#QString(e1217c004a86c950). "txt"cxx . . $ QString#QString(85c52e162fed56f9).; } |
| 27 | |
| 28 | bool detectcxx . . $ TMPlayerSubtitleFormat#detect(5f1b03c390062051).(const QStringListcxx . . $ QStringList# &lines) const; |
| 29 | SubFilecxx . . $ SubFile# decodecxx . . $ TMPlayerSubtitleFormat#decode(a10217bac3d52496).(const QStringListcxx . . $ QStringList# &lines) const; |
| 30 | QStringListcxx . . $ QStringList# encodecxx . . $ TMPlayerSubtitleFormat#encode(547b88c4cc907c03).(const SubFilecxx . . $ SubFile# &subFile) const; |
| 31 | |
| 32 | private: |
| 33 | QStringcxx . . $ QString# encodeEntrycxx . . $ TMPlayerSubtitleFormat#encodeEntry(ca3a0ff6d305d01e).(const SubEntrycxx . . $ SubEntry# &entry) const; |
| 34 | QStringcxx . . $ QString# encodeTokencxx . . $ TMPlayerSubtitleFormat#encodeToken(a468b8cbbcf05ae6).(const SubTokencxx . . $ SubToken# &entry) const; |
| 35 | }; |
| 36 | |
| 37 | #endif // TMPLAYERSUBTITLEFORMAT_H |