Solid::Ifaces::StorageVolume
#include <storagevolume.h>
Public Member Functions | |
~StorageVolume () override | |
virtual QString | encryptedContainerUdi () const =0 |
virtual QString | fsType () const =0 |
virtual bool | isIgnored () const =0 |
virtual QString | label () const =0 |
virtual qulonglong | size () const =0 |
virtual Solid::StorageVolume::UsageType | usage () const =0 |
virtual QString | uuid () const =0 |
Public Member Functions inherited from Solid::Ifaces::Block | |
~Block () override | |
virtual QString | device () const =0 |
virtual int | deviceMajor () const =0 |
virtual int | deviceMinor () const =0 |
Public Member Functions inherited from Solid::Ifaces::DeviceInterface | |
virtual | ~DeviceInterface () |
Detailed Description
This device interface is available on volume devices.
A volume is anything that can contain data (partition, optical disc, memory card). It's a particular kind of block device.
Definition at line 23 of file ifaces/storagevolume.h.
Constructor & Destructor Documentation
◆ ~StorageVolume()
|
override |
Destroys a StorageVolume object.
Definition at line 9 of file ifaces/storagevolume.cpp.
Member Function Documentation
◆ encryptedContainerUdi()
|
pure virtual |
Retrieves the crypto container UDI of this volume.
- Returns
- the encrypted volume UDI containing the current volume if applicable, an empty string otherwise
◆ fsType()
|
pure virtual |
Retrieves the filesystem type of this volume.
- Returns
- the filesystem type if applicable, QString() otherwise
◆ isIgnored()
|
pure virtual |
Indicates if this volume should be ignored by applications.
If it should be ignored, it generally means that it should be invisible to the user. It's useful for firmware partitions or OS reinstall partitions on some systems.
- Returns
- true if the volume should be ignored
◆ label()
|
pure virtual |
Retrieves this volume label.
- Returns
- the volume level if available, QString() otherwise
◆ size()
|
pure virtual |
Retrieves this volume size in bytes.
- Returns
- the size of this volume
◆ usage()
|
pure virtual |
Retrieves the type of use for this volume (for example filesystem).
- Returns
- the usage type
- See also
- Solid::StorageVolume::UsageType
◆ uuid()
|
pure virtual |
Retrieves this volume Universal Unique IDentifier (UUID).
You can generally assume that this identifier is unique with reasonable confidence. Except if the volume UUID has been forged to intentionally provoke a collision, the probability to have two volumes having the same UUID is low.
- Returns
- the Universal Unique IDentifier if available, QString() otherwise
The documentation for this class was generated from the following files:
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.