Search for usage in LXR

Solid::Ifaces::StorageVolume Class Referenceabstract

#include <storagevolume.h>

Inheritance diagram for Solid::Ifaces::StorageVolume:

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()

Solid::Ifaces::StorageVolume::~StorageVolume ( )

Destroys a StorageVolume object.

Definition at line 9 of file ifaces/storagevolume.cpp.

Member Function Documentation

◆ encryptedContainerUdi()

virtual QString Solid::Ifaces::StorageVolume::encryptedContainerUdi ( ) const
pure virtual

Retrieves the crypto container UDI of this volume.

the encrypted volume UDI containing the current volume if applicable, an empty string otherwise

◆ fsType()

virtual QString Solid::Ifaces::StorageVolume::fsType ( ) const
pure virtual

Retrieves the filesystem type of this volume.

the filesystem type if applicable, QString() otherwise

◆ isIgnored()

virtual bool Solid::Ifaces::StorageVolume::isIgnored ( ) const
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.

true if the volume should be ignored

◆ label()

virtual QString Solid::Ifaces::StorageVolume::label ( ) const
pure virtual

Retrieves this volume label.

the volume level if available, QString() otherwise

◆ size()

virtual qulonglong Solid::Ifaces::StorageVolume::size ( ) const
pure virtual

Retrieves this volume size in bytes.

the size of this volume

◆ usage()

virtual Solid::StorageVolume::UsageType Solid::Ifaces::StorageVolume::usage ( ) const
pure virtual

Retrieves the type of use for this volume (for example filesystem).

the usage type
See also

◆ uuid()

virtual QString Solid::Ifaces::StorageVolume::uuid ( ) const
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.

the Universal Unique IDentifier if available, QString() otherwise

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:53:48 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.