Solid

ifaces/storagedrive.h
1 /*
2  SPDX-FileCopyrightText: 2006 Kevin Ottens <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef SOLID_IFACES_STORAGEDRIVE_H
8 #define SOLID_IFACES_STORAGEDRIVE_H
9 
10 #include <solid/devices/ifaces/block.h>
11 #include <solid/storagedrive.h>
12 
13 namespace Solid
14 {
15 namespace Ifaces
16 {
23 class StorageDrive : virtual public Block
24 {
25 public:
29  virtual ~StorageDrive();
30 
38  virtual Solid::StorageDrive::Bus bus() const = 0;
39 
46  virtual Solid::StorageDrive::DriveType driveType() const = 0;
47 
56  virtual bool isRemovable() const = 0;
57 
64  virtual bool isHotpluggable() const = 0;
65 
71  virtual qulonglong size() const = 0;
72 };
73 }
74 }
75 
76 Q_DECLARE_INTERFACE(Solid::Ifaces::StorageDrive, "org.kde.Solid.Ifaces.StorageDrive/0.1")
77 
78 #endif // SOLID_IFACES_STORAGEDRIVE_H
virtual ~StorageDrive()
Destroys a StorageDrive object.
virtual qulonglong size() const =0
Retrieves this drives size in bytes.
DriveType
This enum type defines the type of drive a storage device can be.
virtual bool isHotpluggable() const =0
Indicates if this storage device can be plugged or unplugged while the computer is running...
This device interface is available on block devices.
Definition: ifaces/block.h:23
virtual bool isRemovable() const =0
Indicates if the media contained by this drive can be removed.
virtual Solid::StorageDrive::DriveType driveType() const =0
Retrieves the type of this storage drive.
This device interface is available on storage devices.
The single responsibility of this class is to create arguments valid for logind Inhibit call...
Bus
This enum type defines the type of bus a storage device is attached to.
virtual Solid::StorageDrive::Bus bus() const =0
Retrieves the type of physical interface this storage device is connected to.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:50:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.