UrlResult.h revision f9e1854f
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
13class BUrlResult: public BArchivable {
14public:
15							BUrlResult();
16							BUrlResult(BMessage*);
17	virtual					~BUrlResult();
18
19	virtual	status_t		Archive(BMessage*, bool) const;
20
21			void			SetContentType(BString contentType);
22			void			SetLength(size_t length);
23
24	virtual	BString			ContentType() const;
25	virtual size_t			Length() const;
26
27	static	BArchivable*	Instantiate(BMessage*);
28
29private:
30			BString			fContentType;
31			size_t			fLength;
32};
33
34#endif
35