Solid::Ifaces::StorageDrive

Search for usage in LXR

Solid::Ifaces::StorageDrive Class Referenceabstract

#include <storagedrive.h>

Inheritance diagram for Solid::Ifaces::StorageDrive:

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

Solid::Ifaces::StorageDrive::~StorageDrive ( )
override

Destroys a StorageDrive object.

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

Member Function Documentation

◆ bus()

virtual Solid::StorageDrive::Bus Solid::Ifaces::StorageDrive::bus ( ) const
pure virtual

Retrieves the type of physical interface this storage device is connected to.

Returns
the bus type
See also
Solid::StorageDrive::Bus

◆ driveType()

virtual Solid::StorageDrive::DriveType Solid::Ifaces::StorageDrive::driveType ( ) const
pure virtual

Retrieves the type of this storage drive.

Returns
the drive type
See also
Solid::StorageDrive::DriveType

◆ isHotpluggable()

virtual bool Solid::Ifaces::StorageDrive::isHotpluggable ( ) const
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()

virtual bool Solid::Ifaces::StorageDrive::isRemovable ( ) const
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()

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

Retrieves this drives size in bytes.

Returns
the size of this drive

◆ timeDetected()

QDateTime Solid::Ifaces::StorageDrive::timeDetected ( ) const
virtual

Retrieves the time the drive was detected.

Definition at line 13 of file ifaces/storagedrive.cpp.

◆ timeMediaDetected()

QDateTime Solid::Ifaces::StorageDrive::timeMediaDetected ( ) const
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.