diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-07-30 17:30:29 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2014-08-27 13:21:56 +0200 |
commit | 554a7f108ef17d8a042f2960e0a483508ca15cd3 (patch) | |
tree | a3547db4e2e3c3375ff7e911c82b82a4f8e5149a /src/libs/installer/binarycontent.h | |
parent | 2dfa49ac79d421c87bbc1404be56d5ae37a6a2c4 (diff) |
Introduce two new functions to read and write binary content.
In addition update the auto test to test both new functions.
Change-Id: I85f1e28cf486fc381941e553dac6defa9d327117
Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/libs/installer/binarycontent.h')
-rw-r--r-- | src/libs/installer/binarycontent.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/libs/installer/binarycontent.h b/src/libs/installer/binarycontent.h index 9cd48e4ce..f553b8b9a 100644 --- a/src/libs/installer/binarycontent.h +++ b/src/libs/installer/binarycontent.h @@ -42,8 +42,8 @@ #ifndef BINARYCONTENT_H #define BINARYCONTENT_H +#include "binaryformat.h" #include "range.h" -#include "qinstallerglobal.h" #include <QVector> @@ -97,6 +97,19 @@ public: int registerEmbeddedQResources(); void registerAsDefaultQResource(const QString &path); + static void readBinaryContent(const QSharedPointer<QFile> &in, + ResourceCollection *metaResources, + QList<OperationBlob> *operations, + ResourceCollectionManager *manager, + qint64 *magicMarker, + quint64 magicCookie); + + static void writeBinaryContent(const QSharedPointer<QFile> &out, + const ResourceCollection &metaResources, + const QList<OperationBlob> &operations, + const ResourceCollectionManager &manager, + qint64 magicMarker, + quint64 magicCookie); private: explicit BinaryContent(const QString &path); static void readBinaryData(BinaryContent &content, const QSharedPointer<QFile> &file, |