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