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-2019 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_UNKNOWN_H
0012 #define KPMCORE_UNKNOWN_H
0013 
0014 #include "util/libpartitionmanagerexport.h"
0015 
0016 #include "fs/filesystem.h"
0017 
0018 #include <QtGlobal>
0019 
0020 namespace FS
0021 {
0022 /** A pseudo file system for partitions whose file system we cannot determine.
0023     @author Volker Lanz <vl@fidra.de>
0024 */
0025 class LIBKPMCORE_EXPORT unknown : public FileSystem
0026 {
0027 public:
0028     unknown(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, const QVariantMap& features = {});
0029 
0030 public:
0031     bool supportToolFound() const override {
0032         return true;
0033     }
0034     bool canMount(const QString & deviceNode, const QString & mountPoint) const override;
0035 
0036     CommandSupportType supportMove() const override {
0037         return m_Move;
0038     }
0039 
0040     CommandSupportType supportCopy() const override {
0041         return m_Copy;
0042     }
0043 
0044     static CommandSupportType m_Move;
0045     static CommandSupportType m_Copy;
0046 };
0047 }
0048 
0049 #endif