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_ 7 8 9 #include <SupportDefs.h> 10 11 12 namespace BPackageKit { 13 14 15 class BPackageInfo; 16 class BRepositoryInfo; 17 18 19 namespace BHPKG { 20 21 22 class BRepositoryContentHandler { 23 public: 24 virtual ~BRepositoryContentHandler(); 25 26 virtual status_t HandleRepositoryInfo( 27 const BRepositoryInfo& info) = 0; 28 virtual status_t HandlePackage(const BPackageInfo& info) = 0; 29 virtual status_t HandlePackagesDone() = 0; 30 31 virtual void HandleErrorOccurred() = 0; 32 }; 33 34 35 } // namespace BHPKG 36 37 } // namespace BPackageKit 38 39 40 #endif // _PACKAGE__HPKG__REPOSITORY_CONTENT_HANDLER_H_ 41