Commit 89832ce1 authored by Natsumi Higa's avatar Natsumi Higa
Browse files

cliunarchiverplugin: Add ARJ support

unar supports reading ARJ files.

FEATURE: 104404
parent 1e906606
......@@ -87,6 +87,20 @@ void CliUnarchiverTest::testArchive_data()
<< QFileInfo(archivePath).fileName()
<< true << false << Archive::Unencrypted
<< QStringLiteral("multiple_toplevel_entries");
archivePath = QFINDTESTDATA("data/one_toplevel_folder.arj");
QTest::newRow("ARJ archive with one top-level folder")
<< archivePath
<< QFileInfo(archivePath).fileName()
<< true << true << Archive::Unencrypted
<< QStringLiteral("A");
archivePath = QFINDTESTDATA("data/multiple_toplevel_entries.arj");
QTest::newRow("ARJ archive with multiple top-level entries")
<< archivePath
<< QFileInfo(archivePath).fileName()
<< true << false << Archive::Unencrypted
<< QStringLiteral("multiple_toplevel_entries");
}
void CliUnarchiverTest::testArchive()
......
########### next target ###############
# TODO: drop application/x-rar alias once distributions ship shared-mime-info 1.7
set(SUPPORTED_CLIUNARCHIVER_MIMETYPES "application/vnd.rar;application/x-rar;application/x-lha;")
set(SUPPORTED_CLIUNARCHIVER_MIMETYPES "application/vnd.rar;application/x-rar;application/x-lha;application/x-arj;")
set(kerfuffle_cliunarchiver_SRCS cliplugin.cpp)
......@@ -15,7 +15,8 @@ ecm_qt_declare_logging_category(kerfuffle_cliunarchiver_SRCS
set(SUPPORTED_MIMETYPES
"application/vnd.rar\",
\"application/x-rar\",
\"application/x-lha")
\"application/x-lha\",
\"application/x-arj")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/kerfuffle_cliunarchiver.json.cmake
......
{
"KPlugin": {
"Description": "Open and extract RAR and LHA archives",
"Description": "Open and extract RAR, LHA and ARJ archives",
"Description[ca]": "Obre i extreu arxius RAR i LHA",
"Description[es]": "Abrir y extraer archivos RAR y LHA",
"Description[nl]": "Open en pak RAR-en LHA-archieven uit",
......
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