From ce3d9531b62414fd17ccb702809a18810da16de1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 8 Feb 2022 10:46:00 +0900 Subject: Removed HAL dependant code. Signed-off-by: Michele Calgaro --- src/k3bapplication.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/k3bapplication.cpp') diff --git a/src/k3bapplication.cpp b/src/k3bapplication.cpp index f3fefb1..f7483da 100644 --- a/src/k3bapplication.cpp +++ b/src/k3bapplication.cpp @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include #include @@ -416,8 +416,8 @@ bool K3bApplication::Core::internalBlockDevice( K3bDevice::Device* dev ) m_deviceBlockMap[dev] = mediaCache()->blockDevice( dev ); } - if( K3bDevice::HalConnection::instance()->lock( dev ) != K3bDevice::HalConnection::org_freedesktop_Hal_Success ) - kdDebug() << "(K3bInterferingSystemsHandler) HAL lock failed." << endl; + if( K3bDevice::Connection::instance()->lock( dev ) != K3bDevice::Connection::ErrorCodes::Success ) + kdDebug() << "(K3bInterferingSystemsHandler) lock failed." << endl; // // Check if the device is in use @@ -439,7 +439,7 @@ void K3bApplication::Core::internalUnblockDevice( K3bDevice::Device* dev ) m_deviceBlockMap.erase( dev ); } - K3bDevice::HalConnection::instance()->unlock( dev ); + K3bDevice::Connection::instance()->unlock( dev ); K3bCore::internalUnblockDevice( dev ); } -- cgit v1.2.3