2c32402da5
It is no longer public (or even private) API. BPackageDataReaderFactory returns a BAbstractBufferedDataReader instead. The advantage is that the latter doesn't have hpkg format specific dependencies.
48 lines
775 B
C++
48 lines
775 B
C++
/*
|
|
* 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 {
|
|
|
|
|
|
class BBufferCache;
|
|
|
|
|
|
namespace V1 {
|
|
|
|
|
|
class BPackageData;
|
|
|
|
|
|
class BPackageDataReaderFactory {
|
|
public:
|
|
BPackageDataReaderFactory(
|
|
BBufferCache* bufferCache);
|
|
|
|
status_t CreatePackageDataReader(BDataReader* dataReader,
|
|
const BPackageData& data,
|
|
BAbstractBufferedDataReader*& _reader);
|
|
|
|
private:
|
|
BBufferCache* fBufferCache;
|
|
};
|
|
|
|
|
|
} // namespace V1
|
|
|
|
} // namespace BHPKG
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
#endif // _PACKAGE__HPKG__V1__PACKAGE_DATA_READER_H_
|