xref: /haiku/headers/private/netservices/DataRequest.h (revision 52c4471a3024d2eb81fe88e2c3982b9f8daa5e56)
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 
18 namespace BPrivate {
19 
20 namespace Network {
21 
22 
23 class BDataRequest: public BUrlRequest {
24 public:
25 		const BUrlResult&	Result() const;
26 private:
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();
35 private:
36 		BUrlResult			fResult;
37 };
38 
39 
40 } // namespace Network
41 
42 } // namespace BPrivate
43 
44 
45 #endif
46