Solid
10using namespace Solid::Backends::Fake;
12FakeVolume::FakeVolume(FakeDevice *device)
17FakeVolume::~FakeVolume()
21bool FakeVolume::isIgnored()
const
23 return fakeDevice()->property(QStringLiteral(
"isIgnored")).toBool();
28 QString usage = fakeDevice()->property(QStringLiteral(
"usage")).toString();
30 if (usage == QLatin1String(
"filesystem")) {
31 return Solid::StorageVolume::FileSystem;
32 }
else if (usage == QLatin1String(
"partitiontable")) {
33 return Solid::StorageVolume::PartitionTable;
34 }
else if (usage == QLatin1String(
"raid")) {
35 return Solid::StorageVolume::Raid;
36 }
else if (usage == QLatin1String(
"unused")) {
37 return Solid::StorageVolume::Unused;
38 }
else if (usage == QLatin1String(
"encrypted")) {
39 return Solid::StorageVolume::Encrypted;
41 return Solid::StorageVolume::Other;
45QString FakeVolume::fsType()
const
47 return fakeDevice()->property(QStringLiteral(
"fsType")).toString();
50QString FakeVolume::label()
const
52 return fakeDevice()->property(QStringLiteral(
"label")).toString();
55QString FakeVolume::uuid()
const
57 return fakeDevice()->property(QStringLiteral(
"uuid")).toString();
60qulonglong FakeVolume::size()
const
62 return fakeDevice()->property(QStringLiteral(
"size")).toULongLong();
65QString Solid::Backends::Fake::FakeVolume::encryptedContainerUdi()
const
70#include "moc_fakevolume.cpp"
UsageType
This enum type defines the how a volume is used.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:55:35 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.