2019-06-13 14:55:43 +02:00
|
|
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
2020-08-08 23:32:09 +02:00
|
|
|
*
|
2020-05-30 16:15:03 +02:00
|
|
|
* SPDX-FileCopyrightText: 2014 Aurélien Gâteau <agateau@kde.org>
|
|
|
|
* SPDX-FileCopyrightText: 2015-2016 Teo Mrnjavac <teo@kde.org>
|
|
|
|
* SPDX-FileCopyrightText: 2019 Adriaan de Groot <groot@kde.org>
|
2020-08-08 23:32:09 +02:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2019-06-13 14:55:43 +02:00
|
|
|
*
|
|
|
|
* Calamares is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Calamares is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
2020-05-30 16:15:03 +02:00
|
|
|
*
|
2019-06-13 14:55:43 +02:00
|
|
|
*/
|
2019-06-19 09:06:05 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* NOTE: this functionality is only available when Calamares is compiled
|
|
|
|
* with KPMcore support.
|
|
|
|
*/
|
|
|
|
|
2019-06-13 14:55:43 +02:00
|
|
|
#ifndef PARTITION_FILESYSTEM_H
|
|
|
|
#define PARTITION_FILESYSTEM_H
|
|
|
|
|
2020-08-08 23:32:09 +02:00
|
|
|
#include "DllMacro.h"
|
|
|
|
|
2019-06-13 14:55:43 +02:00
|
|
|
#include <kpmcore/fs/filesystem.h>
|
|
|
|
|
|
|
|
namespace CalamaresUtils
|
|
|
|
{
|
|
|
|
namespace Partition
|
|
|
|
{
|
2020-08-08 23:32:09 +02:00
|
|
|
QString DLLEXPORT prettyNameForFileSystemType( FileSystem::Type t );
|
2020-02-13 13:48:12 +01:00
|
|
|
|
|
|
|
static inline QString
|
|
|
|
untranslatedFS( FileSystem& fs )
|
|
|
|
{
|
|
|
|
return fs.name( { QStringLiteral( "C" ) } );
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline QString
|
|
|
|
untranslatedFS( FileSystem* fs )
|
|
|
|
{
|
|
|
|
return fs ? untranslatedFS( *fs ) : QString();
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline QString
|
|
|
|
userVisibleFS( FileSystem& fs )
|
|
|
|
{
|
|
|
|
return fs.name();
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline QString
|
|
|
|
userVisibleFS( FileSystem* fs )
|
|
|
|
{
|
|
|
|
return fs ? userVisibleFS( *fs ) : QString();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-06-13 14:55:43 +02:00
|
|
|
} // namespace Partition
|
|
|
|
} // namespace CalamaresUtils
|
|
|
|
|
|
|
|
#endif // PARTITION_PARTITIONQUERY_H
|