haiku/headers/private/package/hpkg/RepositoryReaderImpl.h
Oliver Tappe 2b6e6760b6 * 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
2011-02-15 12:48:02 +00:00

58 lines
1.1 KiB
C++

/*
* Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
* Distributed under the terms of the MIT License.
*/
#ifndef _PACKAGE__HPKG__PRIVATE__REPOSITORY_READER_IMPL_H_
#define _PACKAGE__HPKG__PRIVATE__REPOSITORY_READER_IMPL_H_
#include <package/hpkg/ReaderImplBase.h>
#include <package/RepositoryInfo.h>
namespace BPackageKit {
namespace BHPKG {
class BRepositoryContentHandler;
namespace BPrivate {
class RepositoryReaderImpl : public ReaderImplBase {
typedef ReaderImplBase inherited;
public:
RepositoryReaderImpl(
BErrorOutput* errorOutput);
~RepositoryReaderImpl();
status_t Init(const char* fileName);
status_t Init(int fd, bool keepFD);
status_t GetRepositoryInfo(
BRepositoryInfo* _repositoryInfo) const;
status_t ParseContent(
BRepositoryContentHandler* contentHandler);
private:
struct RootAttributeHandler;
private:
SectionInfo fRepositoryInfoSection;
BRepositoryInfo fRepositoryInfo;
};
} // namespace BPrivate
} // namespace BHPKG
} // namespace BPackageKit
#endif // _PACKAGE__HPKG__PRIVATE__REPOSITORY_READER_IMPL_H_