xref: /haiku/headers/private/netservices/DataRequest.h (revision acdafb571df692fab7ad89836e39590dd8d415e2)
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 #ifndef LIBNETAPI_DEPRECATED
19 namespace BPrivate {
20 
21 namespace Network {
22 #endif
23 
24 class BDataRequest: public BUrlRequest {
25 public:
26 		const BUrlResult&	Result() const;
27 private:
28 		friend class BUrlProtocolRoster;
29 
30 							BDataRequest(const BUrl& url,
31 								BUrlProtocolListener* listener = NULL,
32 								BUrlContext* context = NULL);
33 
34 		status_t			_ProtocolLoop();
35 private:
36 		BUrlResult			fResult;
37 };
38 
39 #ifndef LIBNETAPI_DEPRECATED
40 } // namespace Network
41 
42 } // namespace BPrivate
43 #endif
44 
45 #endif
46