1 /* 2 SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de> 3 SPDX-FileCopyrightText: 2015 Chris Campbell <c.j.campbell@ed.ac.uk> 4 SPDX-FileCopyrightText: 2016-2017 Andrius Štikonas <andrius@stikonas.eu> 5 SPDX-FileCopyrightText: 2020 Arnaud Ferraris <arnaud.ferraris@collabora.com> 6 SPDX-FileCopyrightText: 2020 Gaël PORTAY <gael.portay@collabora.com> 7 8 SPDX-License-Identifier: GPL-3.0-or-later 9 */ 10 11 #ifndef KPMCORE_HPFS_H 12 #define KPMCORE_HPFS_H 13 14 #include "util/libpartitionmanagerexport.h" 15 16 #include "fs/filesystem.h" 17 18 #include <QtGlobal> 19 20 class Report; 21 22 class QString; 23 24 namespace FS 25 { 26 /** A hpfs file system. 27 @author Volker Lanz <vl@fidra.de> 28 */ 29 class LIBKPMCORE_EXPORT hpfs : public FileSystem 30 { 31 public: 32 hpfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, const QVariantMap& features = {}); 33 34 public: supportGetUsed()35 CommandSupportType supportGetUsed() const override { 36 return m_GetUsed; 37 } supportGetLabel()38 CommandSupportType supportGetLabel() const override { 39 return m_GetLabel; 40 } supportCreate()41 CommandSupportType supportCreate() const override { 42 return m_Create; 43 } supportGrow()44 CommandSupportType supportGrow() const override { 45 return m_Grow; 46 } supportShrink()47 CommandSupportType supportShrink() const override { 48 return m_Shrink; 49 } supportMove()50 CommandSupportType supportMove() const override { 51 return m_Move; 52 } supportCheck()53 CommandSupportType supportCheck() const override { 54 return m_Check; 55 } supportCopy()56 CommandSupportType supportCopy() const override { 57 return m_Copy; 58 } supportBackup()59 CommandSupportType supportBackup() const override { 60 return m_Backup; 61 } supportSetLabel()62 CommandSupportType supportSetLabel() const override { 63 return m_SetLabel; 64 } supportUpdateUUID()65 CommandSupportType supportUpdateUUID() const override { 66 return m_UpdateUUID; 67 } supportGetUUID()68 CommandSupportType supportGetUUID() const override { 69 return m_GetUUID; 70 } 71 72 qint64 maxCapacity() const override; supportToolFound()73 bool supportToolFound() const override { 74 return true; 75 } 76 77 public: 78 static CommandSupportType m_GetUsed; 79 static CommandSupportType m_GetLabel; 80 static CommandSupportType m_Create; 81 static CommandSupportType m_Grow; 82 static CommandSupportType m_Shrink; 83 static CommandSupportType m_Move; 84 static CommandSupportType m_Check; 85 static CommandSupportType m_Copy; 86 static CommandSupportType m_Backup; 87 static CommandSupportType m_SetLabel; 88 static CommandSupportType m_UpdateUUID; 89 static CommandSupportType m_GetUUID; 90 }; 91 } 92 93 #endif 94