File indexing completed on 2024-11-17 05:01:16
0001 /* 0002 SPDX-FileCopyrightText: 2022 Thiago Sueto <herzenschein@gmail.com> 0003 SPDX-FileCopyrightText: 2022 Méven Car <meven@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "componentchooserarchivemanager.h" 0009 0010 ComponentChooserArchiveManager::ComponentChooserArchiveManager(QObject *parent) 0011 : ComponentChooser(parent, 0012 QStringLiteral("application/zip"), 0013 QStringLiteral("Archiving"), 0014 QStringLiteral("org.kde.ark.desktop"), 0015 i18n("Select default archive manager")) 0016 { 0017 } 0018 0019 static const QStringList archiveMimetypes{"application/x-tar", 0020 "application/x-compressed-tar", 0021 "application/x-bzip-compressed-tar", 0022 "application/x-tarz", 0023 "application/x-xz-compressed-tar", 0024 "application/x-lzma-compressed-tar", 0025 "application/x-lzip-compressed-tar", 0026 "application/x-tzo", 0027 "application/x-lrzip-compressed-tar", 0028 "application/x-lz4-compressed-tar", 0029 "application/x-zstd-compressed-tar", 0030 "application/x-cd-image", 0031 "application/x-bcpio", 0032 "application/x-cpio", 0033 "application/x-cpio-compressed", 0034 "application/x-sv4cpio", 0035 "application/x-sv4crc", 0036 "application/x-source-rpm", 0037 "application/vnd.ms-cab-compressed", 0038 "application/x-xar", 0039 "application/x-iso9660-appimage", 0040 "application/x-archive", 0041 "application/vnd.rar", 0042 "application/x-rar", 0043 "application/x-7z-compressed", 0044 "application/zip", 0045 "application/x-compress", 0046 "application/gzip", 0047 "application/x-bzip", 0048 "application/x-lzma", 0049 "application/x-xz", 0050 "application/zstd", 0051 "application/x-lha"}; 0052 0053 QStringList ComponentChooserArchiveManager::mimeTypes() const 0054 { 0055 return archiveMimetypes; 0056 }