File indexing completed on 2024-05-05 05:48:45

0001 /*
0002     SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de>
0003     SPDX-FileCopyrightText: 2015 Chris Campbell <c.j.campbell@ed.ac.uk>
0004     SPDX-FileCopyrightText: 2016-2017 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_HPFS_H
0012 #define KPMCORE_HPFS_H
0013 
0014 #include "util/libpartitionmanagerexport.h"
0015 
0016 #include "fs/filesystem.h"
0017 
0018 #include <QtGlobal>
0019 
0020 class Report;
0021 
0022 class QString;
0023 
0024 namespace FS
0025 {
0026 /** A hpfs file system.
0027     @author Volker Lanz <vl@fidra.de>
0028 */
0029 class LIBKPMCORE_EXPORT hpfs : public FileSystem
0030 {
0031 public:
0032     hpfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, const QVariantMap& features = {});
0033 
0034 public:
0035     CommandSupportType supportGetUsed() const override {
0036         return m_GetUsed;
0037     }
0038     CommandSupportType supportGetLabel() const override {
0039         return m_GetLabel;
0040     }
0041     CommandSupportType supportCreate() const override {
0042         return m_Create;
0043     }
0044     CommandSupportType supportGrow() const override {
0045         return m_Grow;
0046     }
0047     CommandSupportType supportShrink() const override {
0048         return m_Shrink;
0049     }
0050     CommandSupportType supportMove() const override {
0051         return m_Move;
0052     }
0053     CommandSupportType supportCheck() const override {
0054         return m_Check;
0055     }
0056     CommandSupportType supportCopy() const override {
0057         return m_Copy;
0058     }
0059     CommandSupportType supportBackup() const override {
0060         return m_Backup;
0061     }
0062     CommandSupportType supportSetLabel() const override {
0063         return m_SetLabel;
0064     }
0065     CommandSupportType supportUpdateUUID() const override {
0066         return m_UpdateUUID;
0067     }
0068     CommandSupportType supportGetUUID() const override {
0069         return m_GetUUID;
0070     }
0071 
0072     qint64 maxCapacity() const override;
0073     bool supportToolFound() const override {
0074         return true;
0075     }
0076 
0077 public:
0078     static CommandSupportType m_GetUsed;
0079     static CommandSupportType m_GetLabel;
0080     static CommandSupportType m_Create;
0081     static CommandSupportType m_Grow;
0082     static CommandSupportType m_Shrink;
0083     static CommandSupportType m_Move;
0084     static CommandSupportType m_Check;
0085     static CommandSupportType m_Copy;
0086     static CommandSupportType m_Backup;
0087     static CommandSupportType m_SetLabel;
0088     static CommandSupportType m_UpdateUUID;
0089     static CommandSupportType m_GetUUID;
0090 };
0091 }
0092 
0093 #endif