ExtractCallback Class | Qt Installer Framework Manual

Qt Installer Framework Manual | ExtractCallback

# ExtractCallback Class

(Lib7z::ExtractCallback)

- List of all members, including inherited members

## Public Functions

| ExtractCallback() = default
virtual | ~ExtractCallback() = default
void | setArchive(CArc *carc)
void | setTarget(const QString &dir)

## Protected Functions

virtual bool | prepareForFile(const QString &filename)
virtual HRESULT | setCompleted(quint64 completed, quint64 total)
virtual void | setCurrentFile(const QString &filename)

## Member Function Documentation

### `[default]` ExtractCallback::ExtractCallback()

Default constructs an instance of ExtractCallback.

### `[default]` ExtractCallback::~ExtractCallback()

Destroys the instance of ExtractCallback. The destructor is virtual.

### `[virtual protected]` bool ExtractCallback::prepareForFile(const QString &filename)

Implement to prepare for file filename to be extracted, e.g. by renaming existing files. Return `true` if the preparation was successful and extraction can be continued. If `false` is returned, the extraction will be aborted. The default implementation returns `true`.

### void ExtractCallback::setArchive(CArc *carc)

### `[virtual protected]` HRESULT ExtractCallback::setCompleted(quint64 completed, quint64 total)

### `[virtual protected]` void ExtractCallback::setCurrentFile(const QString &filename)

### void ExtractCallback::setTarget(const QString &dir)