diff options
author | Michele Calgaro <[email protected]> | 2020-11-21 16:35:47 +0800 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-11-21 16:35:47 +0800 |
commit | 07200a5475b2c7634d1c7b3d28d6cdbdca653bd7 (patch) | |
tree | 62be9e12a856c4c75050aee04941e18b486be70f /tdecore/tdehw/tdestoragedevice.h | |
parent | b44ff1c0a99422f3332dfbdec6492cfb3cdde7ef (diff) | |
download | tdelibs-07200a5475b2c7634d1c7b3d28d6cdbdca653bd7.tar.gz tdelibs-07200a5475b2c7634d1c7b3d28d6cdbdca653bd7.zip |
tdehw lib: reworked code for eject operation to support return type TQStringVariantMap.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdecore/tdehw/tdestoragedevice.h')
-rw-r--r-- | tdecore/tdehw/tdestoragedevice.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/tdecore/tdehw/tdestoragedevice.h b/tdecore/tdehw/tdestoragedevice.h index 47ea4debc..61ef6daad 100644 --- a/tdecore/tdehw/tdestoragedevice.h +++ b/tdecore/tdehw/tdestoragedevice.h @@ -99,17 +99,17 @@ inline TDEDiskDeviceType operator~(TDEDiskDeviceType a) namespace TDEDiskDeviceStatus { enum TDEDiskDeviceStatus { - Null = 0x00000000, - Mountable = 0x00000001, - Removable = 0x00000002, - Inserted = 0x00000004, - Blank = 0x00000008, - UsedByDevice = 0x00000010, - UsesDevice = 0x00000020, - ContainsFilesystem = 0x00000040, - Hotpluggable = 0x00000080, - Hidden = 0x00000100, - Other = 0x80000000 + Null = 0x00000000, + Mountable = 0x00000001, + Removable = 0x00000002, + Inserted = 0x00000004, + Blank = 0x00000008, + UsedByDevice = 0x00000010, + UsesDevice = 0x00000020, + ContainsFilesystem = 0x00000040, + Hotpluggable = 0x00000080, + Hidden = 0x00000100, + Other = 0x80000000 }; inline TDEDiskDeviceStatus operator|(TDEDiskDeviceStatus a, TDEDiskDeviceStatus b) @@ -130,11 +130,11 @@ inline TDEDiskDeviceStatus operator~(TDEDiskDeviceStatus a) namespace TDELUKSKeySlotStatus { enum TDELUKSKeySlotStatus { - Invalid = 0x00000000, - Inactive = 0x00000001, - Active = 0x00000002, - Last = 0x00000004, - Other = 0x80000000 + Invalid = 0x00000000, + Inactive = 0x00000001, + Active = 0x00000002, + Last = 0x00000004, + Other = 0x80000000 }; inline TDELUKSKeySlotStatus operator|(TDELUKSKeySlotStatus a, TDELUKSKeySlotStatus b) @@ -157,13 +157,13 @@ typedef TQValueList<TDELUKSKeySlotStatus::TDELUKSKeySlotStatus> TDELUKSKeySlotSt namespace TDELUKSResult { enum TDELUKSResult { - Invalid = 0x00000000, - Success = 0x00000001, - LUKSNotSupported = 0x00000002, - LUKSNotFound = 0x00000003, - InvalidKeyslot = 0x00000004, - KeyslotOpFailed = 0x00000005, - Other = 0x80000000 + Invalid = 0x00000000, + Success = 0x00000001, + LUKSNotSupported = 0x00000002, + LUKSNotFound = 0x00000003, + InvalidKeyslot = 0x00000004, + KeyslotOpFailed = 0x00000005, + Other = 0x80000000 }; }; @@ -347,7 +347,7 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice * * This method currently works on all removable storage devices */ - bool ejectDrive(); + TQStringVariantMap ejectDrive(); /** * @param path Full path to arbitrary file or directory |