| 23 | #include <QString> |
| 24 | |
| 25 | class SubtitlePostProcessor { |
| 26 | public: |
| 27 | SubtitlePostProcessor( |
| 28 | const PostProcessingConfig& ppConfig, |
| 29 | const QSharedPointer<const SubtitleConverter>& subtitleConverter); |
| 30 | |
| 31 | void perform(const QString& movieFilePath, |
| 32 | const QString& subtitleFilePath) const; |
| 33 | |
| 34 | private: |
| 35 | bool ppReplaceDiacriticsWithASCII(const QString& subtitleFilePath) const; |
| 36 | bool ppChangeSubtitlesEncoding(const QString& subtitleFilePath, |
| 37 | const QString& from, const QString& to) const; |
| 38 | bool ppChangeSubtitlesEncoding(const QString& subtitleFilePath, |
| 39 | const QString& to) const; |
| 40 | bool ppRemoveLinesContainingWords(const QString& subtitleFilePath, |
| 41 | QStringList wordList) const; |
| 42 | |
| 43 | const PostProcessingConfig& ppConfig; |
| 44 | QSharedPointer<const SubtitleConverter> subtitleConverter; |
| 45 | EncodingUtils encodingUtils; |
| 46 | }; |
| 47 | |
| 48 | #endif // SUBTITLEPOSTPROCESSOR_H |
nothing calls this directly
no outgoing calls
no test coverage detected