equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NMVIEWERVIEWNETREPLY_H_ |
|
20 #define NMVIEWERVIEWNETREPLY_H_ |
|
21 |
|
22 #include <QNetworkReply> |
|
23 |
|
24 class NmViewerViewNetReply : public QNetworkReply |
|
25 { |
|
26 Q_OBJECT |
|
27 public: |
|
28 NmViewerViewNetReply(QVariant data); |
|
29 ~NmViewerViewNetReply(); |
|
30 void setOriginalRequest(const QNetworkRequest &request); |
|
31 qint64 readData(char *data, qint64 maxlen); |
|
32 qint64 readBufferSize () const; |
|
33 qint64 bytesAvailable () const; |
|
34 bool isSequential () const; |
|
35 void abort(); |
|
36 |
|
37 public slots: |
|
38 void signalReady(); |
|
39 |
|
40 private: |
|
41 QByteArray mDataArray; |
|
42 qint64 mReadIndex; |
|
43 }; |
|
44 |
|
45 #endif /* NMVIEWERVIEWNETREPLY_H_ */ |