Debian Codegraph @

src/librssguard/network-web/downloader.cpp

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/network-web/downloader.cpp`/
2
3 #include "network-web/downloader.h"cxx . . $ `<file>/src/librssguard/network-web/downloader.h`/
4
5 #include "miscellaneous/application.h"cxx . . $ `<file>/src/librssguard/miscellaneous/application.h`/
6 #include "network-web/cookiejar.h"cxx . . $ `<file>/src/librssguard/network-web/cookiejar.h`/
7 #include "network-web/gemini/geminiparser.h"cxx . . $ `<file>/src/librssguard/network-web/gemini/geminiparser.h`/
8 #include "network-web/networkfactory.h"cxx . . $ `<file>/src/librssguard/network-web/networkfactory.h`/
9 #include "network-web/silentnetworkaccessmanager.h"cxx . . $ `<file>/src/librssguard/network-web/silentnetworkaccessmanager.h`/
10 #include "network-web/webfactory.h"cxx . . $ `<file>/src/librssguard/network-web/webfactory.h`/
11
12 #include <QHttpMultiPart>
13 #include <QNetworkCookie>
14 #include <QRegularExpression>
15 #include <QTimer>
16
17 Downloadercxx . . $ Downloader#::Downloadercxx . . $ Downloader#Downloader(749de1b6ae65bddd).(QObjectcxx . . $ QObject#* parent)
18 : QObjectcxx . . $ QObject#QObject(749de1b6ae65bddd).(parent), m_geminiClientcxx . . $ Downloader#m_geminiClient.(new GeminiClientcxx . . $ GeminiClient#(this)), m_geminiParsercxx . . $ Downloader#m_geminiParser.(GeminiParsercxx . . $ GeminiParser#(false)),
19 m_activeReplycxx . . $ Downloader#m_activeReply.(nullptr), m_downloadManagercxx . . $ Downloader#m_downloadManager.(new SilentNetworkAccessManagercxx . . $ SilentNetworkAccessManager#SilentNetworkAccessManager(749de1b6ae65bddd).(this)), m_timercxx . . $ Downloader#m_timer.(new QTimercxx . . $ QTimer#QTimer(749de1b6ae65bddd).(this)),
20 m_inputDatacxx . . $ Downloader#m_inputData.(QByteArraycxx . . $ QByteArray#QByteArray(ced63f7c635d850d).()), m_inputMultipartDatacxx . . $ Downloader#m_inputMultipartData.(nullptr), m_targetProtectedcxx . . $ Downloader#m_targetProtected.(false), m_targetUsernamecxx . . $ Downloader#m_targetUsername.(QStringcxx . . $ QString#QString(ced63f7c635d850d).()),
21 m_targetPasswordcxx . . $ Downloader#m_targetPassword.(QStringcxx . . $ QString#QString(ced63f7c635d850d).()), m_lastOutputDatacxx . . $ Downloader#m_lastOutputData.({}), m_lastOutputErrorcxx . . $ Downloader#m_lastOutputError.(QNetworkReplycxx . . $ QNetworkReply#::NetworkErrorcxx . . $ QNetworkReply#NetworkError#::NoErrorcxx . . $ QNetworkReply#NoError.),
22 m_lastHttpStatusCodecxx . . $ Downloader#m_lastHttpStatusCode.(0), m_lastHeaderscxx . . $ Downloader#m_lastHeaders.({cxx . . $ std/initializer_list#initializer_list(ced63f7c635d850d).}) {
23 m_timercxx . . $ Downloader#m_timer.->setIntervalcxx . . $ QTimer#setInterval(d4f767463ce0a6b3).(DOWNLOAD_TIMEOUTcxx . . $ `src/librssguard/definitions/definitions.h:75:9`!);
24 m_timercxx . . $ Downloader#m_timer.->setSingleShotcxx . . $ QTimer#setSingleShot(b45ddcbc8423892c).(true);
25
26 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_timercxx . . $ Downloader#m_timer., &QTimercxx . . $ QTimer#::timeoutcxx . . $ QTimer#timeout(32604d697c0ceadc)., this, &Downloadercxx . . $ Downloader#::cancelcxx . . $ Downloader#cancel(49f6e7a06ebc5aa8).);
27
28 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_geminiClientcxx . . $ Downloader#m_geminiClient., &GeminiClientcxx . . $ GeminiClient#::redirectedcxx . . $ GeminiClient#redirected(61e5b15e0cd21ddb)., this, &Downloadercxx . . $ Downloader#::geminiRedirectcxx . . $ Downloader#geminiRedirect(61e5b15e0cd21ddb).);
29 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_geminiClientcxx . . $ Downloader#m_geminiClient., &GeminiClientcxx . . $ GeminiClient#::requestCompletecxx . . $ GeminiClient#requestComplete(84d6cb2703da46aa)., this, &Downloadercxx . . $ Downloader#::geminiFinishedcxx . . $ Downloader#geminiFinished(84d6cb2703da46aa).);
30 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_geminiClientcxx . . $ Downloader#m_geminiClient., &GeminiClientcxx . . $ GeminiClient#::networkErrorcxx . . $ GeminiClient#networkError(bf7ef9a2ade9db5c)., this, &Downloadercxx . . $ Downloader#::geminiErrorcxx . . $ Downloader#geminiError(bf7ef9a2ade9db5c).);
31
32 m_downloadManagercxx . . $ Downloader#m_downloadManager.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setCookieJarcxx . . $ QNetworkAccessManager#setCookieJar(5defa0843ac2324f).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->webcxx . . $ Application#web(ad68e16c93841931).()->cookieJarcxx . . $ WebFactory#cookieJar(8223048f1f68e9c6).());
33 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->webcxx . . $ Application#web(ad68e16c93841931).()->cookieJarcxx . . $ WebFactory#cookieJar(8223048f1f68e9c6).()->setParentcxx . . $ QObject#setParent(749de1b6ae65bddd).(nullptr);
34 }
35
36 Downloadercxx . . $ Downloader#::~cxx . . $ Downloader#`~Downloader`(ced63f7c635d850d).Downloadercxx . . $ Downloader#() {
37 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_NETWORKcxx . . $ `src/librssguard/definitions/definitions.h:168:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Destroying Downloader instance.";
38 }
39
40 void Downloadercxx . . $ Downloader#::geminiFinishedcxx . . $ Downloader#geminiFinished(84d6cb2703da46aa).(const QByteArraycxx . . $ QByteArray#& data, const QStringcxx . . $ QString#& mime) {
41 m_timercxx . . $ Downloader#m_timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).();
42 m_activeReplycxx . . $ Downloader#m_activeReply. = nullptr;
43
44 m_lastContentTypecxx . . $ Downloader#m_lastContentType. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). mime;
45 m_lastUrlcxx . . $ Downloader#m_lastUrl. =cxx . . $ QUrl#`operator=`(590d023fc9cd4b2d). m_geminiClientcxx . . $ Downloader#m_geminiClient.->targetUrlcxx . . $ GeminiClient#targetUrl(36d9834fe7321282).();
46 m_lastCookiescxx . . $ Downloader#m_lastCookies. =cxx . . $ QList#`operator=`(f67483249d2fd4fc). {cxx . . $ std/initializer_list#initializer_list(ced63f7c635d850d).};
47 m_lastHeaderscxx . . $ Downloader#m_lastHeaders. =cxx . . $ QMap#`operator=`(bb520cca0bf51e2a). {cxx . . $ QMap#QMap(49f6e7a06ebc5aa8).};
48 m_lastHttpStatusCodecxx . . $ Downloader#m_lastHttpStatusCode. = 0;
49 m_lastOutputErrorcxx . . $ Downloader#m_lastOutputError. = QNetworkReplycxx . . $ QNetworkReply#::NetworkErrorcxx . . $ QNetworkReply#NetworkError#::NoErrorcxx . . $ QNetworkReply#NoError.;
50 m_lastOutputMultipartDatacxx . . $ Downloader#m_lastOutputMultipartData. =cxx . . $ QList#`operator=`(f67483249d2fd4fc). {cxx . . $ std/initializer_list#initializer_list(ced63f7c635d850d).};
51
52 if (mime.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!(GEMINI_MIME_TYPEcxx . . $ `src/librssguard/network-web/gemini/geminiclient.h:15:9`!))) {
53 m_lastOutputDatacxx . . $ Downloader#m_lastOutputData. =cxx . . $ QByteArray#`operator=`(c3d647c78c52d790). m_geminiParsercxx . . $ Downloader#m_geminiParser..geminiToHtmlcxx . . $ GeminiParser#geminiToHtml(4e15edac36d215be).(data).toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).();
54 }
55 else {
56 m_lastOutputDatacxx . . $ Downloader#m_lastOutputData. =cxx . . $ QByteArray#`operator=`(acee8257ca81216f). data;
57 }
58
59 emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! completedcxx . . $ Downloader#completed(2e59411b5306353b).(m_lastUrlcxx . . $ Downloader#m_lastUrl., m_lastOutputErrorcxx . . $ Downloader#m_lastOutputError., m_lastHttpStatusCodecxx . . $ Downloader#m_lastHttpStatusCode., m_lastOutputDatacxx . . $ QByteArray#QByteArray(6bfe0b9ef323589d).);
60 }
61
62 void Downloadercxx . . $ Downloader#::geminiErrorcxx . . $ Downloader#geminiError(bf7ef9a2ade9db5c).(GeminiClientcxx . . $ GeminiClient#::NetworkErrorcxx . . $ GeminiClient#NetworkError# error, const QStringcxx . . $ QString#& reason) {
63 m_timercxx . . $ Downloader#m_timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).();
64 m_activeReplycxx . . $ Downloader#m_activeReply. = nullptr;
65
66 m_lastContentTypecxx . . $ Downloader#m_lastContentType. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#QString(ced63f7c635d850d).();
67 m_lastUrlcxx . . $ Downloader#m_lastUrl. =cxx . . $ QUrl#`operator=`(590d023fc9cd4b2d). m_geminiClientcxx . . $ Downloader#m_geminiClient.->targetUrlcxx . . $ GeminiClient#targetUrl(36d9834fe7321282).();
68 m_lastCookiescxx . . $ Downloader#m_lastCookies. =cxx . . $ QList#`operator=`(f67483249d2fd4fc). {cxx . . $ std/initializer_list#initializer_list(ced63f7c635d850d).};
69 m_lastHeaderscxx . . $ Downloader#m_lastHeaders. =cxx . . $ QMap#`operator=`(bb520cca0bf51e2a). {cxx . . $ QMap#QMap(49f6e7a06ebc5aa8).};
70 m_lastHttpStatusCodecxx . . $ Downloader#m_lastHttpStatusCode. = 404;
71 m_lastOutputDatacxx . . $ Downloader#m_lastOutputData. =cxx . . $ QByteArray#`operator=`(c3d647c78c52d790). QByteArraycxx . . $ QByteArray#QByteArray(ced63f7c635d850d).();
72 m_lastOutputErrorcxx . . $ Downloader#m_lastOutputError. = QNetworkReplycxx . . $ QNetworkReply#::NetworkErrorcxx . . $ QNetworkReply#NetworkError#::UnknownNetworkErrorcxx . . $ QNetworkReply#UnknownNetworkError.;
73 m_lastOutputMultipartDatacxx . . $ Downloader#m_lastOutputMultipartData. =cxx . . $ QList#`operator=`(f67483249d2fd4fc). {cxx . . $ std/initializer_list#initializer_list(ced63f7c635d850d).};
74
75 emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! completedcxx . . $ Downloader#completed(2e59411b5306353b).(m_lastUrlcxx . . $ Downloader#m_lastUrl., m_lastOutputErrorcxx . . $ Downloader#m_lastOutputError., m_lastHttpStatusCodecxx . . $ Downloader#m_lastHttpStatusCode.);
76 }
77
78 void Downloadercxx . . $ Downloader#::downloadFilecxx . . $ Downloader#downloadFile(59dca4567f557537).(const QStringcxx . . $ QString#& url,
79 int timeout,
80 bool protected_contents,
81 const QStringcxx . . $ QString#& username,
82 const QStringcxx . . $ QString#& password) {
83 manipulateDatacxx . . $ Downloader#manipulateData(6b89976b71ced0d1).(url,
84 QNetworkAccessManagercxx . . $ QNetworkAccessManager#::GetOperationcxx . . $ QNetworkAccessManager#GetOperation.,
85 QByteArraycxx . . $ QByteArray#QByteArray(ced63f7c635d850d).(),
86 timeout,
87 protected_contents,
88 username,
89 password);
90 }
91
92 void Downloadercxx . . $ Downloader#::uploadFilecxx . . $ Downloader#uploadFile(ff82e17042abd466).(const QStringcxx . . $ QString#& url,
93 const QByteArraycxx . . $ QByteArray#& data,
94 int timeout,
95 bool protected_contents,
96 const QStringcxx . . $ QString#& username,
97 const QStringcxx . . $ QString#& password) {
98 manipulateDatacxx . . $ Downloader#manipulateData(6b89976b71ced0d1).(url,
99 QNetworkAccessManagercxx . . $ QNetworkAccessManager#::Operationcxx . . $ QNetworkAccessManager#Operation#::PostOperationcxx . . $ QNetworkAccessManager#PostOperation.,
100 data,
101 timeout,
102 protected_contents,
103 username,
104 password);
105 }
106
107 void Downloadercxx . . $ Downloader#::manipulateDatacxx . . $ Downloader#manipulateData(3688cabcec565115).(const QStringcxx . . $ QString#& url,
108 QNetworkAccessManagercxx . . $ QNetworkAccessManager#::Operationcxx . . $ QNetworkAccessManager#Operation# operation,
109 QHttpMultiPartcxx . . $ QHttpMultiPart#* multipart_data,
110 int timeout,
111 bool protected_contents,
112 const QStringcxx . . $ QString#& username,
113 const QStringcxx . . $ QString#& password) {
114 manipulateDatacxx . . $ Downloader#manipulateData(4e1a6d2315e70f4e).(url, operation, QByteArraycxx . . $ QByteArray#QByteArray(ced63f7c635d850d).(), multipart_data, timeout, protected_contents, username, password);
115 }
116
117 void Downloadercxx . . $ Downloader#::manipulateDatacxx . . $ Downloader#manipulateData(6b89976b71ced0d1).(const QStringcxx . . $ QString#& url,
118 QNetworkAccessManagercxx . . $ QNetworkAccessManager#::Operationcxx . . $ QNetworkAccessManager#Operation# operation,
119 const QByteArraycxx . . $ QByteArray#& data,
120 int timeout,
121 bool protected_contents,
122 const QStringcxx . . $ QString#& username,
123 const QStringcxx . . $ QString#& password) {
124 manipulateDatacxx . . $ Downloader#manipulateData(4e1a6d2315e70f4e).(url, operation, data, nullptr, timeout, protected_contents, username, password);
125 }
126
127 void Downloadercxx . . $ Downloader#::geminiRedirectcxx . . $ Downloader#geminiRedirect(61e5b15e0cd21ddb).(const QUrlcxx . . $ QUrl#& uri, bool is_permanent) {
128 m_timercxx . . $ Downloader#m_timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).();
129
130 QUrlcxx . . $ QUrl# new_url = m_geminiClientcxx . . $ Downloader#m_geminiClient.->targetUrlcxx . . $ GeminiClient#targetUrl(36d9834fe7321282).().resolvedcxx . . $ QUrl#resolved(12b57030d3a86ba7).(uri);
131
132 runGeminiRequestcxx . . $ Downloader#runGeminiRequest(37355d2f77053a23).(new_url);
133 }
134
135 void Downloadercxx . . $ Downloader#::runGeminiRequestcxx . . $ Downloader#runGeminiRequest(37355d2f77053a23).(const QUrlcxx . . $ QUrl#& url) {
136 m_timercxx . . $ Downloader#m_timer.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).();
137 m_geminiClientcxx . . $ Downloader#m_geminiClient.->startRequestcxx . . $ GeminiClient#startRequest(cefe749ea8d0af37).(url, GeminiClientcxx . . $ GeminiClient#::RequestOptionscxx . . $ GeminiClient#RequestOptions#::IgnoreTlsErrorscxx . . $ GeminiClient#IgnoreTlsErrors.);
138 }
139
140 void Downloadercxx . . $ Downloader#::manipulateDatacxx . . $ Downloader#manipulateData(4e1a6d2315e70f4e).(const QStringcxx . . $ QString#& url,
141 QNetworkAccessManagercxx . . $ QNetworkAccessManager#::Operationcxx . . $ QNetworkAccessManager#Operation# operation,
142 const QByteArraycxx . . $ QByteArray#& data,
143 QHttpMultiPartcxx . . $ QHttpMultiPart#* multipart_data,
144 int timeout,
145 bool protected_contents,
146 const QStringcxx . . $ QString#& username,
147 const QStringcxx . . $ QString#& password) {
148 QStringcxx . . $ QString# sanitized_url = NetworkFactorycxx . . $ NetworkFactory#::sanitizeUrlcxx . . $ NetworkFactory#sanitizeUrl(fd988a2ab94d906b).(url);
149
150 if (m_geminiClientcxx . . $ Downloader#m_geminiClient.->supportsUrlcxx . . $ GeminiClient#supportsUrl(f3b39adf77d9c36c).(sanitized_url)) {
151 QUrlcxx . . $ QUrl# gemini_url = QUrlcxx . . $ QUrl#::fromUserInputcxx . . $ QUrl#fromUserInput(6a862b781f6237c0).(sanitized_url);
152
153 runGeminiRequestcxx . . $ Downloader#runGeminiRequest(37355d2f77053a23).(gemini_url);
154 }
155 else {
156
157 auto cookies = CookieJarcxx . . $ CookieJar#::extractCookiesFromUrlcxx . . $ CookieJar#extractCookiesFromUrl(a4a7df5b19258c15).(sanitized_url);
158
159 if (!cookies.isEmptycxx . . $ QList#isEmpty(3482b152b9333168).()) {
160 qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->webcxx . . $ Application#web(ad68e16c93841931).()->cookieJarcxx . . $ WebFactory#cookieJar(8223048f1f68e9c6).()->setCookiesFromUrlcxx . . $ CookieJar#setCookiesFromUrl(edbaab54636e45b1).(cookies, sanitized_urlcxx . . $ QUrl#QUrl(ea1f3831e370f1cb).);
161 }
162
163 QNetworkRequestcxx . . $ QNetworkRequest# requestcxx . . $ QNetworkRequest#QNetworkRequest(49f6e7a06ebc5aa8).;
164 QHashIteratorcxx . . $ QHashIterator#<QByteArraycxx . . $ QByteArray#, QByteArraycxx . . $ QByteArray#> icxx . . $ QHashIterator#QHashIterator(b49801d1bb7ffe09).(m_customHeaderscxx . . $ Downloader#m_customHeaders.);
165
166 while (i.hasNextcxx . . $ QHashIterator#hasNext(50ce9a9e25b4a850).()) {
167 i.nextcxx . . $ QHashIterator#next(502dc262f89e6c2c).();
168 request.setRawHeadercxx . . $ QNetworkRequest#setRawHeader(a34492a60dbd2bdc).(i.keycxx . . $ QHashIterator#key(ea465e50d690edfe).(), i.valuecxx . . $ QHashIterator#value(bdbd05d619d62250).());
169 }
170
171 m_inputDatacxx . . $ Downloader#m_inputData. =cxx . . $ QByteArray#`operator=`(acee8257ca81216f). data;
172 m_inputMultipartDatacxx . . $ Downloader#m_inputMultipartData. = multipart_data;
173
174 // Set url for this request and fire it up.
175 m_timercxx . . $ Downloader#m_timer.->setIntervalcxx . . $ QTimer#setInterval(d4f767463ce0a6b3).(timeout);
176
177 request.setUrlcxx . . $ QNetworkRequest#setUrl(37355d2f77053a23).(qAppcxx . . $ `src/librssguard/miscellaneous/application.h:30:9`!->webcxx . . $ Application#web(ad68e16c93841931).()->processFeedUriSchemecxx . . $ WebFactory#processFeedUriScheme(fd988a2ab94d906b).(sanitized_url));
178
179 m_targetProtectedcxx . . $ Downloader#m_targetProtected. = protected_contents;
180 m_targetUsernamecxx . . $ Downloader#m_targetUsername. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). username;
181 m_targetPasswordcxx . . $ Downloader#m_targetPassword. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). password;
182
183 if (operation == QNetworkAccessManagercxx . . $ QNetworkAccessManager#::Operationcxx . . $ QNetworkAccessManager#Operation#::PostOperationcxx . . $ QNetworkAccessManager#PostOperation.) {
184 if (m_inputMultipartDatacxx . . $ Downloader#m_inputMultipartData. == nullptr) {
185 runPostRequestcxx . . $ Downloader#runPostRequest(e6545d3c3e42c11e).(request, m_inputDatacxx . . $ Downloader#m_inputData.);
186 }
187 else {
188 runPostRequestcxx . . $ Downloader#runPostRequest(889baa9f86cc5a45).(request, m_inputMultipartDatacxx . . $ Downloader#m_inputMultipartData.);
189 }
190 }
191 else if (operation == QNetworkAccessManagercxx . . $ QNetworkAccessManager#::GetOperationcxx . . $ QNetworkAccessManager#GetOperation.) {
192 runGetRequestcxx . . $ Downloader#runGetRequest(95fe34facd437029).(request);
193 }
194 else if (operation == QNetworkAccessManagercxx . . $ QNetworkAccessManager#::PutOperationcxx . . $ QNetworkAccessManager#PutOperation.) {
195 runPutRequestcxx . . $ Downloader#runPutRequest(e6545d3c3e42c11e).(request, m_inputDatacxx . . $ Downloader#m_inputData.);
196 }
197 else if (operation == QNetworkAccessManagercxx . . $ QNetworkAccessManager#::DeleteOperationcxx . . $ QNetworkAccessManager#DeleteOperation.) {
198 runDeleteRequestcxx . . $ Downloader#runDeleteRequest(95fe34facd437029).(request);
199 }
200 }
201 }
202
203 static int numberOfRedirectionscxx . . $ numberOfRedirections(45d6c712d1e830ab).(QNetworkReplycxx . . $ QNetworkReply#* reply) {
204 return reply->propertycxx . . $ QObject#property(950ff6813be46b58).("redirections_count").toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).();
205 }
206
207 static int setNumberOfRedirectionscxx . . $ setNumberOfRedirections(18ccadbd7db8bec0).(QNetworkReplycxx . . $ QNetworkReply#* reply, int number) {
208 return reply->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("redirections_count", numbercxx . . $ QVariant#QVariant(f349c77f591a7878).);
209 }
210
211 void Downloadercxx . . $ Downloader#::finishedcxx . . $ Downloader#finished(49f6e7a06ebc5aa8).() {
212 auto* reply = qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<QNetworkReplycxx . . $ QNetworkReply#*>(sendercxx . . $ QObject#sender(2dbb680a34285c44).());
213
214 QNetworkAccessManagercxx . . $ QNetworkAccessManager#::Operationcxx . . $ QNetworkAccessManager#Operation# reply_operation = reply->operationcxx . . $ QNetworkReply#operation(c7eed15b366d07a3).();
215
216 m_timercxx . . $ Downloader#m_timer.->stopcxx . . $ QTimer#stop(49f6e7a06ebc5aa8).();
217
218 QUrlcxx . . $ QUrl# original_url = reply->propertycxx . . $ QObject#property(950ff6813be46b58).("original_url").toUrlcxx . . $ QVariant#toUrl(36d9834fe7321282).();
219
220 if (!original_url.isValidcxx . . $ QUrl#isValid(50ce9a9e25b4a850).()) {
221 original_url =cxx . . $ QUrl#`operator=`(590d023fc9cd4b2d). reply->requestcxx . . $ QNetworkReply#request(a37d074e0667ab33).().urlcxx . . $ QNetworkRequest#url(36d9834fe7321282).();
222 }
223
224 // In this phase, some part of downloading process is completed.
225 QUrlcxx . . $ QUrl# redirection_url = reply->attributecxx . . $ QNetworkReply#attribute(33e268790373bbcc).(QNetworkRequestcxx . . $ QNetworkRequest#::Attributecxx . . $ QNetworkRequest#Attribute#::RedirectionTargetAttributecxx . . $ QNetworkRequest#RedirectionTargetAttribute.).toUrlcxx . . $ QVariant#toUrl(36d9834fe7321282).();
226
227 if (redirection_url.isValidcxx . . $ QUrl#isValid(50ce9a9e25b4a850).()) {
228 auto redir_number = numberOfRedirectionscxx . . $ numberOfRedirections(45d6c712d1e830ab).(reply);
229
230 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_NETWORKcxx . . $ `src/librssguard/definitions/definitions.h:168:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "This network request was redirected" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACEcxx . . $ `src/librssguard/definitions/definitions.h:432:9`!(redir_number) <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "times.";
231
232 redir_number++;
233
234 if (redir_number > MAX_NUMBER_OF_REDIRECTIONScxx . . $ `src/librssguard/definitions/definitions.h:103:9`!) {
235 qDebugNNcxx . . $ `src/librssguard/definitions/definitions.h:413:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_NETWORKcxx . . $ `src/librssguard/definitions/definitions.h:168:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Aborting request due too many redirections.";
236
237 emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! completedcxx . . $ Downloader#completed(2e59411b5306353b).(redirection_url, QNetworkReplycxx . . $ QNetworkReply#::NetworkErrorcxx . . $ QNetworkReply#NetworkError#::TooManyRedirectsErrorcxx . . $ QNetworkReply#TooManyRedirectsError., 404, {cxx . . $ QByteArray#QByteArray(ced63f7c635d850d).});
238 return;
239 }
240
241 // Communication indicates that HTTP redirection is needed.
242 // Setup redirection URL and download again.
243 QNetworkRequestcxx . . $ QNetworkRequest# request = reply->requestcxx . . $ QNetworkReply#request(a37d074e0667ab33).();
244
245 qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_NETWORKcxx . . $ `src/librssguard/definitions/definitions.h:168:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Network layer indicates HTTP redirection is needed.";
246 qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_NETWORKcxx . . $ `src/librssguard/definitions/definitions.h:168:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Origin URL:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(request.url().toString());
247 qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_NETWORKcxx . . $ `src/librssguard/definitions/definitions.h:168:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Proposed redirection URL:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(redirection_url.toString());
248
249 redirection_url =cxx . . $ QUrl#`operator=`(590d023fc9cd4b2d). request.urlcxx . . $ QNetworkRequest#url(36d9834fe7321282).().resolvedcxx . . $ QUrl#resolved(12b57030d3a86ba7).(redirection_url);
250
251 qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_NETWORKcxx . . $ `src/librssguard/definitions/definitions.h:168:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Resolved redirection URL:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(redirection_url.toString());
252
253 request.setUrlcxx . . $ QNetworkRequest#setUrl(37355d2f77053a23).(redirection_url);
254
255 m_activeReplycxx . . $ Downloader#m_activeReply.->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
256 m_activeReplycxx . . $ Downloader#m_activeReply. = nullptr;
257
258 if (reply_operation == QNetworkAccessManagercxx . . $ QNetworkAccessManager#::GetOperationcxx . . $ QNetworkAccessManager#GetOperation.) {
259 runGetRequestcxx . . $ Downloader#runGetRequest(95fe34facd437029).(request);
260 }
261 else if (reply_operation == QNetworkAccessManagercxx . . $ QNetworkAccessManager#::PostOperationcxx . . $ QNetworkAccessManager#PostOperation.) {
262 if (m_inputMultipartDatacxx . . $ Downloader#m_inputMultipartData. == nullptr) {
263 runPostRequestcxx . . $ Downloader#runPostRequest(e6545d3c3e42c11e).(request, m_inputDatacxx . . $ Downloader#m_inputData.);
264 }
265 else {
266 runPostRequestcxx . . $ Downloader#runPostRequest(889baa9f86cc5a45).(request, m_inputMultipartDatacxx . . $ Downloader#m_inputMultipartData.);
267 }
268 }
269 else if (reply_operation == QNetworkAccessManagercxx . . $ QNetworkAccessManager#::PutOperationcxx . . $ QNetworkAccessManager#PutOperation.) {
270 runPutRequestcxx . . $ Downloader#runPutRequest(e6545d3c3e42c11e).(request, m_inputDatacxx . . $ Downloader#m_inputData.);
271 }
272 else if (reply_operation == QNetworkAccessManagercxx . . $ QNetworkAccessManager#::DeleteOperationcxx . . $ QNetworkAccessManager#DeleteOperation.) {
273 runDeleteRequestcxx . . $ Downloader#runDeleteRequest(95fe34facd437029).(request);
274 }
275
276 if (m_activeReplycxx . . $ Downloader#m_activeReply. != nullptr) {
277 m_activeReplycxx . . $ Downloader#m_activeReply.->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("original_url", original_urlcxx . . $ QVariant#QVariant(9a9d0cfaabb61200).);
278 setNumberOfRedirectionscxx . . $ setNumberOfRedirections(18ccadbd7db8bec0).(m_activeReplycxx . . $ Downloader#m_activeReply., redir_number);
279 }
280 }
281 else {
282 // No redirection is indicated. Final file is obtained in our "reply" object.
283 // Read the data into output buffer.
284 if (m_inputMultipartDatacxx . . $ Downloader#m_inputMultipartData. == nullptr) {
285 m_lastOutputDatacxx . . $ Downloader#m_lastOutputData. =cxx . . $ QByteArray#`operator=`(c3d647c78c52d790). reply->readAllcxx . . $ QIODevice#readAll(b3c286cec66e09f4).();
286 }
287 else {
288 m_lastOutputMultipartDatacxx . . $ Downloader#m_lastOutputMultipartData. =cxx . . $ QList#`operator=`(649d7ac8216ee099). decodeMultipartAnswercxx . . $ Downloader#decodeMultipartAnswer(44a69cdb09e5ba5c).(reply);
289 }
290
291 QVariantcxx . . $ QVariant# set_cookies_header = reply->headercxx . . $ QNetworkReply#header(e61ac600faea07c3).(QNetworkRequestcxx . . $ QNetworkRequest#::SetCookieHeadercxx . . $ QNetworkRequest#SetCookieHeader.);
292
293 if (set_cookies_header.isValidcxx . . $ QVariant#isValid(50ce9a9e25b4a850).()) {
294 QListcxx . . $ QList#<QNetworkCookiecxx . . $ QNetworkCookie#> cookies = set_cookies_header.valuecxx . . $ QVariant#value(7c9259c808893703).<QListcxx . . $ QList#<QNetworkCookiecxx . . $ QNetworkCookie#>>();
295
296 m_lastCookiescxx . . $ Downloader#m_lastCookies. =cxx . . $ QList#`operator=`(1997556a14a1264). cookies;
297 }
298 else {
299 m_lastCookiescxx . . $ Downloader#m_lastCookies. =cxx . . $ QList#`operator=`(f67483249d2fd4fc). {cxx . . $ std/initializer_list#initializer_list(ced63f7c635d850d).};
300 }
301
302 m_lastUrlcxx . . $ Downloader#m_lastUrl. =cxx . . $ QUrl#`operator=`(590d023fc9cd4b2d). reply->urlcxx . . $ QNetworkReply#url(36d9834fe7321282).();
303 m_lastContentTypecxx . . $ Downloader#m_lastContentType. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). reply->headercxx . . $ QNetworkReply#header(e61ac600faea07c3).(QNetworkRequestcxx . . $ QNetworkRequest#::KnownHeaderscxx . . $ QNetworkRequest#KnownHeaders#::ContentTypeHeadercxx . . $ QNetworkRequest#ContentTypeHeader.).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).();
304 m_lastOutputErrorcxx . . $ Downloader#m_lastOutputError. = reply->errorcxx . . $ QNetworkReply#error(c916dcceceba1ae7).();
305 m_lastHttpStatusCodecxx . . $ Downloader#m_lastHttpStatusCode. = reply->attributecxx . . $ QNetworkReply#attribute(33e268790373bbcc).(QNetworkRequestcxx . . $ QNetworkRequest#::Attributecxx . . $ QNetworkRequest#Attribute#::HttpStatusCodeAttributecxx . . $ QNetworkRequest#HttpStatusCodeAttribute.).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).();
306 m_lastHeaderscxx . . $ Downloader#m_lastHeaders..clearcxx . . $ QMap#clear(49f6e7a06ebc5aa8).();
307
308 for (const QNetworkReplycxx . . $ QNetworkReply#::RawHeaderPaircxx . . $ QNetworkReply#RawHeaderPair#& head : reply->rawHeaderPairscxx . . $ QNetworkReply#rawHeaderPairs(a60653c53a60adaf).()) {
309 m_lastHeaderscxx . . $ Downloader#m_lastHeaders..insertcxx . . $ QMap#insert(929a1ed410fe8423).(QStringcxx . . $ QString#::fromLocal8Bitcxx . . $ QString#fromLocal8Bit(4e15edac36d215be).(head.firstcxx . . $ std/pair#first.).toLowercxx . . $ QString#toLower(30b3b70527b1c61a).(), headcxx . . $ QString#QString(45672f3c6961a244)..secondcxx . . $ std/pair#second.);
310 }
311
312 // original_url = m_activeReply->property("original_url").toUrl();
313
314 if (m_activeReplycxx . . $ Downloader#m_activeReply. != nullptr) {
315 m_activeReplycxx . . $ Downloader#m_activeReply.->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
316 m_activeReplycxx . . $ Downloader#m_activeReply. = nullptr;
317 }
318
319 if (m_inputMultipartDatacxx . . $ Downloader#m_inputMultipartData. != nullptr) {
320 m_inputMultipartDatacxx . . $ Downloader#m_inputMultipartData.->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
321 }
322
323 emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! completedcxx . . $ Downloader#completed(2e59411b5306353b).(original_url, m_lastOutputErrorcxx . . $ Downloader#m_lastOutputError., m_lastHttpStatusCodecxx . . $ Downloader#m_lastHttpStatusCode., m_lastOutputDatacxx . . $ QByteArray#QByteArray(6bfe0b9ef323589d).);
324 }
325 }
326
327 void Downloadercxx . . $ Downloader#::progressInternalcxx . . $ Downloader#progressInternal(8be204668a5c1685).(qint64cxx . . $ qint64# bytes_received, qint64cxx . . $ qint64# bytes_total) {
328 if (m_timercxx . . $ Downloader#m_timer.->intervalcxx . . $ QTimer#interval(455f465bc33b4cdf).() > 0) {
329 m_timercxx . . $ Downloader#m_timer.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).();
330 }
331
332 emitcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:51:10`! progresscxx . . $ Downloader#progress(8be204668a5c1685).(bytes_received, bytes_total);
333 }
334
335 void Downloadercxx . . $ Downloader#::setCustomPropsToReplycxx . . $ Downloader#setCustomPropsToReply(a14709ced3df193c).(QNetworkReplycxx . . $ QNetworkReply#* reply) {
336 reply->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("protected", m_targetProtectedcxx . . $ QVariant#QVariant(9f0ba574c1c44ffc).);
337 reply->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("username", m_targetUsernamecxx . . $ QVariant#QVariant(132dd6869045752b).);
338 reply->setPropertycxx . . $ QObject#setProperty(b8a01cfdb0695ee1).("password", m_targetPasswordcxx . . $ QVariant#QVariant(132dd6869045752b).);
339 }
340
341 QListcxx . . $ QList#<HttpResponsecxx . . $ HttpResponse#> Downloadercxx . . $ Downloader#::decodeMultipartAnswercxx . . $ Downloader#decodeMultipartAnswer(44a69cdb09e5ba5c).(QNetworkReplycxx . . $ QNetworkReply#* reply) {
342 QByteArraycxx . . $ QByteArray# data = reply->readAllcxx . . $ QIODevice#readAll(b3c286cec66e09f4).();
343
344 if (data.isEmptycxx . . $ QByteArray#isEmpty(3482b152b9333168).()) {
345 return QListcxx . . $ QList#QList(ced63f7c635d850d).<HttpResponsecxx . . $ HttpResponse#>();
346 }
347
348 QStringcxx . . $ QString# content_type = reply->headercxx . . $ QNetworkReply#header(e61ac600faea07c3).(QNetworkRequestcxx . . $ QNetworkRequest#::KnownHeaderscxx . . $ QNetworkRequest#KnownHeaders#::ContentTypeHeadercxx . . $ QNetworkRequest#ContentTypeHeader.).toStringcxx . . $ QVariant#toString(6ef7b6c27b00b43d).();
349 QStringcxx . . $ QString# boundary = content_type.midcxx . . $ QString#mid(5eea715ff28b9227).(content_type.indexOfcxx . . $ QString#indexOf(94463741b6f3a2b0).(QL1Scxx . . $ `src/librssguard/definitions/definitions.h:449:9`!("boundary=")) + 9);
350
351 QRegularExpressioncxx . . $ QRegularExpression# regexcxx . . $ QRegularExpression#QRegularExpression(4279d2539df7cd4a).(QL1Scxx . . $ `src/librssguard/definitions/definitions.h:449:9`!("--") + boundary + QL1Scxx . . $ `src/librssguard/definitions/definitions.h:449:9`!("(--)?(\\r\\n)?"));
352
353 QStringListcxx . . $ QStringList# list = QStringcxx . . $ QString#::fromUtf8cxx . . $ QString#fromUtf8(4e15edac36d215be).(data).splitcxx . . $ QString#split(d713a04f35be4f8b).(regex,
354 #if QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x050F00 // Qt >= 5.15.0
355 Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::SplitBehaviorFlagscxx . . $ Qt/SplitBehaviorFlags#::SkipEmptyPartscxx . . $ Qt/SkipEmptyParts.);
356 #else
357 QString::SplitBehavior::SkipEmptyParts);
358 #endif
359
360 QListcxx . . $ QList#<HttpResponsecxx . . $ HttpResponse#> partscxx . . $ QList#QList(ced63f7c635d850d).;
361
362 parts.reservecxx . . $ QList#reserve(35cb52607f6af42f).(list.sizecxx . . $ QList#size(6b0412d51016192f).());
363
364 for (const QStringcxx . . $ QString#& http_response_str : list) {
365 // We separate headers and body.
366 HttpResponsecxx . . $ HttpResponse# new_partcxx . . $ HttpResponse#HttpResponse(49f6e7a06ebc5aa8).;
367
368 static QRegularExpressioncxx . . $ QRegularExpression# reg_headerscxx . . $ QRegularExpression#QRegularExpression(4279d2539df7cd4a).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("\\r\\r?\\n"));
369 static QRegularExpressioncxx . . $ QRegularExpression# reg_bodycxx . . $ QRegularExpression#QRegularExpression(4279d2539df7cd4a).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("(\\r\\r?\\n){2,}"));
370 static QRegularExpressioncxx . . $ QRegularExpression# reg_whitescxx . . $ QRegularExpression#QRegularExpression(4279d2539df7cd4a).(QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("[\\n\\r]+"));
371
372 int start_of_http = http_response_str.indexOfcxx . . $ QString#indexOf(94463741b6f3a2b0).(QL1Scxx . . $ `src/librssguard/definitions/definitions.h:449:9`!("HTTP/1.1"));
373 int start_of_headers = http_response_str.indexOfcxx . . $ QString#indexOf(88c280e78c1a6aa7).(reg_headers, start_of_http);
374 int start_of_body = http_response_str.indexOfcxx . . $ QString#indexOf(88c280e78c1a6aa7).(reg_body, start_of_headers + 2);
375
376 QStringcxx . . $ QString# body = http_response_str.midcxx . . $ QString#mid(5eea715ff28b9227).(start_of_body);
377 QStringcxx . . $ QString# headers =
378 http_response_strcxx . . $ QString#QString(132dd6869045752b)..midcxx . . $ QString#mid(5eea715ff28b9227).(start_of_headers, start_of_body - start_of_headers).replacecxx . . $ QString#replace(bb08417d5c5b4bb6).(reg_whites, QSLcxx . . $ `src/librssguard/definitions/definitions.h:442:9`!("\n"));
379
380 auto header_lines = headers.splitcxx . . $ QString#split(4e27fcb098d1f780).(QL1Ccxx . . $ `src/librssguard/definitions/definitions.h:455:9`!('\n'),
381 #if QT_VERSIONcxx . . $ `<external>/3898848398875472725/qtversionchecks.h:17:9`! >= 0x050F00 // Qt >= 5.15.0
382 Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::SplitBehaviorFlagscxx . . $ Qt/SplitBehaviorFlags#::SkipEmptyPartscxx . . $ Qt/SkipEmptyParts.);
383 #else
384 QString::SplitBehavior::SkipEmptyParts);
385 #endif
386
387 for (const QStringcxx . . $ QString#& header_line : stdcxx . . $ std/::as_constcxx . . $ std/as_const(1dc117cbefefc300).(header_lines)) {
388 int index_colon = header_line.indexOfcxx . . $ QString#indexOf(7f9dda0319baab1e).(QL1Ccxx . . $ `src/librssguard/definitions/definitions.h:455:9`!(':'));
389
390 if (index_colon > 0) {
391 new_part.appendHeadercxx . . $ HttpResponse#appendHeader(c1427772cd1877b0).(header_line.midcxx . . $ QString#mid(5eea715ff28b9227).(0, index_colon), header_line.midcxx . . $ QString#mid(5eea715ff28b9227).(index_colon + 2));
392 }
393 }
394
395 new_part.setBodycxx . . $ HttpResponse#setBody(3520e46b33348bf6).(body);
396 parts.appendcxx . . $ QList#append(200d2dc08238a4ed).(new_part);
397 }
398
399 return parts;
400 }
401
402 void Downloadercxx . . $ Downloader#::runDeleteRequestcxx . . $ Downloader#runDeleteRequest(95fe34facd437029).(const QNetworkRequestcxx . . $ QNetworkRequest#& request) {
403 m_timercxx . . $ Downloader#m_timer.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).();
404 m_activeReplycxx . . $ Downloader#m_activeReply. = m_downloadManagercxx . . $ Downloader#m_downloadManager.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).deleteResourcecxx . . $ QNetworkAccessManager#deleteResource(d12587da35e4fcd1).(request);
405 setCustomPropsToReplycxx . . $ Downloader#setCustomPropsToReply(a14709ced3df193c).(m_activeReplycxx . . $ Downloader#m_activeReply.);
406 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_activeReplycxx . . $ Downloader#m_activeReply., &QNetworkReplycxx . . $ QNetworkReply#::downloadProgresscxx . . $ QNetworkReply#downloadProgress(8be204668a5c1685)., this, &Downloadercxx . . $ Downloader#::progressInternalcxx . . $ Downloader#progressInternal(8be204668a5c1685).);
407 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_activeReplycxx . . $ Downloader#m_activeReply., &QNetworkReplycxx . . $ QNetworkReply#::finishedcxx . . $ QNetworkReply#finished(49f6e7a06ebc5aa8)., this, &Downloadercxx . . $ Downloader#::finishedcxx . . $ Downloader#finished(49f6e7a06ebc5aa8).);
408 }
409
410 void Downloadercxx . . $ Downloader#::runPutRequestcxx . . $ Downloader#runPutRequest(e6545d3c3e42c11e).(const QNetworkRequestcxx . . $ QNetworkRequest#& request, const QByteArraycxx . . $ QByteArray#& data) {
411 m_timercxx . . $ Downloader#m_timer.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).();
412 m_activeReplycxx . . $ Downloader#m_activeReply. = m_downloadManagercxx . . $ Downloader#m_downloadManager.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).putcxx . . $ QNetworkAccessManager#put(7ed39bc32e459c39).(request, data);
413 setCustomPropsToReplycxx . . $ Downloader#setCustomPropsToReply(a14709ced3df193c).(m_activeReplycxx . . $ Downloader#m_activeReply.);
414 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_activeReplycxx . . $ Downloader#m_activeReply., &QNetworkReplycxx . . $ QNetworkReply#::downloadProgresscxx . . $ QNetworkReply#downloadProgress(8be204668a5c1685)., this, &Downloadercxx . . $ Downloader#::progressInternalcxx . . $ Downloader#progressInternal(8be204668a5c1685).);
415 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_activeReplycxx . . $ Downloader#m_activeReply., &QNetworkReplycxx . . $ QNetworkReply#::finishedcxx . . $ QNetworkReply#finished(49f6e7a06ebc5aa8)., this, &Downloadercxx . . $ Downloader#::finishedcxx . . $ Downloader#finished(49f6e7a06ebc5aa8).);
416 }
417
418 void Downloadercxx . . $ Downloader#::runPostRequestcxx . . $ Downloader#runPostRequest(889baa9f86cc5a45).(const QNetworkRequestcxx . . $ QNetworkRequest#& request, QHttpMultiPartcxx . . $ QHttpMultiPart#* multipart_data) {
419 m_timercxx . . $ Downloader#m_timer.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).();
420 m_activeReplycxx . . $ Downloader#m_activeReply. = m_downloadManagercxx . . $ Downloader#m_downloadManager.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).postcxx . . $ QNetworkAccessManager#post(31e789c00be082b6).(request, multipart_data);
421 setCustomPropsToReplycxx . . $ Downloader#setCustomPropsToReply(a14709ced3df193c).(m_activeReplycxx . . $ Downloader#m_activeReply.);
422 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_activeReplycxx . . $ Downloader#m_activeReply., &QNetworkReplycxx . . $ QNetworkReply#::downloadProgresscxx . . $ QNetworkReply#downloadProgress(8be204668a5c1685)., this, &Downloadercxx . . $ Downloader#::progressInternalcxx . . $ Downloader#progressInternal(8be204668a5c1685).);
423 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_activeReplycxx . . $ Downloader#m_activeReply., &QNetworkReplycxx . . $ QNetworkReply#::finishedcxx . . $ QNetworkReply#finished(49f6e7a06ebc5aa8)., this, &Downloadercxx . . $ Downloader#::finishedcxx . . $ Downloader#finished(49f6e7a06ebc5aa8).);
424 }
425
426 void Downloadercxx . . $ Downloader#::runPostRequestcxx . . $ Downloader#runPostRequest(e6545d3c3e42c11e).(const QNetworkRequestcxx . . $ QNetworkRequest#& request, const QByteArraycxx . . $ QByteArray#& data) {
427 m_timercxx . . $ Downloader#m_timer.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).();
428 m_activeReplycxx . . $ Downloader#m_activeReply. = m_downloadManagercxx . . $ Downloader#m_downloadManager.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).postcxx . . $ QNetworkAccessManager#post(7ed39bc32e459c39).(request, data);
429 setCustomPropsToReplycxx . . $ Downloader#setCustomPropsToReply(a14709ced3df193c).(m_activeReplycxx . . $ Downloader#m_activeReply.);
430 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_activeReplycxx . . $ Downloader#m_activeReply., &QNetworkReplycxx . . $ QNetworkReply#::downloadProgresscxx . . $ QNetworkReply#downloadProgress(8be204668a5c1685)., this, &Downloadercxx . . $ Downloader#::progressInternalcxx . . $ Downloader#progressInternal(8be204668a5c1685).);
431 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_activeReplycxx . . $ Downloader#m_activeReply., &QNetworkReplycxx . . $ QNetworkReply#::finishedcxx . . $ QNetworkReply#finished(49f6e7a06ebc5aa8)., this, &Downloadercxx . . $ Downloader#::finishedcxx . . $ Downloader#finished(49f6e7a06ebc5aa8).);
432 }
433
434 void Downloadercxx . . $ Downloader#::runGetRequestcxx . . $ Downloader#runGetRequest(95fe34facd437029).(const QNetworkRequestcxx . . $ QNetworkRequest#& request) {
435 m_timercxx . . $ Downloader#m_timer.->startcxx . . $ QTimer#start(49f6e7a06ebc5aa8).();
436 m_activeReplycxx . . $ Downloader#m_activeReply. = m_downloadManagercxx . . $ Downloader#m_downloadManager.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).getcxx . . $ QNetworkAccessManager#get(d12587da35e4fcd1).(request);
437 setCustomPropsToReplycxx . . $ Downloader#setCustomPropsToReply(a14709ced3df193c).(m_activeReplycxx . . $ Downloader#m_activeReply.);
438 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_activeReplycxx . . $ Downloader#m_activeReply., &QNetworkReplycxx . . $ QNetworkReply#::downloadProgresscxx . . $ QNetworkReply#downloadProgress(8be204668a5c1685)., this, &Downloadercxx . . $ Downloader#::progressInternalcxx . . $ Downloader#progressInternal(8be204668a5c1685).);
439 connectcxx . . $ QObject#connect(dad3a9587f3dce3c).(m_activeReplycxx . . $ Downloader#m_activeReply., &QNetworkReplycxx . . $ QNetworkReply#::finishedcxx . . $ QNetworkReply#finished(49f6e7a06ebc5aa8)., this, &Downloadercxx . . $ Downloader#::finishedcxx . . $ Downloader#finished(49f6e7a06ebc5aa8).);
440 }
441
442 QUrlcxx . . $ QUrl# Downloadercxx . . $ Downloader#::lastUrlcxx . . $ Downloader#lastUrl(36d9834fe7321282).() const {
443 return m_lastUrlcxx . . $ QUrl#QUrl(9a9d0cfaabb61200).;
444 }
445
446 void Downloadercxx . . $ Downloader#::setHttp2Statuscxx . . $ Downloader#setHttp2Status(b6895be502365f2f).(NetworkFactorycxx . . $ NetworkFactory#::Http2Statuscxx . . $ NetworkFactory#Http2Status# status) {
447 m_downloadManagercxx . . $ Downloader#m_downloadManager.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setSpecificHtpp2Statuscxx . . $ BaseNetworkAccessManager#setSpecificHtpp2Status(b6895be502365f2f).(status);
448 }
449
450 QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QStringcxx . . $ QString#> Downloadercxx . . $ Downloader#::lastHeaderscxx . . $ Downloader#lastHeaders(d2c84686db60f716).() const {
451 return m_lastHeaderscxx . . $ Downloader#m_lastHeaders.;
452 }
453
454 int Downloadercxx . . $ Downloader#::lastHttpStatusCodecxx . . $ Downloader#lastHttpStatusCode(455f465bc33b4cdf).() const {
455 return m_lastHttpStatusCodecxx . . $ Downloader#m_lastHttpStatusCode.;
456 }
457
458 QListcxx . . $ QList#<QNetworkCookiecxx . . $ QNetworkCookie#> Downloadercxx . . $ Downloader#::lastCookiescxx . . $ Downloader#lastCookies(d667f74267dd00c).() const {
459 return m_lastCookiescxx . . $ Downloader#m_lastCookies.;
460 }
461
462 QStringcxx . . $ QString# Downloadercxx . . $ Downloader#::lastContentTypecxx . . $ Downloader#lastContentType(6ef7b6c27b00b43d).() const {
463 return m_lastContentTypecxx . . $ QString#QString(132dd6869045752b).;
464 }
465
466 void Downloadercxx . . $ Downloader#::setProxycxx . . $ Downloader#setProxy(efbe238af4b4e748).(const QNetworkProxycxx . . $ QNetworkProxy#& proxy) {
467 qWarningNNcxx . . $ `src/librssguard/definitions/definitions.h:417:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). LOGSEC_NETWORKcxx . . $ `src/librssguard/definitions/definitions.h:168:9`! <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). "Setting specific downloader proxy, address:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_COMMAcxx . . $ `src/librssguard/definitions/definitions.h:431:9`!(proxy.hostName())
468 <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). " type:" <<cxx . . $ QDebug#`operator<<`(d8a917b173851aad). QUOTE_W_SPACE_DOTcxx . . $ `src/librssguard/definitions/definitions.h:430:9`!(proxy.type());
469
470 m_downloadManagercxx . . $ Downloader#m_downloadManager.->cxx . . $ QScopedPointer#`operator->`(34d6acfd341ba7ab).setProxycxx . . $ QNetworkAccessManager#setProxy(efbe238af4b4e748).(proxy);
471 }
472
473 void Downloadercxx . . $ Downloader#::cancelcxx . . $ Downloader#cancel(49f6e7a06ebc5aa8).() {
474 if (m_activeReplycxx . . $ Downloader#m_activeReply. != nullptr) {
475 // Download action timed-out, too slow connection or target is not reachable.
476 m_activeReplycxx . . $ Downloader#m_activeReply.->abortcxx . . $ QNetworkReply#abort(49f6e7a06ebc5aa8).();
477 }
478 else {
479 m_geminiClientcxx . . $ Downloader#m_geminiClient.->cancelRequestcxx . . $ GeminiClient#cancelRequest(c9857a73d68e59ba).();
480 }
481 }
482
483 void Downloadercxx . . $ Downloader#::appendRawHeaderscxx . . $ Downloader#appendRawHeaders(7b5e3954c99f4a55).(const QListcxx . . $ QList#<QPaircxx . . $ QPair#<QByteArraycxx . . $ QByteArray#, QByteArraycxx . . $ QByteArray#>>& headers) {
484 for (const QPaircxx . . $ QPair#<QByteArraycxx . . $ QByteArray#, QByteArraycxx . . $ QByteArray#>& header : headers) {
485 appendRawHeadercxx . . $ Downloader#appendRawHeader(a34492a60dbd2bdc).(header.firstcxx . . $ std/pair#first., header.secondcxx . . $ std/pair#second.);
486 }
487 }
488
489 void Downloadercxx . . $ Downloader#::appendRawHeadercxx . . $ Downloader#appendRawHeader(a34492a60dbd2bdc).(const QByteArraycxx . . $ QByteArray#& name, const QByteArraycxx . . $ QByteArray#& value) {
490 if (!value.isEmptycxx . . $ QByteArray#isEmpty(3482b152b9333168).()) {
491 m_customHeaderscxx . . $ Downloader#m_customHeaders..insertcxx . . $ QHash#insert(d77b19c31d2eb147).(name, value);
492 }
493 }
494
495 QNetworkReplycxx . . $ QNetworkReply#::NetworkErrorcxx . . $ QNetworkReply#NetworkError# Downloadercxx . . $ Downloader#::lastOutputErrorcxx . . $ Downloader#lastOutputError(c916dcceceba1ae7).() const {
496 return m_lastOutputErrorcxx . . $ Downloader#m_lastOutputError.;
497 }
498
499 QListcxx . . $ QList#<HttpResponsecxx . . $ HttpResponse#> Downloadercxx . . $ Downloader#::lastOutputMultipartDatacxx . . $ Downloader#lastOutputMultipartData(30a835898c73e47).() const {
500 return m_lastOutputMultipartDatacxx . . $ Downloader#m_lastOutputMultipartData.;
501 }
502
503 QByteArraycxx . . $ QByteArray# Downloadercxx . . $ Downloader#::lastOutputDatacxx . . $ Downloader#lastOutputData(a96750bfbcb1fbe9).() const {
504 return m_lastOutputDatacxx . . $ QByteArray#QByteArray(6bfe0b9ef323589d).;
505 }