1/*
2 * Copyright 2009,2011, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _PACKAGE__HPKG__PACKAGE_ENTRY_ATTRIBUTE_H_
6#define _PACKAGE__HPKG__PACKAGE_ENTRY_ATTRIBUTE_H_
7
8
9#include <package/hpkg/PackageData.h>
10
11
12namespace BPackageKit {
13
14namespace BHPKG {
15
16
17class BPackageEntryAttribute {
18public:
19								BPackageEntryAttribute(const char* name);
20
21			const char*			Name() const			{ return fName; }
22			uint32				Type() const			{ return fType; }
23
24			BPackageData&		Data()	{ return fData; }
25
26			void				SetType(uint32 type)	{ fType = type; }
27
28private:
29			const char*			fName;
30			uint32				fType;
31			BPackageData			fData;
32};
33
34
35}	// namespace BHPKG
36
37}	// namespace BPackageKit
38
39
40#endif	// _PACKAGE__HPKG__PACKAGE_ENTRY_ATTRIBUTE_H_
41