2 * Copyright 2009-2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
4 * Distributed under the terms of the MIT License.
6 #ifndef PACKAGE_WRITER_LISTENER_H
7 #define PACKAGE_WRITER_LISTENER_H
10 #include <package/hpkg/PackageWriter.h>
13 using BPackageKit::BHPKG::BPackageWriterListener
;
14 using BPackageKit::BHPKG::BPackageWriter
;
17 class PackageWriterListener
: public BPackageWriterListener
{
19 PackageWriterListener(bool verbose
, bool quiet
);
21 virtual void PrintErrorVarArgs(const char* format
,
24 virtual void OnEntryAdded(const char* path
);
25 virtual void OnTOCSizeInfo(uint64 uncompressedStringsSize
,
26 uint64 uncompressedMainSize
,
27 uint64 uncompressedTOCSize
);
28 virtual void OnPackageAttributesSizeInfo(uint32 stringCount
,
29 uint32 uncompressedSize
);
30 virtual void OnPackageSizeInfo(uint32 headerSize
,
31 uint64 heapSize
, uint64 tocSize
,
32 uint32 packageAttributesSize
,
41 #endif // PACKAGE_WRITER_LISTENER_H