xref: /haiku/headers/private/netservices/UrlResult.h (revision 70b63f18b32a7ae90e4ff49659ba3844ce4c9aa5)
1603e0bdfSNiels Sascha Reedijk /*
2603e0bdfSNiels Sascha Reedijk  * Copyright 2010-2017 Haiku Inc. All rights reserved.
3603e0bdfSNiels Sascha Reedijk  * Distributed under the terms of the MIT License.
4603e0bdfSNiels Sascha Reedijk  */
5603e0bdfSNiels Sascha Reedijk #ifndef _B_URL_RESULT_H_
6603e0bdfSNiels Sascha Reedijk #define _B_URL_RESULT_H_
7603e0bdfSNiels Sascha Reedijk 
8603e0bdfSNiels Sascha Reedijk 
9603e0bdfSNiels Sascha Reedijk #include <String.h>
10603e0bdfSNiels Sascha Reedijk 
11603e0bdfSNiels Sascha Reedijk 
123e27f8d5SLeorize namespace BPrivate {
13ce64ffdbSNiels Sascha Reedijk 
143e27f8d5SLeorize namespace Network {
153e27f8d5SLeorize 
16*70b63f18SNiels Sascha Reedijk 
173e27f8d5SLeorize class BUrlResult {
183e27f8d5SLeorize public:
193e27f8d5SLeorize 							BUrlResult();
203e27f8d5SLeorize 	virtual					~BUrlResult();
213e27f8d5SLeorize 
223e27f8d5SLeorize 			void			SetContentType(BString contentType);
233e27f8d5SLeorize 			void			SetLength(off_t length);
243e27f8d5SLeorize 
253e27f8d5SLeorize 	virtual	BString			ContentType() const;
263e27f8d5SLeorize 	virtual	off_t			Length() const;
273e27f8d5SLeorize 
283e27f8d5SLeorize private:
293e27f8d5SLeorize 			BString			fContentType;
303e27f8d5SLeorize 			off_t			fLength;
313e27f8d5SLeorize };
323e27f8d5SLeorize 
333e27f8d5SLeorize 
34*70b63f18SNiels Sascha Reedijk } // namespace Network
353e27f8d5SLeorize 
36*70b63f18SNiels Sascha Reedijk } // namespace BPrivate
373e27f8d5SLeorize 
383e27f8d5SLeorize #endif // _B_URL_RESULT_H_
39