2009-11-13 16:45:49 +03:00
|
|
|
/*
|
2011-01-30 18:15:33 +03:00
|
|
|
* Copyright 2009,2011, Haiku, Inc.
|
2009-11-13 16:45:49 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2011-01-30 18:05:38 +03:00
|
|
|
#ifndef _PACKAGE__HPKG__PACKAGE_ENTRY_ATTRIBUTE_H_
|
|
|
|
#define _PACKAGE__HPKG__PACKAGE_ENTRY_ATTRIBUTE_H_
|
2009-11-13 16:45:49 +03:00
|
|
|
|
|
|
|
|
2011-01-28 02:17:03 +03:00
|
|
|
#include <package/hpkg/PackageData.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
|
2011-01-30 18:05:38 +03:00
|
|
|
namespace BHPKG {
|
2011-01-28 02:17:03 +03:00
|
|
|
|
2009-11-13 16:45:49 +03:00
|
|
|
|
2011-01-30 18:05:38 +03:00
|
|
|
class BPackageEntryAttribute {
|
2009-11-13 16:45:49 +03:00
|
|
|
public:
|
2011-01-30 18:05:38 +03:00
|
|
|
BPackageEntryAttribute(const char* name);
|
2009-11-13 16:45:49 +03:00
|
|
|
|
|
|
|
const char* Name() const { return fName; }
|
|
|
|
uint32 Type() const { return fType; }
|
|
|
|
|
2011-01-30 18:05:38 +03:00
|
|
|
BPackageData& Data() { return fData; }
|
2009-11-13 16:45:49 +03:00
|
|
|
|
|
|
|
void SetType(uint32 type) { fType = type; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
const char* fName;
|
|
|
|
uint32 fType;
|
2011-01-30 18:05:38 +03:00
|
|
|
BPackageData fData;
|
2009-11-13 16:45:49 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2011-01-30 18:05:38 +03:00
|
|
|
} // namespace BHPKG
|
2011-01-28 02:17:03 +03:00
|
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
|
|
|
2011-01-30 18:05:38 +03:00
|
|
|
#endif // _PACKAGE__HPKG__PACKAGE_ENTRY_ATTRIBUTE_H_
|