Debian Codegraph @

gui/src/qnapi.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 __QNAPI__H__
16 #define __QNAPI__H__cxx . . $ `gui/src/qnapi.h:16:9`!
17
18 #include "config/qnapiconfig.h"cxx . . $ `<file>/libqnapi/src/config/qnapiconfig.h`/
19 #include "engines/subtitledownloadengine.h"cxx . . $ `<file>/libqnapi/src/engines/subtitledownloadengine.h`/
20 #include "engines/subtitledownloadenginesregistry.h"cxx . . $ `<file>/libqnapi/src/engines/subtitledownloadenginesregistry.h`/
21 #include "subtitleinfo.h"cxx . . $ `<file>/libqnapi/src/subtitleinfo.h`/
22
23 #include <Maybe.h>cxx . . $ `<file>/deps/qt-maybe/Maybe.h`/
24 #include <QList>
25 #include <QSharedPointer>
26 #include <QString>
27 #include <QStringList>
28
29 class QNapicxx . . $ QNapi# {
30 public:
31 QNapicxx . . $ QNapi#QNapi(de17f4ebc5b1904b).(const QNapiConfigcxx . . $ QNapiConfig#& config,
32 const Maybecxx . . $ Maybe#<QStringcxx . . $ QString#>& specificEngine = nothingcxx . . $ nothing(adb11f779fe07013).());
33 ~cxx . . $ QNapi#`~QNapi`(49f6e7a06ebc5aa8).QNapicxx . . $ QNapi#();
34
35 bool checkP7ZipPathcxx . . $ QNapi#checkP7ZipPath(c9857a73d68e59ba).();
36 bool checkTmpPathcxx . . $ QNapi#checkTmpPath(c9857a73d68e59ba).();
37 bool ppEnabledcxx . . $ QNapi#ppEnabled(c9857a73d68e59ba).();
38
39 void setMoviePathcxx . . $ QNapi#setMoviePath(7df51288a9ebd664).(QStringcxx . . $ QString# path);
40 QStringcxx . . $ QString# moviePathcxx . . $ QNapi#moviePath(4365c3963150523e).();
41 bool checkWritePermissionscxx . . $ QNapi#checkWritePermissions(c9857a73d68e59ba).();
42
43 void clearSubtitlesListcxx . . $ QNapi#clearSubtitlesList(49f6e7a06ebc5aa8).();
44 void checksumcxx . . $ QNapi#checksum(49f6e7a06ebc5aa8).();
45 bool lookForSubtitlescxx . . $ QNapi#lookForSubtitles(80825a4bb658cac2).(QStringcxx . . $ QString# lang, QStringcxx . . $ QString# engine = ""cxx . . $ QString#QString(e1217c004a86c950).);
46 bool lookForSubtitlescxx . . $ QNapi#lookForSubtitles(3f314a9d4d2b7bd0).(QStringListcxx . . $ QStringList# languages, QStringcxx . . $ QString# engine = ""cxx . . $ QString#QString(e1217c004a86c950).);
47 QListcxx . . $ QList#<SubtitleInfocxx . . $ SubtitleInfo#> listSubtitlescxx . . $ QNapi#listSubtitles(b615605bf031efa3).();
48
49 bool needToShowListcxx . . $ QNapi#needToShowList(c9857a73d68e59ba).();
50 int bestIdxcxx . . $ QNapi#bestIdx(b126dc7c1de90089).();
51
52 bool downloadcxx . . $ QNapi#download(83c267b20bac841a).(int i);
53 bool unpackcxx . . $ QNapi#unpack(83c267b20bac841a).(int i);
54 bool matchSubtitlescxx . . $ QNapi#matchSubtitles(c9857a73d68e59ba).();
55 void postProcessSubtitlescxx . . $ QNapi#postProcessSubtitles(83f5f38750778ac8).() const;
56
57 void cleanupcxx . . $ QNapi#cleanup(49f6e7a06ebc5aa8).();
58 QStringcxx . . $ QString# errorcxx . . $ QNapi#error(4365c3963150523e).();
59
60 QStringListcxx . . $ QStringList# listLoadedEnginescxx . . $ QNapi#listLoadedEngines(e1dbd5c4feadc8f5).() const;
61
62 private:
63 QSharedPointercxx . . $ QSharedPointer#<SubtitleDownloadEnginecxx . . $ SubtitleDownloadEngine#> engineByNamecxx . . $ QNapi#engineByName(187500e3609208b0).(QStringcxx . . $ QString# name) const;
64
65 QStringcxx . . $ QString# moviecxx . . $ QNapi#movie.;
66 QStringcxx . . $ QString# errorMsgcxx . . $ QNapi#errorMsg.;
67 QListcxx . . $ QList#<QSharedPointercxx . . $ QSharedPointer#<SubtitleDownloadEnginecxx . . $ SubtitleDownloadEngine#>> enginesListcxx . . $ QNapi#enginesList.;
68 QListcxx . . $ QList#<SubtitleInfocxx . . $ SubtitleInfo#> subtitlesListcxx . . $ QNapi#subtitlesList.;
69 QSharedPointercxx . . $ QSharedPointer#<SubtitleDownloadEnginecxx . . $ SubtitleDownloadEngine#> currentEnginecxx . . $ QNapi#currentEngine.;
70
71 // najlepszy indeks napisow
72 int theBestIdxcxx . . $ QNapi#theBestIdx.;
73
74 const QSharedPointercxx . . $ QSharedPointer#<const SubtitleDownloadEnginesRegistrycxx . . $ SubtitleDownloadEnginesRegistry#> enginesRegistrycxx . . $ QNapi#enginesRegistry.;
75 const QNapiConfigcxx . . $ QNapiConfig# configcxx . . $ QNapi#config.;
76 };
77
78 #endif // __QNAPI__H__