2013-05-13 03:29:06 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2009,2011, Haiku, Inc.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _PACKAGE__HPKG__V1__PACKAGE_DATA_READER_H_
|
|
|
|
#define _PACKAGE__HPKG__V1__PACKAGE_DATA_READER_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <package/hpkg/DataReader.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
|
|
|
|
namespace BHPKG {
|
|
|
|
|
|
|
|
|
2013-05-14 20:59:57 +04:00
|
|
|
class BBufferPool;
|
2013-05-13 03:29:06 +04:00
|
|
|
|
|
|
|
|
|
|
|
namespace V1 {
|
|
|
|
|
|
|
|
|
|
|
|
class BPackageData;
|
|
|
|
|
|
|
|
|
|
|
|
class BPackageDataReaderFactory {
|
|
|
|
public:
|
|
|
|
BPackageDataReaderFactory(
|
2013-05-14 20:59:57 +04:00
|
|
|
BBufferPool* bufferPool);
|
2013-05-13 03:29:06 +04:00
|
|
|
|
|
|
|
status_t CreatePackageDataReader(BDataReader* dataReader,
|
|
|
|
const BPackageData& data,
|
2013-05-13 05:10:09 +04:00
|
|
|
BAbstractBufferedDataReader*& _reader);
|
2013-05-13 03:29:06 +04:00
|
|
|
|
|
|
|
private:
|
2013-05-14 20:59:57 +04:00
|
|
|
BBufferPool* fBufferPool;
|
2013-05-13 03:29:06 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace V1
|
|
|
|
|
|
|
|
} // namespace BHPKG
|
|
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _PACKAGE__HPKG__V1__PACKAGE_DATA_READER_H_
|