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();
31 return Solid::StorageVolume::FileSystem;
33 return Solid::StorageVolume::PartitionTable;
35 return Solid::StorageVolume::Raid;
37 return Solid::StorageVolume::Unused;
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();
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.
bool toBool() const const
QString toString() const const
qulonglong toULongLong(bool *ok) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:22 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.