2 * Copyright 2011, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 #ifndef _PACKAGE__PACKAGE_INFO_CONTENT_HANDLER_H_
6 #define _PACKAGE__PACKAGE_INFO_CONTENT_HANDLER_H_
9 #include <package/hpkg/PackageContentHandler.h>
12 namespace BPackageKit
{
23 class BPackageInfoContentHandler
: public BHPKG::BPackageContentHandler
{
25 BPackageInfoContentHandler(
26 BPackageInfo
& packageInfo
,
27 BHPKG::BErrorOutput
* errorOutput
= NULL
);
28 virtual ~BPackageInfoContentHandler();
30 virtual status_t
HandleEntry(BHPKG::BPackageEntry
* entry
);
31 virtual status_t
HandleEntryAttribute(
32 BHPKG::BPackageEntry
* entry
,
33 BHPKG::BPackageEntryAttribute
* attribute
);
34 virtual status_t
HandleEntryDone(BHPKG::BPackageEntry
* entry
);
36 virtual status_t
HandlePackageAttribute(
37 const BHPKG::BPackageInfoAttributeValue
&
40 virtual void HandleErrorOccurred();
43 BPackageInfo
& fPackageInfo
;
44 BHPKG::BErrorOutput
* fErrorOutput
;
48 } // namespace BPackageKit
51 #endif // _PACKAGE__PACKAGE_INFO_CONTENT_HANDLER_H_