2011-02-12 22:21:37 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2011, Haiku, Inc.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _PACKAGE__HPKG__REPOSITORY_CONTENT_HANDLER_H_
|
|
|
|
#define _PACKAGE__HPKG__REPOSITORY_CONTENT_HANDLER_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
2013-07-04 21:20:14 +04:00
|
|
|
#include <package/hpkg/HPKGDefs.h>
|
2011-02-15 15:48:02 +03:00
|
|
|
|
2011-02-12 22:21:37 +03:00
|
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
|
|
|
|
|
|
|
|
class BRepositoryInfo;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BHPKG {
|
|
|
|
|
|
|
|
|
2013-07-04 21:20:14 +04:00
|
|
|
class BPackageInfoAttributeValue;
|
|
|
|
|
|
|
|
|
|
|
|
class BRepositoryContentHandler {
|
2011-02-12 22:21:37 +03:00
|
|
|
public:
|
2013-07-04 21:20:14 +04:00
|
|
|
virtual ~BRepositoryContentHandler();
|
|
|
|
|
2011-02-12 22:21:37 +03:00
|
|
|
virtual status_t HandleRepositoryInfo(
|
|
|
|
const BRepositoryInfo& info) = 0;
|
2013-07-04 21:20:14 +04:00
|
|
|
|
|
|
|
virtual status_t HandlePackage(const char* packageName) = 0;
|
|
|
|
virtual status_t HandlePackageAttribute(
|
|
|
|
const BPackageInfoAttributeValue& value)
|
|
|
|
= 0;
|
|
|
|
virtual status_t HandlePackageDone(const char* packageName) = 0;
|
|
|
|
|
|
|
|
virtual void HandleErrorOccurred() = 0;
|
|
|
|
|
2011-02-12 22:21:37 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace BHPKG
|
|
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _PACKAGE__HPKG__REPOSITORY_CONTENT_HANDLER_H_
|