File indexing completed on 2024-06-09 04:00:42
0001 /* 0002 SPDX-FileCopyrightText: 2010 Michael Zanetti <mzanetti@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef UDISKSSTORAGEVOLUME_H 0008 #define UDISKSSTORAGEVOLUME_H 0009 0010 #include "udisksblock.h" 0011 #include <ifaces/storagevolume.h> 0012 0013 namespace Solid 0014 { 0015 namespace Backends 0016 { 0017 namespace UDisks2 0018 { 0019 class StorageVolume : public Block, virtual public Solid::Ifaces::StorageVolume 0020 { 0021 Q_OBJECT 0022 Q_INTERFACES(Solid::Ifaces::StorageVolume) 0023 0024 public: 0025 StorageVolume(Device *device); 0026 ~StorageVolume() override; 0027 0028 QString encryptedContainerUdi() const override; 0029 qulonglong size() const override; 0030 QString uuid() const override; 0031 QString label() const override; 0032 QString fsType() const override; 0033 Solid::StorageVolume::UsageType usage() const override; 0034 bool isIgnored() const override; 0035 }; 0036 0037 } 0038 } 0039 } 0040 0041 #endif // UDISKS2STORAGEVOLUME_H