92b072972b
Replace 'class' with 'struct', since they are already defined as 'struct' in PackageInfoAttributeValue.h Pointed by clang [-Wmismatched-tags] Change-Id: I094d32c3444fe4299a3afe0872ade296f92debf9 Reviewed-on: https://review.haiku-os.org/471 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
50 lines
941 B
C++
50 lines
941 B
C++
/*
|
|
* 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>
|
|
|
|
#include <package/hpkg/HPKGDefs.h>
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
|
|
class BRepositoryInfo;
|
|
|
|
|
|
namespace BHPKG {
|
|
|
|
|
|
struct BPackageInfoAttributeValue;
|
|
|
|
|
|
class BRepositoryContentHandler {
|
|
public:
|
|
virtual ~BRepositoryContentHandler();
|
|
|
|
virtual status_t HandleRepositoryInfo(
|
|
const BRepositoryInfo& info) = 0;
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
} // namespace BHPKG
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
#endif // _PACKAGE__HPKG__REPOSITORY_CONTENT_HANDLER_H_
|