1/*
2 * Copyright 2006, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Stephan A��mus <superstippi@gmx.de>
7 */
8
9#ifndef RDEF_EXPORTER_H
10#define RDEF_EXPORTER_H
11
12#include "FlatIconExporter.h"
13
14/*! Exports HVIF file data to an RDef file. */
15class RDefExporter : public FlatIconExporter {
16 public:
17								RDefExporter();
18	virtual						~RDefExporter();
19
20	// FlatIconExporter interface
21	virtual	status_t			Export(const Icon* icon,
22									   BPositionIO* stream);
23
24	virtual	const char*			MIMEType() { return "text/x-vnd.Be.ResourceDef"; }
25
26 private:
27			status_t			_Export(const uint8* source,
28										size_t sourceSize,
29										BPositionIO* stream) const;
30};
31
32#endif // RDEF_EXPORTER_H
33