Lib7zArchive Class
class QInstaller::Lib7zArchiveThe Lib7zArchive class represents an archive file handled with the LZMA software development kit. More...
Header: | #include <Lib7zArchive> |
Inherits: | QInstaller::AbstractArchive |
Public Functions
Lib7zArchive(QObject *parent = nullptr) | |
Lib7zArchive(const QString &filename, QObject *parent = nullptr) | |
virtual | ~Lib7zArchive() |
Reimplemented Public Functions
virtual void | close() override |
virtual bool | create(const QStringList &data) override |
virtual bool | extract(const QString &dirPath) override |
virtual bool | extract(const QString &dirPath, const quint64 totalFiles) override |
virtual bool | isSupported() override |
virtual QVector<QInstaller::ArchiveEntry> | list() override |
virtual bool | open(QIODeviceBase::OpenMode mode) override |
virtual void | setFilename(const QString &filename) override |
Public Slots
virtual void | cancel() override |
Member Function Documentation
[explicit]
Lib7zArchive::Lib7zArchive(QObject *parent = nullptr)
Constructs an archive object with the given parent.
Lib7zArchive::Lib7zArchive(const QString &filename, QObject *parent = nullptr)
Constructs an archive object representing an archive file specified by filename with parent as parent object.
[virtual noexcept]
Lib7zArchive::~Lib7zArchive()
Destroys the instance and releases resources.
[override virtual slot]
void Lib7zArchive::cancel()
Reimplements: AbstractArchive::cancel().
Cancels the extract operation in progress.
[override virtual]
void Lib7zArchive::close()
Reimplements: AbstractArchive::close().
Closes the underlying file device.
[override virtual]
bool Lib7zArchive::create(const QStringList &data)
Reimplements: AbstractArchive::create(const QStringList &data).
Packages the given data into the archive and creates the file on disk.
[override virtual]
bool Lib7zArchive::extract(const QString &dirPath)
Reimplements: AbstractArchive::extract(const QString &dirPath).
Extracts the contents of this archive to dirPath. Returns true
on success; false
otherwise.
[override virtual]
bool Lib7zArchive::extract(const QString &dirPath, const quint64 totalFiles)
Reimplements: AbstractArchive::extract(const QString &dirPath, const quint64 totalFiles).
Extracts the contents of this archive to dirPath. The totalFiles parameter is unused. Returns true
on success; false
otherwise.
[override virtual]
bool Lib7zArchive::isSupported()
Reimplements: AbstractArchive::isSupported().
Returns true
if the current archive is of supported format; false
otherwise.
[override virtual]
QVector<QInstaller::ArchiveEntry> Lib7zArchive::list()
Reimplements: AbstractArchive::list().
Returns the contents of this archive as an array of ArchiveEntry
objects. On failure, returns an empty array.
[override virtual]
bool Lib7zArchive::open(QIODeviceBase::OpenMode mode)
Reimplements: AbstractArchive::open(QIODeviceBase::OpenMode mode).
Opens the underlying file device using mode. Returns true
if succesfull; otherwise false
.
[override virtual]
void Lib7zArchive::setFilename(const QString &filename)
Reimplements: AbstractArchive::setFilename(const QString &filename).
Sets the filename of the underlying file device.
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. The Qt Company, Qt and their respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.