More tests for Remote class
[irwi] / ut / stubs / qnetworkreply.cpp
1 #include <QDebug>
2 #include "qnetworkreply.h"
3
4 QBuffer QNetworkReply::data;
5
6 QNetworkReply::QNetworkReply()
7 {
8     data.open(QIODevice::ReadOnly);
9 }
10
11 QNetworkReply::~QNetworkReply()
12 {
13     close();
14 }
15
16 QByteArray QNetworkReply::readAll()
17 {
18     return data.data();
19 }
20
21 int QNetworkReply::error() const
22 {
23     return 0;
24 }
25
26 void QNetworkReply::close()
27 {
28     data.close();
29 }
30
31 void QNetworkReply::deleteLater()
32 {
33 }
34
35 QByteArray QNetworkReply::readLine(qint64 maxlen)
36 {
37     return data.readLine(maxlen);
38 }
39