Solid

ifaces/storagevolume.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_STORAGEVOLUME_H
8 #define SOLID_IFACES_STORAGEVOLUME_H
9 
10 #include <solid/devices/ifaces/block.h>
11 #include <solid/storagevolume.h>
12 
13 namespace Solid
14 {
15 namespace Ifaces
16 {
23 class StorageVolume : virtual public Block
24 {
25 public:
29  virtual ~StorageVolume();
30 
40  virtual bool isIgnored() const = 0;
41 
48  virtual Solid::StorageVolume::UsageType usage() const = 0;
49 
55  virtual QString fsType() const = 0;
56 
62  virtual QString label() const = 0;
63 
74  virtual QString uuid() const = 0;
75 
81  virtual qulonglong size() const = 0;
82 
89  virtual QString encryptedContainerUdi() const = 0;
90 };
91 }
92 }
93 
94 Q_DECLARE_INTERFACE(Solid::Ifaces::StorageVolume, "org.kde.Solid.Ifaces.StorageVolume/0.1")
95 
96 #endif // SOLID_IFACES_STORAGEVOLUME_H
virtual Solid::StorageVolume::UsageType usage() const =0
Retrieves the type of use for this volume (for example filesystem).
UsageType
This enum type defines the how a volume is used.
virtual ~StorageVolume()
Destroys a StorageVolume object.
virtual bool isIgnored() const =0
Indicates if this volume should be ignored by applications.
virtual QString label() const =0
Retrieves this volume label.
This device interface is available on volume devices.
This device interface is available on block devices.
Definition: ifaces/block.h:23
virtual QString uuid() const =0
Retrieves this volume Universal Unique IDentifier (UUID).
virtual QString encryptedContainerUdi() const =0
Retrieves the crypto container UDI of this volume.
The single responsibility of this class is to create arguments valid for logind Inhibit call...
virtual qulonglong size() const =0
Retrieves this volume size in bytes.
virtual QString fsType() const =0
Retrieves the filesystem type of this volume.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Sep 22 2020 22:50:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.