access/qnetworkreply.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4const int QNetworkReplyPrivate::progressSignalInterval = 100; -
5 -
6QNetworkReplyPrivate::QNetworkReplyPrivate() -
7 : readBufferMaxSize(0), -
8 operation(QNetworkAccessManager::UnknownOperation), -
9 errorCode(QNetworkReply::NoError) -
10 , isFinished(false) -
11{ -
12 -
13 attributes.insert(QNetworkRequest::ConnectionEncryptedAttribute, false); -
14}
executed: }
Execution Count:874
874
15QNetworkReply::QNetworkReply(QObject *parent) -
16 : QIODevice(*new QNetworkReplyPrivate, parent) -
17{ -
18}
never executed: }
0
19 -
20 -
21 -
22 -
23QNetworkReply::QNetworkReply(QNetworkReplyPrivate &dd, QObject *parent) -
24 : QIODevice(dd, parent) -
25{ -
26}
executed: }
Execution Count:874
874
27QNetworkReply::~QNetworkReply() -
28{ -
29} -
30void QNetworkReply::close() -
31{ -
32 QIODevice::close(); -
33}
executed: }
Execution Count:5
5
34 -
35 -
36 -
37 -
38bool QNetworkReply::isSequential() const -
39{ -
40 return true;
executed: return true;
Execution Count:93
93
41} -
42 -
43 -
44 -
45 -
46 -
47 -
48qint64 QNetworkReply::readBufferSize() const -
49{ -
50 return d_func()->readBufferMaxSize;
executed: return d_func()->readBufferMaxSize;
Execution Count:1170
1170
51} -
52void QNetworkReply::setReadBufferSize(qint64 size) -
53{ -
54 QNetworkReplyPrivate * const d = d_func(); -
55 d->readBufferMaxSize = size; -
56}
executed: }
Execution Count:11
11
57 -
58 -
59 -
60 -
61 -
62QNetworkAccessManager *QNetworkReply::manager() const -
63{ -
64 return d_func()->manager;
executed: return d_func()->manager;
Execution Count:1
1
65} -
66QNetworkRequest QNetworkReply::request() const -
67{ -
68 return d_func()->request;
executed: return d_func()->request;
Execution Count:1
1
69} -
70 -
71 -
72 -
73 -
74 -
75 -
76QNetworkAccessManager::Operation QNetworkReply::operation() const -
77{ -
78 return d_func()->operation;
executed: return d_func()->operation;
Execution Count:1
1
79} -
80 -
81 -
82 -
83 -
84 -
85 -
86 -
87QNetworkReply::NetworkError QNetworkReply::error() const -
88{ -
89 return d_func()->errorCode;
executed: return d_func()->errorCode;
Execution Count:1125
1125
90} -
91bool QNetworkReply::isFinished() const -
92{ -
93 return d_func()->isFinished;
executed: return d_func()->isFinished;
Execution Count:4264
4264
94} -
95bool QNetworkReply::isRunning() const -
96{ -
97 return !isFinished();
executed: return !isFinished();
Execution Count:16
16
98} -
99 -
100 -
101 -
102 -
103 -
104 -
105 -
106QUrl QNetworkReply::url() const -
107{ -
108 return d_func()->url;
executed: return d_func()->url;
Execution Count:394
394
109} -
110QVariant QNetworkReply::header(QNetworkRequest::KnownHeaders header) const -
111{ -
112 return d_func()->cookedHeaders.value(header);
executed: return d_func()->cookedHeaders.value(header);
Execution Count:322
322
113} -
114 -
115 -
116 -
117 -
118 -
119 -
120 -
121bool QNetworkReply::hasRawHeader(const QByteArray &headerName) const -
122{ -
123 const QNetworkReplyPrivate * const d = d_func(); -
124 return d->findRawHeader(headerName) != d->rawHeaders.constEnd();
never executed: return d->findRawHeader(headerName) != d->rawHeaders.constEnd();
0
125} -
126QByteArray QNetworkReply::rawHeader(const QByteArray &headerName) const -
127{ -
128 const QNetworkReplyPrivate * const d = d_func(); -
129 QNetworkHeadersPrivate::RawHeadersList::ConstIterator it = -
130 d->findRawHeader(headerName); -
131 if (it != d->rawHeaders.constEnd())
evaluated: it != d->rawHeaders.constEnd()
TRUEFALSE
yes
Evaluation Count:410
yes
Evaluation Count:4220
410-4220
132 return it->second;
executed: return it->second;
Execution Count:410
410
133 return QByteArray();
executed: return QByteArray();
Execution Count:4220
4220
134} -
135const QList<QNetworkReply::RawHeaderPair>& QNetworkReply::rawHeaderPairs() const -
136{ -
137 const QNetworkReplyPrivate * const d = d_func(); -
138 return d->rawHeaders;
never executed: return d->rawHeaders;
0
139} -
140 -
141 -
142 -
143 -
144 -
145 -
146QList<QByteArray> QNetworkReply::rawHeaderList() const -
147{ -
148 return d_func()->rawHeadersKeys();
executed: return d_func()->rawHeadersKeys();
Execution Count:115
115
149} -
150QVariant QNetworkReply::attribute(QNetworkRequest::Attribute code) const -
151{ -
152 return d_func()->attributes.value(code);
executed: return d_func()->attributes.value(code);
Execution Count:511
511
153} -
154QSslConfiguration QNetworkReply::sslConfiguration() const -
155{ -
156 QSslConfiguration config; -
157 sslConfigurationImplementation(config); -
158 return config;
executed: return config;
Execution Count:21
21
159} -
160 -
161 -
162 -
163 -
164 -
165void QNetworkReply::setSslConfiguration(const QSslConfiguration &config) -
166{ -
167 setSslConfigurationImplementation(config); -
168}
executed: }
Execution Count:89
89
169void QNetworkReply::ignoreSslErrors(const QList<QSslError> &errors) -
170{ -
171 ignoreSslErrorsImplementation(errors); -
172}
executed: }
Execution Count:10
10
173void QNetworkReply::sslConfigurationImplementation(QSslConfiguration &) const -
174{ -
175} -
176void QNetworkReply::setSslConfigurationImplementation(const QSslConfiguration &) -
177{ -
178} -
179void QNetworkReply::ignoreSslErrorsImplementation(const QList<QSslError> &) -
180{ -
181} -
182void QNetworkReply::ignoreSslErrors() -
183{ -
184} -
185 -
186 -
187 -
188 -
189qint64 QNetworkReply::writeData(const char *, qint64) -
190{ -
191 return -1;
never executed: return -1;
0
192} -
193void QNetworkReply::setOperation(QNetworkAccessManager::Operation operation) -
194{ -
195 QNetworkReplyPrivate * const d = d_func(); -
196 d->operation = operation; -
197}
executed: }
Execution Count:59
59
198void QNetworkReply::setRequest(const QNetworkRequest &request) -
199{ -
200 QNetworkReplyPrivate * const d = d_func(); -
201 d->request = request; -
202}
executed: }
Execution Count:59
59
203void QNetworkReply::setError(NetworkError errorCode, const QString &errorString) -
204{ -
205 QNetworkReplyPrivate * const d = d_func(); -
206 d->errorCode = errorCode; -
207 setErrorString(errorString); -
208}
executed: }
Execution Count:7
7
209void QNetworkReply::setFinished(bool finished) -
210{ -
211 QNetworkReplyPrivate * const d = d_func(); -
212 d->isFinished = finished; -
213}
executed: }
Execution Count:934
934
214void QNetworkReply::setUrl(const QUrl &url) -
215{ -
216 QNetworkReplyPrivate * const d = d_func(); -
217 d->url = url; -
218}
executed: }
Execution Count:87
87
219 -
220 -
221 -
222 -
223 -
224 -
225 -
226void QNetworkReply::setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value) -
227{ -
228 QNetworkReplyPrivate * const d = d_func(); -
229 d->setCookedHeader(header, value); -
230}
executed: }
Execution Count:104
104
231void QNetworkReply::setRawHeader(const QByteArray &headerName, const QByteArray &value) -
232{ -
233 QNetworkReplyPrivate * const d = d_func(); -
234 d->setRawHeader(headerName, value); -
235}
executed: }
Execution Count:4216
4216
236void QNetworkReply::setAttribute(QNetworkRequest::Attribute code, const QVariant &value) -
237{ -
238 QNetworkReplyPrivate * const d = d_func(); -
239 if (value.isValid())
evaluated: value.isValid()
TRUEFALSE
yes
Evaluation Count:3029
yes
Evaluation Count:8
8-3029
240 d->attributes.insert(code, value);
executed: d->attributes.insert(code, value);
Execution Count:3029
3029
241 else -
242 d->attributes.remove(code);
executed: d->attributes.remove(code);
Execution Count:8
8
243} -
244 -
245 -
246 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial