diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-03-29 22:02:21 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-03-29 22:02:21 -0500 |
commit | fc3c24634ee8e44e9c27be14d4189ff3e4256f6d (patch) | |
tree | 70215a53ea70b9faac1ba83a9d96f000030c63ba /tdecore/tdehardwaredevices.h | |
parent | 513dce7c027b6e60627d4ff6d97bc4e9fffcb060 (diff) | |
download | tdelibs-fc3c24634ee8e44e9c27be14d4189ff3e4256f6d.tar.gz tdelibs-fc3c24634ee8e44e9c27be14d4189ff3e4256f6d.zip |
Add new lockDriveMedia method to TDE hardware manager
Diffstat (limited to 'tdecore/tdehardwaredevices.h')
-rw-r--r-- | tdecore/tdehardwaredevices.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tdecore/tdehardwaredevices.h b/tdecore/tdehardwaredevices.h index 0363596e4..1f41f6267 100644 --- a/tdecore/tdehardwaredevices.h +++ b/tdecore/tdehardwaredevices.h @@ -653,6 +653,14 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice */ bool checkDiskStatus(TDEDiskDeviceStatus::TDEDiskDeviceStatus sf); + /** + * @param TRUE to engage media lock, FALSE to disable it + * @return TRUE on success, FALSE on failure + * + * This method currently works on CD-ROM drives and similar devices + */ + bool lockDriveMedia(bool lock); + protected: /** * @param a TQString with the disk or partition label, if any |