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