2011-01-30 15:05:38 +00:00
|
|
|
/*
|
2011-01-30 15:15:33 +00:00
|
|
|
* Copyright 2009,2011, Haiku, Inc.
|
2011-01-30 15:05:38 +00:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _PACKAGE__HPKG__PACKAGE_DATA_READER_H_
|
|
|
|
#define _PACKAGE__HPKG__PACKAGE_DATA_READER_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <package/hpkg/DataReader.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace BPackageKit {
|
|
|
|
|
|
|
|
namespace BHPKG {
|
|
|
|
|
|
|
|
|
2013-05-14 18:59:57 +02:00
|
|
|
class BBufferPool;
|
2011-01-30 15:05:38 +00:00
|
|
|
class BPackageData;
|
|
|
|
|
|
|
|
|
|
|
|
class BPackageDataReaderFactory {
|
|
|
|
public:
|
2013-05-18 04:11:01 +02:00
|
|
|
BPackageDataReaderFactory();
|
2011-01-30 15:05:38 +00:00
|
|
|
|
2013-05-18 04:11:01 +02:00
|
|
|
status_t CreatePackageDataReader(
|
|
|
|
BAbstractBufferedDataReader* dataReader,
|
2011-01-30 15:05:38 +00:00
|
|
|
const BPackageData& data,
|
2013-05-13 03:10:09 +02:00
|
|
|
BAbstractBufferedDataReader*& _reader);
|
2011-01-30 15:05:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace BHPKG
|
|
|
|
|
|
|
|
} // namespace BPackageKit
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _PACKAGE__HPKG__PACKAGE_DATA_READER_H_
|