LibArchiveWrapper Class | Qt Installer Framework Manual

- Qt Installer Framework Manual
- LibArchiveWrapper

# LibArchiveWrapper Class

(QInstaller::LibArchiveWrapper)

The LibArchiveWrapper class provides an interface for interacting with archives handled using the libarchive archive and compression library. More...

Header: | #include <LibArchiveWrapper>
Inherits: | QInstaller::AbstractArchive

- List of all members, including inherited members

## Public Functions

| LibArchiveWrapper(const QString &filename, QObject *parent = nullptr)
| LibArchiveWrapper(QObject *parent = nullptr)
virtual | ~LibArchiveWrapper()

## Reimplemented Public Functions

virtual void | close() override
virtual bool | create(const QStringList &data) override
virtual QString | errorString() const 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(QIODevice::OpenMode mode) override
virtual void | setCompressionLevel(const AbstractArchive::CompressionLevel level) override
virtual void | setFilename(const QString &filename) override

- 10 public functions inherited from QInstaller::AbstractArchive

## Public Slots

virtual void | cancel() override

- 1 public slot inherited from QInstaller::AbstractArchive

## Static Public Members

const QMetaObject | staticMetaObject

### Additional Inherited Members

- 2 signals inherited from QInstaller::AbstractArchive
- 2 protected functions inherited from QInstaller::AbstractArchive

## Detailed Description

The LibArchiveWrapper class provides an interface for interacting with archives handled using the libarchive archive and compression library.

The invoked archive operations are performed in a normal user mode, or in an on-demand elevated user mode through the remote client-server protocol of the framework.

This class is not thread-safe; extra care should be taken especially when elevated mode is active to not call its functions from any thread other than where the object was created.

## Member Function Documentation

### LibArchiveWrapper::LibArchiveWrapper(const QString &filename, QObject *parent = nullptr)

Default constructs an instance of LibArchiveWrapper.

### LibArchiveWrapper::LibArchiveWrapper(QObject *parent = nullptr)

Default constructs an instance of LibArchiveWrapper.

### `[virtual]` LibArchiveWrapper::~LibArchiveWrapper()

Destroys the instance of LibArchiveWrapper. The destructor is virtual.

### `[override virtual slot]` void LibArchiveWrapper::cancel()

### `[override virtual]` void LibArchiveWrapper::close()

### `[override virtual]` bool LibArchiveWrapper::create(const QStringList &data)

### `[override virtual]` QString LibArchiveWrapper::errorString() const

### `[override virtual]` bool LibArchiveWrapper::extract(const QString &dirPath)

### `[override virtual]` bool LibArchiveWrapper::extract(const QString &dirPath, const quint64 totalFiles)

### `[override virtual]` bool LibArchiveWrapper::isSupported()

### `[override virtual]` QVector<QInstaller::ArchiveEntry> LibArchiveWrapper::list()

### `[override virtual]` bool LibArchiveWrapper::open(QIODevice::OpenMode mode)

### `[override virtual]` void LibArchiveWrapper::setCompressionLevel(const AbstractArchive::CompressionLevel level)

### `[override virtual]` void LibArchiveWrapper::setFilename(const QString &filename)