1 /* 2 * Copyright 2009,2011, Haiku, Inc. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _PACKAGE__HPKG__V1__PACKAGE_DATA_READER_H_ 6 #define _PACKAGE__HPKG__V1__PACKAGE_DATA_READER_H_ 7 8 9 #include <package/hpkg/DataReader.h> 10 11 12 namespace BPackageKit { 13 14 namespace BHPKG { 15 16 17 class BBufferPool; 18 19 20 namespace V1 { 21 22 23 class BPackageData; 24 25 26 class BPackageDataReaderFactory { 27 public: 28 BPackageDataReaderFactory( 29 BBufferPool* bufferPool); 30 31 status_t CreatePackageDataReader(BDataReader* dataReader, 32 const BPackageData& data, 33 BAbstractBufferedDataReader*& _reader); 34 35 private: 36 BBufferPool* fBufferPool; 37 }; 38 39 40 } // namespace V1 41 42 } // namespace BHPKG 43 44 } // namespace BPackageKit 45 46 47 #endif // _PACKAGE__HPKG__V1__PACKAGE_DATA_READER_H_ 48