Debian Codegraph @

libqnapi/src/engines/opensubtitlesdownloadengine.h

raw symbols SCIP
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 OPENSUBTITLESDOWNLOADENGINE_H
16 #define OPENSUBTITLESDOWNLOADENGINE_Hcxx . . $ `libqnapi/src/engines/opensubtitlesdownloadengine.h:16:9`!
17
18 #include "config/engineconfig.h"cxx . . $ `<file>/libqnapi/src/config/engineconfig.h`/
19 #include "engines/subtitledownloadengine.h"cxx . . $ `<file>/libqnapi/src/engines/subtitledownloadengine.h`/
20 #include "utils/p7zipdecoder.h"cxx . . $ `<file>/libqnapi/src/utils/p7zipdecoder.h`/
21 #include "utils/syncxmlrpc.h"cxx . . $ `<file>/libqnapi/src/utils/syncxmlrpc.h`/
22
23 class OpenSubtitlesDownloadEnginecxx . . $ OpenSubtitlesDownloadEngine# : public SubtitleDownloadEnginecxx . . $ SubtitleDownloadEngine# {
24 public:
25 OpenSubtitlesDownloadEnginecxx . . $ OpenSubtitlesDownloadEngine#OpenSubtitlesDownloadEngine(df1554a9682f3f11).(
26 const QStringcxx . . $ QString#& tmpPath, const EngineConfigcxx . . $ EngineConfig#& config,
27 const QSharedPointercxx . . $ QSharedPointer#<const P7ZipDecodercxx . . $ P7ZipDecoder#>& p7zipDecoder,
28 const QStringcxx . . $ QString#& qnapiDisplayableVersion, const QStringcxx . . $ QString#& language);
29 ~cxx . . $ OpenSubtitlesDownloadEngine#`~OpenSubtitlesDownloadEngine`(49f6e7a06ebc5aa8).OpenSubtitlesDownloadEnginecxx . . $ OpenSubtitlesDownloadEngine#();
30
31 static SubtitleDownloadEngineMetadatacxx . . $ SubtitleDownloadEngineMetadata# metadatacxx . . $ OpenSubtitlesDownloadEngine#metadata.;
32 static const char* const pixmapDatacxx . . $ OpenSubtitlesDownloadEngine#pixmapData.[];
33
34 SubtitleDownloadEngineMetadatacxx . . $ SubtitleDownloadEngineMetadata# metacxx . . $ OpenSubtitlesDownloadEngine#meta(f92abb37f8393eac).() const;
35 const char* const* enginePixmapDatacxx . . $ OpenSubtitlesDownloadEngine#enginePixmapData(69503a37793e448d).() const;
36
37 QStringcxx . . $ QString# checksumcxx . . $ OpenSubtitlesDownloadEngine#checksum(f7f320d754b8fd09).(QStringcxx . . $ QString# filename = ""cxx . . $ QString#QString(85c52e162fed56f9).);
38 bool lookForSubtitlescxx . . $ OpenSubtitlesDownloadEngine#lookForSubtitles(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# lang);
39 QListcxx . . $ QList#<SubtitleInfocxx . . $ SubtitleInfo#> listSubtitlescxx . . $ OpenSubtitlesDownloadEngine#listSubtitles(b615605bf031efa3).();
40 bool downloadcxx . . $ OpenSubtitlesDownloadEngine#download(786ace61d67fbe7f).(QUuidcxx . . $ QUuid# id);
41 bool unpackcxx . . $ OpenSubtitlesDownloadEngine#unpack(786ace61d67fbe7f).(QUuidcxx . . $ QUuid# id);
42 void cleanupcxx . . $ OpenSubtitlesDownloadEngine#cleanup(49f6e7a06ebc5aa8).();
43
44 private:
45 EngineConfigcxx . . $ EngineConfig# engineConfigcxx . . $ OpenSubtitlesDownloadEngine#engineConfig.;
46 QSharedPointercxx . . $ QSharedPointer#<const P7ZipDecodercxx . . $ P7ZipDecoder#> p7zipDecodercxx . . $ OpenSubtitlesDownloadEngine#p7zipDecoder.;
47 QStringcxx . . $ QString# qnapiDisplayableVersioncxx . . $ OpenSubtitlesDownloadEngine#qnapiDisplayableVersion.;
48 QStringcxx . . $ QString# languagecxx . . $ OpenSubtitlesDownloadEngine#language.;
49 SyncXmlRpccxx . . $ SyncXmlRpc# rpccxx . . $ OpenSubtitlesDownloadEngine#rpc.;
50
51 quint64cxx . . $ quint64# fileSizecxx . . $ OpenSubtitlesDownloadEngine#fileSize.;
52 QStringcxx . . $ QString# subFileNamecxx . . $ OpenSubtitlesDownloadEngine#subFileName., tokencxx . . $ OpenSubtitlesDownloadEngine#token.;
53
54 // sprawdza czy dana instancja klasy jest zalogowana na sewerze
55 bool isLoggedcxx . . $ OpenSubtitlesDownloadEngine#isLogged(c9857a73d68e59ba).() { return !tokencxx . . $ OpenSubtitlesDownloadEngine#token..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).(); }
56 // loguje na serwer OpenSubtitles
57 bool logincxx . . $ OpenSubtitlesDownloadEngine#login(c9857a73d68e59ba).();
58 // wylogowuje z serwera
59 void logoutcxx . . $ OpenSubtitlesDownloadEngine#logout(49f6e7a06ebc5aa8).();
60 };
61
62 #endif