diff --git a/kerfuffle/archiveentry.h b/kerfuffle/archiveentry.h --- a/kerfuffle/archiveentry.h +++ b/kerfuffle/archiveentry.h @@ -62,6 +62,7 @@ Q_PROPERTY(QString link MEMBER m_link) Q_PROPERTY(QString ratio MEMBER m_ratio) Q_PROPERTY(QString CRC MEMBER m_CRC) + Q_PROPERTY(QString BLAKE2 MEMBER m_BLAKE2) Q_PROPERTY(QString method MEMBER m_method) Q_PROPERTY(QString version MEMBER m_version) Q_PROPERTY(QDateTime timestamp MEMBER m_timestamp) @@ -117,6 +118,7 @@ QString m_link; QString m_ratio; QString m_CRC; + QString m_BLAKE2; QString m_method; QString m_version; QDateTime m_timestamp; diff --git a/kerfuffle/archiveentry.cpp b/kerfuffle/archiveentry.cpp --- a/kerfuffle/archiveentry.cpp +++ b/kerfuffle/archiveentry.cpp @@ -55,6 +55,7 @@ setProperty("link", sourceEntry->property("link")); setProperty("ratio", sourceEntry->property("ratio")); setProperty("CRC", sourceEntry->property("CRC")); + setProperty("BLAKE2", sourceEntry->property("BLAKE2")); setProperty("method", sourceEntry->property("method")); setProperty("version", sourceEntry->property("version")); setProperty("timestamp", sourceEntry->property("timestamp").toDateTime()); diff --git a/part/archivemodel.h b/part/archivemodel.h --- a/part/archivemodel.h +++ b/part/archivemodel.h @@ -52,6 +52,7 @@ Group, /**< The user group the entry belongs to */ Ratio, /**< The compression ratio for the entry */ CRC, /**< The entry's CRC */ + BLAKE2, /**< The entry's BLAKE2 */ Method, /**< The compression method used on the entry */ Version, /**< The archiver version needed to extract the entry */ Timestamp /**< The timestamp for the current entry */ diff --git a/part/archivemodel.cpp b/part/archivemodel.cpp --- a/part/archivemodel.cpp +++ b/part/archivemodel.cpp @@ -61,6 +61,7 @@ { Group, "group" }, { Ratio, "ratio" }, { CRC, "CRC" }, + { BLAKE2, "BLAKE2" }, { Method, "method" }, { Version, "version" }, { Timestamp, "timestamp" }, @@ -184,7 +185,9 @@ case Permissions: return i18nc("File permissions", "Mode"); case CRC: - return i18nc("CRC hash code", "CRC"); + return i18nc("CRC hash code", "CRC checksum"); + case BLAKE2: + return i18nc("BLAKE2 hash code", "BLAKE2 checksum"); case Method: return i18nc("Compression method", "Method"); case Version: diff --git a/plugins/clirarplugin/cliplugin.cpp b/plugins/clirarplugin/cliplugin.cpp --- a/plugins/clirarplugin/cliplugin.cpp +++ b/plugins/clirarplugin/cliplugin.cpp @@ -298,6 +298,7 @@ e->setProperty("compressedSize", m_unrar5Details.value(QStringLiteral("packed size"))); e->setProperty("permissions", m_unrar5Details.value(QStringLiteral("attributes"))); e->setProperty("CRC", m_unrar5Details.value(QStringLiteral("crc32"))); + e->setProperty("BLAKE2", m_unrar5Details.value(QStringLiteral("blake2"))); if (e->property("permissions").toString().startsWith(QLatin1Char('l'))) { e->setProperty("link", m_unrar5Details.value(QStringLiteral("target")));