From 03d905ea268bd893030264b0e7b5b98f783c58ff Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 31 Mar 2012 20:18:41 -0500 Subject: Initial merge of alpha quality HAL replacement backend for the media kioslave Pass the WITH_TDEHWLIB CMake option to enable this backend --- kioslave/media/mediaimpl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'kioslave/media/mediaimpl.cpp') diff --git a/kioslave/media/mediaimpl.cpp b/kioslave/media/mediaimpl.cpp index f8d298e27..ccb9af0a2 100644 --- a/kioslave/media/mediaimpl.cpp +++ b/kioslave/media/mediaimpl.cpp @@ -34,6 +34,8 @@ #include "medium.h" +#include + MediaImpl::MediaImpl() : TQObject(), DCOPObject("mediaimpl"), mp_mounting(0L) { @@ -226,13 +228,15 @@ bool MediaImpl::ensureMediumMounted(Medium &medium) m_lastErrorMessage = i18n("No such medium."); return false; } - + +#ifdef COMPILE_HALBACKEND if ( medium.isEncrypted() && medium.clearDeviceUdi().isEmpty() ) { m_lastErrorCode = KIO::ERR_COULD_NOT_MOUNT; m_lastErrorMessage = i18n("The drive is encrypted."); return false; } +#endif // COMPILE_HALBACKEND if ( medium.needMounting() ) { -- cgit v1.2.1