summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/binaryformatengine.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2014-07-28 14:41:28 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2014-08-27 10:44:00 +0200
commit2312e7fd59cc75aad51ef526a33982fda1ecb4fd (patch)
treec6079fb0095612b0e11bc8da66b66d0a0dae1ac8 /src/libs/installer/binaryformatengine.h
parent492a66ad56610d81c86fae6d70d90dd0fbaf01f0 (diff)
Rename binary format classes and functions. Move to QInstaller.
Adjust some minor implementation details. Some renaming of member variables and function names is left out but will follow in later patches. Add some documentation. Change-Id: I929dcbe13fa701be5224b9e5fdf8d19bfff81235 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'src/libs/installer/binaryformatengine.h')
-rw-r--r--src/libs/installer/binaryformatengine.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/libs/installer/binaryformatengine.h b/src/libs/installer/binaryformatengine.h
index b178402b9..be82b3afb 100644
--- a/src/libs/installer/binaryformatengine.h
+++ b/src/libs/installer/binaryformatengine.h
@@ -46,12 +46,14 @@
#include <QtCore/private/qfsfileengine_p.h>
-namespace QInstallerCreator {
+namespace QInstaller {
class BinaryFormatEngine : public QAbstractFileEngine
{
+ Q_DISABLE_COPY(BinaryFormatEngine)
+
public:
- BinaryFormatEngine(const ComponentIndex &index, const QString &fileName);
+ BinaryFormatEngine(const ResourceCollectionManager &manager, const QString &fileName);
~BinaryFormatEngine();
void setFileName(const QString &file);
@@ -74,14 +76,14 @@ protected:
void setArchive(const QString &file);
private:
- const ComponentIndex m_index;
- bool m_hasComponent;
- bool m_hasArchive;
- Component m_component;
- QSharedPointer<Archive> m_archive;
+ const ResourceCollectionManager m_manager;
+ bool m_hasCollection;
+ bool m_hasResource;
+ ResourceCollection m_collection;
+ QSharedPointer<Resource> m_resource;
QString m_fileNamePath;
};
-} // namespace QInstallerCreator
+} // namespace QInstaller
-#endif
+#endif // BINARYFORMATENGINE_H