Solid::Ifaces::StorageDrive
#include <storagedrive.h>
Public Member Functions | |
~StorageDrive () override | |
virtual Solid::StorageDrive::Bus | bus () const =0 |
virtual Solid::StorageDrive::DriveType | driveType () const =0 |
virtual bool | isHotpluggable () const =0 |
virtual bool | isRemovable () const =0 |
virtual qulonglong | size () const =0 |
virtual QDateTime | timeDetected () const |
virtual QDateTime | timeMediaDetected () const |
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 storage devices.
A storage is anything that can contain a set of volumes (card reader, hard disk, cdrom drive...). It's a particular kind of block device.
Definition at line 25 of file ifaces/storagedrive.h.
Constructor & Destructor Documentation
◆ ~StorageDrive()
|
override |
Destroys a StorageDrive object.
Definition at line 9 of file ifaces/storagedrive.cpp.
Member Function Documentation
◆ bus()
|
pure virtual |
Retrieves the type of physical interface this storage device is connected to.
- Returns
- the bus type
- See also
- Solid::StorageDrive::Bus
◆ driveType()
|
pure virtual |
Retrieves the type of this storage drive.
- Returns
- the drive type
- See also
- Solid::StorageDrive::DriveType
◆ isHotpluggable()
|
pure virtual |
Indicates if this storage device can be plugged or unplugged while the computer is running.
- Returns
- true if this storage supports hotplug, false otherwise
◆ isRemovable()
|
pure virtual |
Indicates if the media contained by this drive can be removed.
For example memory card can be removed from the drive by the user, while partitions can't be removed from hard disks.
- Returns
- true if media can be removed, false otherwise.
◆ size()
|
pure virtual |
Retrieves this drives size in bytes.
- Returns
- the size of this drive
◆ timeDetected()
|
virtual |
Retrieves the time the drive was detected.
Definition at line 13 of file ifaces/storagedrive.cpp.
◆ timeMediaDetected()
|
virtual |
Retrieves the time media in the drive was detected.
Definition at line 18 of file ifaces/storagedrive.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.