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 12 namespace BPackageKit { 13 14 namespace BHPKG { 15 16 17 namespace BPrivate { 18 class RepositoryReaderImpl; 19 } 20 using BPrivate::RepositoryReaderImpl; 21 22 class BErrorOutput; 23 class BRepositoryContentHandler; 24 25 26 class BRepositoryReader { 27 public: 28 BRepositoryReader(BErrorOutput* errorOutput); 29 ~BRepositoryReader(); 30 31 status_t Init(const char* fileName); 32 status_t ParseContent( 33 BRepositoryContentHandler* contentHandler); 34 35 private: 36 RepositoryReaderImpl* fImpl; 37 }; 38 39 40 } // namespace BHPKG 41 42 } // namespace BPackageKit 43 44 45 #endif // _PACKAGE__HPKG__REPOSITORY_READER_H_ 46