diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-10-14 17:03:54 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-10-15 17:10:18 +0200 |
commit | 84875396b75f5615afa637f9633d19bbc79e08e0 (patch) | |
tree | 012fe931425ae267361a608c0c63e0d05e4ee03e /src/libs/installer/binarycontent.h | |
parent | ec92e19193eb9d69a3cf18979d6434cf04764902 (diff) |
Overhaul the binary format API.
Adjust some naming. Add documentation. Make the Resource class
handle files only, this is sufficient to read and map inbuild
resources. Keep the QResources inside the manager as well, no
need to handle them separate. Remove read, write functions from
collection class, the API was just unclear how to use. Still it
is far from intuitive in the manager class either. If we open a
Resource, we need to close it on our own case they are pointers.
Change-Id: Ic8aa32a84a15ac774fe1194ba0dbb5733f7216d6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/binarycontent.h')
-rw-r--r-- | src/libs/installer/binarycontent.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libs/installer/binarycontent.h b/src/libs/installer/binarycontent.h index b4527a74a..9821561cf 100644 --- a/src/libs/installer/binarycontent.h +++ b/src/libs/installer/binarycontent.h @@ -68,15 +68,13 @@ public: static qint64 findMagicCookie(QFile *file, quint64 magicCookie); static BinaryLayout binaryLayout(QFile *file, quint64 magicCookie); - static void readBinaryContent(const QSharedPointer<QFile> &in, - ResourceCollection *metaResources, + static void readBinaryContent(QFile *file, QList<OperationBlob> *operations, ResourceCollectionManager *manager, qint64 *magicMarker, quint64 magicCookie); - static void writeBinaryContent(const QSharedPointer<QFile> &out, - const ResourceCollection &metaResources, + static void writeBinaryContent(QFile *out, const QList<OperationBlob> &operations, const ResourceCollectionManager &manager, qint64 magicMarker, |