2009-11-13 16:45:49 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef PACKAGE_ENTRY_ATTRIBUTE_H
|
|
|
|
#define PACKAGE_ENTRY_ATTRIBUTE_H
|
|
|
|
|
|
|
|
|
2011-01-28 02:17:03 +03:00
|
|
|
#include <package/hpkg/PackageData.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
|
|
|
|
namespace BHaikuPackage {
|
|
|
|
|
|
|
|
namespace BPrivate {
|
2009-11-13 16:45:49 +03:00
|
|
|
|
|
|
|
|
|
|
|
class PackageEntryAttribute {
|
|
|
|
public:
|
|
|
|
PackageEntryAttribute(const char* name);
|
|
|
|
|
|
|
|
const char* Name() const { return fName; }
|
|
|
|
uint32 Type() const { return fType; }
|
|
|
|
|
|
|
|
PackageData& Data() { return fData; }
|
|
|
|
|
|
|
|
void SetType(uint32 type) { fType = type; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
const char* fName;
|
|
|
|
uint32 fType;
|
|
|
|
PackageData fData;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2011-01-28 02:17:03 +03:00
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
|
|
} // namespace BHaikuPackage
|
|
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
|
|
|
2009-11-13 16:45:49 +03:00
|
|
|
#endif // PACKAGE_ENTRY_ATTRIBUTE_H
|