Commit 88227b68 authored by Ragnar Thomsen's avatar Ragnar Thomsen
Browse files

cli7z: Add xz and rar archive type detection

Added support for detecting xz and rar archives in the cli7z plugin.
These mimetypes are not registered for cli7z, so Ark doesn't use this
plugin for the two archive types at the moment.
parent d2698814
......@@ -131,10 +131,14 @@ bool CliPlugin::readListLine(const QString& line)
m_archiveType = ArchiveTypeBZip2;
} else if (type == QLatin1String("gzip")) {
m_archiveType = ArchiveTypeGZip;
} else if (type == QLatin1String("xz")) {
m_archiveType = ArchiveTypeXz;
} else if (type == QLatin1String("tar")) {
m_archiveType = ArchiveTypeTar;
} else if (type == QLatin1String("zip")) {
m_archiveType = ArchiveTypeZip;
} else if (type == QLatin1String("Rar")) {
m_archiveType = ArchiveTypeRar;
} else {
// Should not happen
qCWarning(KERFUFFLE_PLUGIN) << "Unsupported archive type";
......
......@@ -43,8 +43,10 @@ private:
ArchiveType7z = 0,
ArchiveTypeBZip2,
ArchiveTypeGZip,
ArchiveTypeXz,
ArchiveTypeTar,
ArchiveTypeZip
ArchiveTypeZip,
ArchiveTypeRar
} m_archiveType;
enum ParseState {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment