Restore the "GPL licensing not permitted" in GLUT license headers.
[haiku.git] / headers / os / package / hpkg / RepositoryContentHandler.h
blob71e0b2db96e986b09fd454ad227732cde3956485
1 /*
2 * Copyright 2011, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
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;
20 namespace BHPKG {
23 class BPackageInfoAttributeValue;
26 class BRepositoryContentHandler {
27 public:
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)
36 = 0;
37 virtual status_t HandlePackageDone(const char* packageName) = 0;
39 virtual void HandleErrorOccurred() = 0;
44 } // namespace BHPKG
46 } // namespace BPackageKit
49 #endif // _PACKAGE__HPKG__REPOSITORY_CONTENT_HANDLER_H_