2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Henri Lampela - henri.lampela@ixonos.com
6 Jussi Laitinen - jussi.laitinen@ixonos.com
8 Situare is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 Situare is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Situare; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
23 #ifndef NETWORKREPLYMOCK_H
24 #define NETWORKREPLYMOCK_H
26 #include <QNetworkReply>
30 class NetworkReplyMock : public QNetworkReply
34 NetworkReplyMock(QObject *parent = 0);
36 qint64 bytesAvailable() const;
38 bool isSequential() const
42 void setError(NetworkError errorCode, const QString &errorString);
43 void setData(const QByteArray &content);
44 void setUrl(const QUrl &url);
49 qint64 readData(char *data, qint64 maxlen);
56 #endif // NETWORKREPLYMOCK_H