1/*
2 * Copyright 2011, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _PACKAGE__HPKG__REPOSITORY_READER_H_
6#define _PACKAGE__HPKG__REPOSITORY_READER_H_
7
8
9#include <SupportDefs.h>
10
11
12namespace BPackageKit {
13
14namespace BHPKG {
15
16
17namespace BPrivate {
18	class RepositoryReaderImpl;
19}
20using BPrivate::RepositoryReaderImpl;
21
22
23class BErrorOutput;
24class BRepositoryContentHandler;
25
26
27class BRepositoryReader {
28public:
29								BRepositoryReader(BErrorOutput* errorOutput);
30								~BRepositoryReader();
31
32			status_t			Init(const char* fileName);
33			status_t			ParseContent(
34									BRepositoryContentHandler* contentHandler);
35
36private:
37			RepositoryReaderImpl*	fImpl;
38};
39
40
41}	// namespace BHPKG
42
43}	// namespace BPackageKit
44
45
46#endif	// _PACKAGE__HPKG__REPOSITORY_READER_H_
47