diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-02 16:15:01 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-07-08 10:33:34 +0900 |
commit | bd9913481762ac2dd5677479197c7ed4c2152d5e (patch) | |
tree | 59723f3f8ac2b8414076a8c43c857a044cdb0ca5 /tdeioslave/media/mediamanager/tdehardwarebackend.cpp | |
parent | b4754b0e6fc213e0880947cb2c01dfab834fa264 (diff) | |
download | tdebase-bd9913481762ac2dd5677479197c7ed4c2152d5e.tar.gz tdebase-bd9913481762ac2dd5677479197c7ed4c2152d5e.zip |
Renamed methods decrypt/undecrypt to unlock/lock.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeioslave/media/mediamanager/tdehardwarebackend.cpp')
-rw-r--r-- | tdeioslave/media/mediamanager/tdehardwarebackend.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp index c228caf71..02971639d 100644 --- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp +++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp @@ -55,7 +55,7 @@ TDEBackend::TDEBackend(MediaList &list, TQObject* parent) : TQObject() , BackendBase(list) - , m_decryptDialog(0) + , m_unlockDialog(0) , m_parent(parent) { // Initialize the TDE device manager @@ -929,7 +929,7 @@ TQStringList TDEBackend::mountoptions(const TQString &name) } if (medium->isEncrypted()) { - // if not decrypted yet then there are no mountoptions + // if not unlocked yet then there are no mountoptions return TQStringList(); } @@ -1177,7 +1177,7 @@ bool TDEBackend::setMountoptions(const TQString &name, const TQStringList &optio } void TDEBackend::slotPasswordReady() { - m_decryptionPassword = m_decryptDialog->getPassword(); + m_decryptionPassword = m_unlockDialog->getPassword(); m_decryptPasswordValid = true; } @@ -1267,22 +1267,22 @@ TQStringVariantMap TDEBackend::mount(const Medium *medium) while (continue_trying_to_decrypt == true) { m_decryptPasswordValid = false; - m_decryptDialog = new Dialog(sdevice->deviceNode(), iconName); - m_decryptDialog->show(); + m_unlockDialog = new Dialog(sdevice->deviceNode(), iconName); + m_unlockDialog->show(); - connect(m_decryptDialog, TQT_SIGNAL (user1Clicked()), this, TQT_SLOT (slotPasswordReady())); - connect(m_decryptDialog, TQT_SIGNAL (cancelClicked()), this, TQT_SLOT (slotPasswordCancel())); - connect(this, TQT_SIGNAL (signalDecryptionPasswordError(TQString)), m_decryptDialog, TQT_SLOT (slotDialogError(TQString))); + connect(m_unlockDialog, TQT_SIGNAL (user1Clicked()), this, TQT_SLOT (slotPasswordReady())); + connect(m_unlockDialog, TQT_SIGNAL (cancelClicked()), this, TQT_SLOT (slotPasswordCancel())); + connect(this, TQT_SIGNAL (signalDecryptionPasswordError(TQString)), m_unlockDialog, TQT_SLOT (slotDialogError(TQString))); while (m_decryptPasswordValid == false) { tqApp->processEvents(); } - m_decryptDialog->setEnabled(false); + m_unlockDialog->setEnabled(false); tqApp->processEvents(); if (m_decryptionPassword.isNull()) { - delete m_decryptDialog; + delete m_unlockDialog; result["errStr"] = i18n("Decryption aborted"); result["result"] = false; return result; @@ -1317,7 +1317,7 @@ TQStringVariantMap TDEBackend::mount(const Medium *medium) if (mountResult.contains("retCode") && mountResult["retCode"].toInt() == 25600) { // Probable LUKS failure // Retry - m_decryptDialog->setEnabled(true); + m_unlockDialog->setEnabled(true); continue_trying_to_decrypt = true; } else { @@ -1334,7 +1334,7 @@ TQStringVariantMap TDEBackend::mount(const Medium *medium) continue_trying_to_decrypt = false; } - delete m_decryptDialog; + delete m_unlockDialog; } } } |