1/*
2 * Copyright 2013 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Adrien Destugues, pulkomandy@pulkomandy.tk
7 */
8
9
10#ifndef _B_DATA_REQUEST_H_
11#define _B_DATA_REQUEST_H_
12
13
14#include <UrlProtocolRoster.h>
15#include <UrlRequest.h>
16
17
18namespace BPrivate {
19
20namespace Network {
21
22
23class BDataRequest: public BUrlRequest {
24public:
25		const BUrlResult&	Result() const;
26private:
27		friend class BUrlProtocolRoster;
28
29							BDataRequest(const BUrl& url,
30								BDataIO* output,
31								BUrlProtocolListener* listener = NULL,
32								BUrlContext* context = NULL);
33
34		status_t			_ProtocolLoop();
35private:
36		BUrlResult			fResult;
37};
38
39
40} // namespace Network
41
42} // namespace BPrivate
43
44
45#endif
46