From 9bc16841d1d0388001b26d00700456cd9263bd57 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 10 Oct 2020 14:40:20 +0800 Subject: Fixed mounting and unmounting of mapped storage devices. Signed-off-by: Michele Calgaro --- tdecore/tdehw/tdestoragedevice.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tdecore/tdehw/tdestoragedevice.h') 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 @@ -193,6 +193,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 */ @@ -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; -- cgit v1.2.1