Solid::Ifaces::StorageAccess
#include <storageaccess.h>
Public Member Functions | |
~StorageAccess () override | |
virtual bool | canCheck () const |
virtual bool | canRepair () const |
virtual bool | check () |
virtual QString | filePath () const =0 |
virtual bool | isAccessible () const =0 |
virtual bool | isEncrypted () const =0 |
virtual bool | isIgnored () const =0 |
virtual bool | repair () |
virtual bool | setup ()=0 |
virtual bool | teardown ()=0 |
Public Member Functions inherited from Solid::Ifaces::DeviceInterface | |
virtual | ~DeviceInterface () |
Protected Member Functions | |
virtual void | accessibilityChanged (bool accessible, const QString &udi)=0 |
virtual void | repairDone (Solid::ErrorType error, QVariant resultData, const QString &udi) |
virtual void | repairRequested (const QString &udi) |
virtual void | setupDone (Solid::ErrorType error, QVariant resultData, const QString &udi)=0 |
virtual void | setupRequested (const QString &udi)=0 |
virtual void | teardownDone (Solid::ErrorType error, QVariant resultData, const QString &udi)=0 |
virtual void | teardownRequested (const QString &udi)=0 |
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/storageaccess.h.
Constructor & Destructor Documentation
◆ ~StorageAccess()
|
override |
Destroys a StorageVolume object.
Definition at line 9 of file ifaces/storageaccess.cpp.
Member Function Documentation
◆ accessibilityChanged()
|
protectedpure virtual |
This signal is emitted when the mount state of this device has changed.
- Parameters
-
newState true if the volume is mounted, false otherwise udi the UDI of the volume
◆ canCheck()
|
virtual |
Indicates if this volume can check for filesystem errors.
- Returns
- true if the volume is can be checked
Definition at line 13 of file ifaces/storageaccess.cpp.
◆ canRepair()
|
virtual |
Indicates if this volume can repair filesystem errors.
- Returns
- true if the volume is can be repaired
Definition at line 23 of file ifaces/storageaccess.cpp.
◆ check()
|
virtual |
Checks the filesystem for consistency avoiding any modifications or repairs.
Mounted or unsupported filesystems will result in an error.
- Returns
- Whether the filesystem is undamaged.
Definition at line 18 of file ifaces/storageaccess.cpp.
◆ filePath()
|
pure virtual |
Retrieves the absolute path of this volume mountpoint.
- Returns
- the absolute path to the mount point if the volume is mounted, QString() otherwise
◆ isAccessible()
|
pure virtual |
Indicates if this volume is mounted.
- Returns
- true if the volume is mounted
◆ isEncrypted()
|
pure virtual |
Checks if source of the storage is encrypted.
- Returns
- true if storage is encrypted one
◆ 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
◆ repair()
|
virtual |
Tries to repair the filesystem.
Mounted or unsupported filesystems will result in an error.
- Returns
- Whether the filesystem could be successfully repaired
Definition at line 28 of file ifaces/storageaccess.cpp.
◆ repairDone()
|
protectedvirtual |
This signal is emitted when the attempted repaired of this device is completed.
- Parameters
-
error type of error that occurred, if any errorData more information about the error, if any udi the UDI of the volume
Definition at line 38 of file ifaces/storageaccess.cpp.
◆ repairRequested()
|
protectedvirtual |
This signal is emitted when a repair of this device is requested.
The signal might be spontaneous i.e. it can be triggered by another process.
- Parameters
-
udi the UDI of the volume
Definition at line 33 of file ifaces/storageaccess.cpp.
◆ setup()
|
pure virtual |
Mounts the volume.
- Returns
- the job handling the operation
◆ setupDone()
|
protectedpure virtual |
This signal is emitted when the mount state of this device has changed.
- Parameters
-
newState true if the volume is mounted, false otherwise udi the UDI of the volume
◆ setupRequested()
|
protectedpure virtual |
This signal is emitted when a setup of this device is requested.
The signal might be spontaneous i.e. it can be triggered by another process.
- Parameters
-
udi the UDI of the volume
◆ teardown()
|
pure virtual |
Unmounts the volume.
- Returns
- the job handling the operation
◆ teardownDone()
|
protectedpure virtual |
This signal is emitted when the mount state of this device has changed.
- Parameters
-
newState true if the volume is mounted, false otherwise udi the UDI of the volume
◆ teardownRequested()
|
protectedpure virtual |
This signal is emitted when a teardown of this device is requested.
The signal might be spontaneous i.e. it can be triggered by another process
- Parameters
-
udi the UDI of the volume
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:01:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.