diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-10-10 14:03:03 +0800 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-10-10 14:03:03 +0800 |
commit | fe08361f7e4227def5699ee7c911a61b84f5a77b (patch) | |
tree | 56db7658cb70e17e532a55412bc7a93ca51165a2 /tdecore/tdehw/tdestoragedevice.h | |
parent | 014394575603f2c6afe85b17d8f80e1184062951 (diff) | |
download | tdelibs-fe08361f7e4227def5699ee7c911a61b84f5a77b.tar.gz tdelibs-fe08361f7e4227def5699ee7c911a61b84f5a77b.zip |
Added udisks2 support for unlocking/locking of encrypted disks.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdecore/tdehw/tdestoragedevice.h')
-rw-r--r-- | tdecore/tdehw/tdestoragedevice.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdestoragedevice.h b/tdecore/tdehw/tdestoragedevice.h index 6bd39353b..79223d185 100644 --- a/tdecore/tdehw/tdestoragedevice.h +++ b/tdecore/tdehw/tdestoragedevice.h @@ -259,6 +259,22 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice TQStringVariantMap unmountDevice(); /** + * Unlock/decrypt an encrypted storage device + * + * @param a TQString containing the passphrase + * + * @return a TQStringVariantMap object containing information about the operation outcome + */ + TQStringVariantMap unlockDevice(const TQString &passphrase); + + /** + * Lock/encrypt an encrypted storage device + * + * @return a TQStringVariantMap object containing information about the operation outcome + */ + TQStringVariantMap lockDevice(); + + /** * @return a TQString with the mount path, if mounted */ TQString mountPath(); |