| 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 NAPISY24DOWNLOADENGINE_H |
| 16 | #define NAPISY24DOWNLOADENGINE_Hcxx . . $ `libqnapi/src/engines/napisy24downloadengine.h:16:9`! |
| 17 | |
| 18 | #include "config/engineconfig.h"cxx . . $ `<file>/libqnapi/src/config/engineconfig.h`/ |
| 19 | #include "config/staticconfig.h"cxx . . $ `<file>/libqnapi/src/config/staticconfig.h`/ |
| 20 | #include "engines/subtitledownloadengine.h"cxx . . $ `<file>/libqnapi/src/engines/subtitledownloadengine.h`/ |
| 21 | #include "utils/p7zipdecoder.h"cxx . . $ `<file>/libqnapi/src/utils/p7zipdecoder.h`/ |
| 22 | #include "utils/synchttp.h"cxx . . $ `<file>/libqnapi/src/utils/synchttp.h`/ |
| 23 | |
| 24 | #include <QSharedPointer> |
| 25 | |
| 26 | class Napisy24DownloadEnginecxx . . $ Napisy24DownloadEngine# : public SubtitleDownloadEnginecxx . . $ SubtitleDownloadEngine# { |
| 27 | public: |
| 28 | Napisy24DownloadEnginecxx . . $ Napisy24DownloadEngine#Napisy24DownloadEngine(fd51831b00526140).(const QStringcxx . . $ QString#& tmpPath, const EngineConfigcxx . . $ EngineConfig#& config, |
| 29 | const QSharedPointercxx . . $ QSharedPointer#<const P7ZipDecodercxx . . $ P7ZipDecoder#>& p7zipDecoder, |
| 30 | const QStringListcxx . . $ QStringList#& subtitleExtensions); |
| 31 | ~cxx . . $ Napisy24DownloadEngine#`~Napisy24DownloadEngine`(49f6e7a06ebc5aa8).Napisy24DownloadEnginecxx . . $ Napisy24DownloadEngine#(); |
| 32 | |
| 33 | static SubtitleDownloadEngineMetadatacxx . . $ SubtitleDownloadEngineMetadata# metadatacxx . . $ Napisy24DownloadEngine#metadata.; |
| 34 | static const char* const pixmapDatacxx . . $ Napisy24DownloadEngine#pixmapData.[]; |
| 35 | |
| 36 | SubtitleDownloadEngineMetadatacxx . . $ SubtitleDownloadEngineMetadata# metacxx . . $ Napisy24DownloadEngine#meta(f92abb37f8393eac).() const; |
| 37 | const char* const* enginePixmapDatacxx . . $ Napisy24DownloadEngine#enginePixmapData(69503a37793e448d).() const; |
| 38 | |
| 39 | QStringcxx . . $ QString# checksumcxx . . $ Napisy24DownloadEngine#checksum(f7f320d754b8fd09).(QStringcxx . . $ QString# filename = ""cxx . . $ QString#QString(e1217c004a86c950).); |
| 40 | bool lookForSubtitlescxx . . $ Napisy24DownloadEngine#lookForSubtitles(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# lang); |
| 41 | QListcxx . . $ QList#<SubtitleInfocxx . . $ SubtitleInfo#> listSubtitlescxx . . $ Napisy24DownloadEngine#listSubtitles(b615605bf031efa3).(); |
| 42 | bool downloadcxx . . $ Napisy24DownloadEngine#download(786ace61d67fbe7f).(QUuidcxx . . $ QUuid# id); |
| 43 | bool unpackcxx . . $ Napisy24DownloadEngine#unpack(786ace61d67fbe7f).(QUuidcxx . . $ QUuid# id); |
| 44 | void cleanupcxx . . $ Napisy24DownloadEngine#cleanup(49f6e7a06ebc5aa8).(); |
| 45 | |
| 46 | private: |
| 47 | QPaircxx . . $ QPair#<QStringcxx . . $ QString#, QStringcxx . . $ QString#> getCredentialscxx . . $ Napisy24DownloadEngine#getCredentials(7244367319e8f47).() const; |
| 48 | |
| 49 | EngineConfigcxx . . $ EngineConfig# engineConfigcxx . . $ Napisy24DownloadEngine#engineConfig.; |
| 50 | QSharedPointercxx . . $ QSharedPointer#<const P7ZipDecodercxx . . $ P7ZipDecoder#> p7zipDecodercxx . . $ Napisy24DownloadEngine#p7zipDecoder.; |
| 51 | QStringListcxx . . $ QStringList# subtitleExtensionscxx . . $ Napisy24DownloadEngine#subtitleExtensions.; |
| 52 | |
| 53 | quint64cxx . . $ quint64# fileSizecxx . . $ Napisy24DownloadEngine#fileSize.; |
| 54 | }; |
| 55 | |
| 56 | #endif // NAPISY24DOWNLOADENGINE_H |