| 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 SUBTITLE_MATCHER_H |
| 16 | #define SUBTITLE_MATCHER_Hcxx . . $ `libqnapi/src/subtitlematcher.h:16:9`! |
| 17 | |
| 18 | #include "subconvert/subtitleformatsregistry.h"cxx . . $ `<file>/libqnapi/src/subconvert/subtitleformatsregistry.h`/ |
| 19 | |
| 20 | #include <QFileInfo> |
| 21 | #include <QSharedPointer> |
| 22 | |
| 23 | class SubtitleMatchercxx . . $ SubtitleMatcher# : public QObjectcxx . . $ QObject# { |
| 24 | Q_OBJECTcxx . . $ QString#QString(e1217c004a86c950). |
| 25 | public: |
| 26 | SubtitleMatchercxx . . $ SubtitleMatcher#SubtitleMatcher(328065b54377f352).(bool _noBackup, bool _isPostProcessingEnabled, |
| 27 | QStringcxx . . $ QString# _ppSubFormat, QStringcxx . . $ QString# _ppSubExtension, |
| 28 | bool _changePermissions, QStringcxx . . $ QString# _changePermissionsTo, |
| 29 | const QSharedPointercxx . . $ QSharedPointer#<const SubtitleFormatsRegistrycxx . . $ SubtitleFormatsRegistry#> |
| 30 | &subtitleFormatsRegistry); |
| 31 | |
| 32 | bool matchSubtitlescxx . . $ SubtitleMatcher#matchSubtitles(128312153f60fc8d).(QStringcxx . . $ QString# subtitlesTmpFilePath, |
| 33 | QStringcxx . . $ QString# targetMovieFilePath) const; |
| 34 | |
| 35 | private: |
| 36 | QStringcxx . . $ QString# selectTargetExtensioncxx . . $ SubtitleMatcher#selectTargetExtension(4ace3cc0cf22035b).(QFileInfocxx . . $ QFileInfo# subtitlesTmpFileInfo) const; |
| 37 | QStringcxx . . $ QString# constructSubtitlePathcxx . . $ SubtitleMatcher#constructSubtitlePath(4895135db7c39a2b).(QStringcxx . . $ QString# targetMovieFilePath, |
| 38 | QStringcxx . . $ QString# targetExtension, |
| 39 | QStringcxx . . $ QString# baseSuffix = ""cxx . . $ QString#QString(e1217c004a86c950).) const; |
| 40 | bool isWritablePathcxx . . $ SubtitleMatcher#isWritablePath(ce784287ea2249e0).(QStringcxx . . $ QString# path) const; |
| 41 | void removeOrCopycxx . . $ SubtitleMatcher#removeOrCopy(68677a49fc42faad).(QStringcxx . . $ QString# targetMoviefilePath, |
| 42 | QStringcxx . . $ QString# targetSubtitlesFilePath) const; |
| 43 | bool dryCopycxx . . $ SubtitleMatcher#dryCopy(128312153f60fc8d).(QStringcxx . . $ QString# srcFilePath, QStringcxx . . $ QString# dstFilePath) const; |
| 44 | void fixFilePermissionscxx . . $ SubtitleMatcher#fixFilePermissions(68677a49fc42faad).(QStringcxx . . $ QString# targetSubtitlesFilePath, |
| 45 | QStringcxx . . $ QString# changePermissionsTo) const; |
| 46 | |
| 47 | bool noBackupcxx . . $ SubtitleMatcher#noBackup.; |
| 48 | bool isPostProcessingEnabledcxx . . $ SubtitleMatcher#isPostProcessingEnabled.; |
| 49 | QStringcxx . . $ QString# ppSubFormatcxx . . $ SubtitleMatcher#ppSubFormat.; |
| 50 | QStringcxx . . $ QString# ppSubExtensioncxx . . $ SubtitleMatcher#ppSubExtension.; |
| 51 | bool changePermissionscxx . . $ SubtitleMatcher#changePermissions.; |
| 52 | QStringcxx . . $ QString# changePermissionsTocxx . . $ SubtitleMatcher#changePermissionsTo.; |
| 53 | |
| 54 | QSharedPointercxx . . $ QSharedPointer#<const SubtitleFormatsRegistrycxx . . $ SubtitleFormatsRegistry#> subtitleFormatsRegistrycxx . . $ SubtitleMatcher#subtitleFormatsRegistry.; |
| 55 | }; |
| 56 | |
| 57 | #endif // SUBTITLE_MATCHER_H |