2 * Copyright 2011, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 #ifndef _PACKAGE__HPKG__REPOSITORY_CONTENT_HANDLER_H_
6 #define _PACKAGE__HPKG__REPOSITORY_CONTENT_HANDLER_H_
9 #include <SupportDefs.h>
11 #include <package/hpkg/HPKGDefs.h>
14 namespace BPackageKit
{
17 class BRepositoryInfo
;
23 class BPackageInfoAttributeValue
;
26 class BRepositoryContentHandler
{
28 virtual ~BRepositoryContentHandler();
30 virtual status_t
HandleRepositoryInfo(
31 const BRepositoryInfo
& info
) = 0;
33 virtual status_t
HandlePackage(const char* packageName
) = 0;
34 virtual status_t
HandlePackageAttribute(
35 const BPackageInfoAttributeValue
& value
)
37 virtual status_t
HandlePackageDone(const char* packageName
) = 0;
39 virtual void HandleErrorOccurred() = 0;
46 } // namespace BPackageKit
49 #endif // _PACKAGE__HPKG__REPOSITORY_CONTENT_HANDLER_H_