diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-10-10 14:40:20 +0800 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-10-10 14:40:20 +0800 |
commit | 9bc16841d1d0388001b26d00700456cd9263bd57 (patch) | |
tree | 87286af93443ad2386d4b7ecf3003805eb11d5a8 /tdecore/tdehw/tdestoragedevice.h | |
parent | 33794c4ec3572327ac077e272523234aac464aa2 (diff) | |
download | tdelibs-9bc16841d1d0388001b26d00700456cd9263bd57.tar.gz tdelibs-9bc16841d1d0388001b26d00700456cd9263bd57.zip |
Fixed mounting and unmounting of mapped storage devices.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdecore/tdehw/tdestoragedevice.h')
-rw-r--r-- | tdecore/tdehw/tdestoragedevice.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdestoragedevice.h b/tdecore/tdehw/tdestoragedevice.h index 88991315e..47ea4debc 100644 --- a/tdecore/tdehw/tdestoragedevice.h +++ b/tdecore/tdehw/tdestoragedevice.h @@ -194,6 +194,16 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice TQString diskUUID(); /** + * @return a TQString with the device mapped name, if any + */ + TQString mappedName(); + + /** + * Find and store the alternative mapped name of a mapped device + */ + void updateMappedName(); + + /** * @return an OR-ed combination of TDEDiskDeviceType::TDEDiskDeviceType type flags */ TDEDiskDeviceType::TDEDiskDeviceType diskType(); @@ -425,7 +435,7 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice * * This method is non-portable, so be careful! */ - void internalSetDeviceNode(TQString sn); + void internalSetDeviceNode(TQString dn); /** * @param a TQString with the disk or partition label, if any @@ -492,6 +502,7 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice void internalGetLUKSKeySlotStatus(); private: + TQString m_mappedName; // Alternative name for a mapped device TDEDiskDeviceType::TDEDiskDeviceType m_diskType; TDEDiskDeviceStatus::TDEDiskDeviceStatus m_diskStatus; TQString m_diskName; |