2011-02-12 22:21:37 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2011, Haiku, Inc.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _PACKAGE__HPKG__REPOSITORY_READER_H_
|
|
|
|
#define _PACKAGE__HPKG__REPOSITORY_READER_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
|
|
|
|
namespace BHPKG {
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
class RepositoryReaderImpl;
|
|
|
|
}
|
|
|
|
using BPrivate::RepositoryReaderImpl;
|
|
|
|
|
2013-05-18 06:11:01 +04:00
|
|
|
|
2011-02-12 22:21:37 +03:00
|
|
|
class BErrorOutput;
|
2011-02-15 15:48:02 +03:00
|
|
|
class BRepositoryContentHandler;
|
2011-02-12 22:21:37 +03:00
|
|
|
|
|
|
|
|
|
|
|
class BRepositoryReader {
|
|
|
|
public:
|
|
|
|
BRepositoryReader(BErrorOutput* errorOutput);
|
|
|
|
~BRepositoryReader();
|
|
|
|
|
|
|
|
status_t Init(const char* fileName);
|
|
|
|
status_t ParseContent(
|
2011-02-15 15:48:02 +03:00
|
|
|
BRepositoryContentHandler* contentHandler);
|
2011-02-12 22:21:37 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
RepositoryReaderImpl* fImpl;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace BHPKG
|
|
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _PACKAGE__HPKG__REPOSITORY_READER_H_
|