* add listing of repository attributes to 'package_repo list'
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40508 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -8,27 +8,22 @@
|
||||
|
||||
#include <SupportDefs.h>
|
||||
|
||||
#include <package/hpkg/PackageContentHandler.h>
|
||||
|
||||
|
||||
namespace BPackageKit {
|
||||
|
||||
|
||||
class BPackageInfo;
|
||||
class BRepositoryInfo;
|
||||
|
||||
|
||||
namespace BHPKG {
|
||||
|
||||
|
||||
class BRepositoryContentHandler {
|
||||
class BRepositoryContentHandler : public BPackageContentHandler {
|
||||
public:
|
||||
virtual ~BRepositoryContentHandler();
|
||||
|
||||
virtual status_t HandleRepositoryInfo(
|
||||
const BRepositoryInfo& info) = 0;
|
||||
virtual status_t HandlePackage(const BPackageInfo& info) = 0;
|
||||
virtual status_t HandlePackagesDone() = 0;
|
||||
|
||||
virtual void HandleErrorOccurred() = 0;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace BPrivate {
|
||||
using BPrivate::RepositoryReaderImpl;
|
||||
|
||||
class BErrorOutput;
|
||||
class BPackageContentHandler;
|
||||
class BRepositoryContentHandler;
|
||||
|
||||
|
||||
class BRepositoryReader {
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
|
||||
status_t Init(const char* fileName);
|
||||
status_t ParseContent(
|
||||
BPackageContentHandler* contentHandler);
|
||||
BRepositoryContentHandler* contentHandler);
|
||||
|
||||
private:
|
||||
RepositoryReaderImpl* fImpl;
|
||||
|
||||
@@ -16,6 +16,9 @@ namespace BPackageKit {
|
||||
namespace BHPKG {
|
||||
|
||||
|
||||
class BRepositoryContentHandler;
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
|
||||
@@ -33,7 +36,7 @@ public:
|
||||
BRepositoryInfo* _repositoryInfo) const;
|
||||
|
||||
status_t ParseContent(
|
||||
BPackageContentHandler* contentHandler);
|
||||
BRepositoryContentHandler* contentHandler);
|
||||
|
||||
private:
|
||||
struct RootAttributeHandler;
|
||||
|
||||
Reference in New Issue
Block a user