1 /* 2 * Copyright 2010-2017 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _B_URL_RESULT_H_ 6 #define _B_URL_RESULT_H_ 7 8 9 #include <Archivable.h> 10 #include <String.h> 11 12 13 #ifndef LIBNETAPI_DEPRECATED 14 namespace BPrivate { 15 16 namespace Network { 17 #endif 18 19 class BUrlResult: public BArchivable { 20 public: 21 BUrlResult(); 22 BUrlResult(BMessage*); 23 virtual ~BUrlResult(); 24 25 virtual status_t Archive(BMessage*, bool) const; 26 27 void SetContentType(BString contentType); 28 void SetLength(size_t length); 29 30 virtual BString ContentType() const; 31 virtual size_t Length() const; 32 33 static BArchivable* Instantiate(BMessage*); 34 35 private: 36 BString fContentType; 37 size_t fLength; 38 }; 39 40 #ifndef LIBNETAPI_DEPRECATED 41 } // namespace Network 42 43 } // namespace BPrivate 44 #endif 45 46 #endif 47