| 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 SUBTITLEPOSTPROCESSOR_H |
| 16 | #define SUBTITLEPOSTPROCESSOR_Hcxx . . $ `libqnapi/src/subtitlepostprocessor.h:16:9`! |
| 17 | |
| 18 | #include "config/postprocessingconfig.h"cxx . . $ `<file>/libqnapi/src/config/postprocessingconfig.h`/ |
| 19 | #include "subconvert/subtitleconverter.h"cxx . . $ `<file>/libqnapi/src/subconvert/subtitleconverter.h`/ |
| 20 | #include "utils/encodingutils.h"cxx . . $ `<file>/libqnapi/src/utils/encodingutils.h`/ |
| 21 | |
| 22 | #include <QSharedPointer> |
| 23 | #include <QString> |
| 24 | |
| 25 | class SubtitlePostProcessorcxx . . $ SubtitlePostProcessor# { |
| 26 | public: |
| 27 | SubtitlePostProcessorcxx . . $ SubtitlePostProcessor#SubtitlePostProcessor(fd8aafb32cd488cf).( |
| 28 | const PostProcessingConfigcxx . . $ PostProcessingConfig#& ppConfig, |
| 29 | const QSharedPointercxx . . $ QSharedPointer#<const SubtitleConvertercxx . . $ SubtitleConverter#>& subtitleConverter); |
| 30 | |
| 31 | void performcxx . . $ SubtitlePostProcessor#perform(b5b78ffdab614c30).(const QStringcxx . . $ QString#& movieFilePath, |
| 32 | const QStringcxx . . $ QString#& subtitleFilePath) const; |
| 33 | |
| 34 | private: |
| 35 | bool ppReplaceDiacriticsWithASCIIcxx . . $ SubtitlePostProcessor#ppReplaceDiacriticsWithASCII(f3b39adf77d9c36c).(const QStringcxx . . $ QString#& subtitleFilePath) const; |
| 36 | bool ppChangeSubtitlesEncodingcxx . . $ SubtitlePostProcessor#ppChangeSubtitlesEncoding(b62c89774989cffa).(const QStringcxx . . $ QString#& subtitleFilePath, |
| 37 | const QStringcxx . . $ QString#& from, const QStringcxx . . $ QString#& to) const; |
| 38 | bool ppChangeSubtitlesEncodingcxx . . $ SubtitlePostProcessor#ppChangeSubtitlesEncoding(90f171d2530d3e23).(const QStringcxx . . $ QString#& subtitleFilePath, |
| 39 | const QStringcxx . . $ QString#& to) const; |
| 40 | bool ppRemoveLinesContainingWordscxx . . $ SubtitlePostProcessor#ppRemoveLinesContainingWords(617e00a7a46bd807).(const QStringcxx . . $ QString#& subtitleFilePath, |
| 41 | QStringListcxx . . $ QStringList# wordList) const; |
| 42 | |
| 43 | const PostProcessingConfigcxx . . $ PostProcessingConfig#& ppConfigcxx . . $ SubtitlePostProcessor#ppConfig.; |
| 44 | QSharedPointercxx . . $ QSharedPointer#<const SubtitleConvertercxx . . $ SubtitleConverter#> subtitleConvertercxx . . $ SubtitlePostProcessor#subtitleConverter.; |
| 45 | EncodingUtilscxx . . $ EncodingUtils# encodingUtilscxx . . $ SubtitlePostProcessor#encodingUtils.; |
| 46 | }; |
| 47 | |
| 48 | #endif // SUBTITLEPOSTPROCESSOR_H |