summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/libarchivearchive.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/installer/libarchivearchive.h')
-rw-r--r--src/libs/installer/libarchivearchive.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/libs/installer/libarchivearchive.h b/src/libs/installer/libarchivearchive.h
index 796069ed1..759f99046 100644
--- a/src/libs/installer/libarchivearchive.h
+++ b/src/libs/installer/libarchivearchive.h
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** Copyright (C) 2021 The Qt Company Ltd.
+** Copyright (C) 2022 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Installer Framework.
@@ -99,15 +99,15 @@ public:
explicit LibArchiveArchive(QObject *parent = nullptr);
~LibArchiveArchive();
- bool open(QIODevice::OpenMode mode) Q_DECL_OVERRIDE;
- void close() Q_DECL_OVERRIDE;
- void setFilename(const QString &filename) Q_DECL_OVERRIDE;
+ bool open(QIODevice::OpenMode mode) override;
+ void close() override;
+ void setFilename(const QString &filename) override;
- bool extract(const QString &dirPath) Q_DECL_OVERRIDE;
- bool extract(const QString &dirPath, const quint64 totalFiles) Q_DECL_OVERRIDE;
- bool create(const QStringList &data) Q_DECL_OVERRIDE;
- QVector<ArchiveEntry> list() Q_DECL_OVERRIDE;
- bool isSupported() Q_DECL_OVERRIDE;
+ bool extract(const QString &dirPath) override;
+ bool extract(const QString &dirPath, const quint64 totalFiles) override;
+ bool create(const QStringList &data) override;
+ QVector<ArchiveEntry> list() override;
+ bool isSupported() override;
void workerExtract(const QString &dirPath, const quint64 totalFiles);
void workerAddDataBlock(const QByteArray buffer);
@@ -128,7 +128,7 @@ Q_SIGNALS:
void workerAboutToCancel();
public Q_SLOTS:
- void cancel() Q_DECL_OVERRIDE;
+ void cancel() override;
private Q_SLOTS:
void onWorkerFinished(const QString &errorString);
@@ -150,6 +150,7 @@ private:
static la_int64_t seekCallback(archive *reader, void *archiveData, la_int64_t offset, int whence);
static QString pathWithoutNamespace(const QString &path);
+ static QString errorStringWithCode(archive *const archive);
quint64 totalFiles();