* added embedding of license texts that need approval into repository
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40491 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -43,6 +43,7 @@ public:
|
||||
uint32 uncompressedSize) = 0;
|
||||
virtual void OnRepositoryDone(uint32 headerSize,
|
||||
uint32 repositoryInfoLength,
|
||||
uint32 licenseCount,
|
||||
uint32 packageCount,
|
||||
uint32 packageAttributesSize,
|
||||
uint64 totalSize) = 0;
|
||||
@@ -54,7 +55,7 @@ public:
|
||||
public:
|
||||
BRepositoryWriter(
|
||||
BRepositoryWriterListener* listener,
|
||||
const BRepositoryInfo* repositoryInfo);
|
||||
BRepositoryInfo* repositoryInfo);
|
||||
~BRepositoryWriter();
|
||||
|
||||
status_t Init(const char* fileName);
|
||||
|
||||
@@ -30,34 +30,19 @@ namespace BPrivate {
|
||||
|
||||
struct hpkg_header;
|
||||
|
||||
class RepositoryWriterImpl
|
||||
: public WriterImplBase, private BPackageContentHandler {
|
||||
class RepositoryWriterImpl : public WriterImplBase {
|
||||
typedef WriterImplBase inherited;
|
||||
|
||||
public:
|
||||
RepositoryWriterImpl(
|
||||
BRepositoryWriterListener* listener,
|
||||
const BRepositoryInfo* repositoryInfo);
|
||||
BRepositoryInfo* repositoryInfo);
|
||||
~RepositoryWriterImpl();
|
||||
|
||||
status_t Init(const char* fileName);
|
||||
status_t AddPackage(const BEntry& packageEntry);
|
||||
status_t Finish();
|
||||
|
||||
private:
|
||||
// BPackageContentHandler
|
||||
virtual status_t HandleEntry(BPackageEntry* entry);
|
||||
virtual status_t HandleEntryAttribute(BPackageEntry* entry,
|
||||
BPackageEntryAttribute* attribute);
|
||||
virtual status_t HandleEntryDone(BPackageEntry* entry);
|
||||
|
||||
virtual status_t HandlePackageAttribute(
|
||||
const BPackageInfoAttributeValue& value
|
||||
);
|
||||
virtual status_t HandlePackageAttributesDone();
|
||||
|
||||
virtual void HandleErrorOccurred();
|
||||
|
||||
private:
|
||||
status_t _Init(const char* fileName);
|
||||
status_t _AddPackage(const BEntry& packageEntry);
|
||||
@@ -75,7 +60,7 @@ private:
|
||||
private:
|
||||
BRepositoryWriterListener* fListener;
|
||||
|
||||
const BRepositoryInfo* fRepositoryInfo;
|
||||
BRepositoryInfo* fRepositoryInfo;
|
||||
|
||||
BPackageInfo fPackageInfo;
|
||||
uint32 fPackageCount;
|
||||
|
||||
Reference in New Issue
Block a user