File indexing completed on 2024-05-05 05:48:42
0001 /* 0002 SPDX-FileCopyrightText: 2019 Andrius Štikonas <andrius@stikonas.eu> 0003 SPDX-FileCopyrightText: 2020 Arnaud Ferraris <arnaud.ferraris@collabora.com> 0004 SPDX-FileCopyrightText: 2020 Gaël PORTAY <gael.portay@collabora.com> 0005 0006 SPDX-License-Identifier: GPL-3.0-or-later 0007 */ 0008 0009 #ifndef KPMCORE_APFS_H 0010 #define KPMCORE_APFS_H 0011 0012 #include "util/libpartitionmanagerexport.h" 0013 0014 #include "fs/filesystem.h" 0015 0016 #include <QtGlobal> 0017 0018 class QString; 0019 0020 namespace FS 0021 { 0022 /** An APFS file system. 0023 @author Andrius Štikonas <stikonas@kde.org> 0024 */ 0025 class LIBKPMCORE_EXPORT apfs : public FileSystem 0026 { 0027 public: 0028 apfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, const QVariantMap& features = {}); 0029 0030 public: 0031 CommandSupportType supportMove() const override { 0032 return m_Move; 0033 } 0034 CommandSupportType supportCopy() const override { 0035 return m_Copy; 0036 } 0037 CommandSupportType supportBackup() const override { 0038 return m_Backup; 0039 } 0040 0041 bool supportToolFound() const override { 0042 return true; 0043 } 0044 0045 public: 0046 static CommandSupportType m_Move; 0047 static CommandSupportType m_Copy; 0048 static CommandSupportType m_Backup; 0049 }; 0050 } 0051 0052 #endif