2020-09-28 00:45:21 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2008-2010 Volker Lanz <vl@fidra.de>
|
|
|
|
SPDX-FileCopyrightText: 2015 Chris Campbell <c.j.campbell@ed.ac.uk>
|
|
|
|
SPDX-FileCopyrightText: 2016 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
SPDX-FileCopyrightText: 2020 Arnaud Ferraris <arnaud.ferraris@collabora.com>
|
|
|
|
SPDX-FileCopyrightText: 2020 Gaël PORTAY <gael.portay@collabora.com>
|
2019-06-12 17:41:11 +01:00
|
|
|
|
2020-09-28 00:45:21 +01:00
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KPMCORE_UFS_H
|
2017-09-10 20:12:52 +01:00
|
|
|
#define KPMCORE_UFS_H
|
2015-06-04 01:29:22 +01:00
|
|
|
|
|
|
|
#include "util/libpartitionmanagerexport.h"
|
|
|
|
|
|
|
|
#include "fs/filesystem.h"
|
|
|
|
|
2019-06-12 17:41:11 +01:00
|
|
|
#include <QtGlobal>
|
|
|
|
|
|
|
|
class QString;
|
|
|
|
|
2015-06-04 01:29:22 +01:00
|
|
|
namespace FS
|
|
|
|
{
|
2015-07-13 15:16:36 +01:00
|
|
|
/** A UFS file system.
|
|
|
|
@author Volker Lanz <vl@fidra.de>
|
|
|
|
*/
|
|
|
|
class LIBKPMCORE_EXPORT ufs : public FileSystem
|
|
|
|
{
|
|
|
|
public:
|
2020-03-21 13:18:13 +00:00
|
|
|
ufs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, const QVariantMap& features = {});
|
2015-07-13 15:16:36 +01:00
|
|
|
|
|
|
|
public:
|
2016-05-17 18:01:31 +01:00
|
|
|
CommandSupportType supportMove() const override {
|
2015-07-13 15:16:36 +01:00
|
|
|
return m_Move;
|
|
|
|
}
|
2016-05-17 18:01:31 +01:00
|
|
|
CommandSupportType supportCopy() const override {
|
2015-07-13 15:16:36 +01:00
|
|
|
return m_Copy;
|
|
|
|
}
|
2016-05-17 18:01:31 +01:00
|
|
|
CommandSupportType supportBackup() const override {
|
2015-07-13 15:16:36 +01:00
|
|
|
return m_Backup;
|
|
|
|
}
|
|
|
|
|
2016-05-17 18:01:31 +01:00
|
|
|
bool supportToolFound() const override {
|
2015-07-13 15:16:36 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public:
|
|
|
|
static CommandSupportType m_Move;
|
|
|
|
static CommandSupportType m_Copy;
|
|
|
|
static CommandSupportType m_Backup;
|
|
|
|
};
|
2015-06-04 01:29:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|