diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-03-23 09:56:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-03-23 11:48:38 +0900 |
commit | 40ef766f02ea0e099a3fad77ed7eec519e2d5ec8 (patch) | |
tree | 2691377174181d81f7451ce83543ab83a5b057fc /tdeioslave/media/mediamanager/mediamanager.cpp | |
parent | d048506bb65a3f77102f07f54c7bfc16c80e003e (diff) | |
download | tdebase-40ef766f02ea0e099a3fad77ed7eec519e2d5ec8.tar.gz tdebase-40ef766f02ea0e099a3fad77ed7eec519e2d5ec8.zip |
tdeio media: add releaseHolders parameter to lock/lockByNode dcop calls.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeioslave/media/mediamanager/mediamanager.cpp')
-rw-r--r-- | tdeioslave/media/mediamanager/mediamanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tdeioslave/media/mediamanager/mediamanager.cpp b/tdeioslave/media/mediamanager/mediamanager.cpp index aad9bddf2..dba4c1150 100644 --- a/tdeioslave/media/mediamanager/mediamanager.cpp +++ b/tdeioslave/media/mediamanager/mediamanager.cpp @@ -260,12 +260,12 @@ TQStringVariantMap MediaManager::unlock(const TQString &uid, const TQString &pas return result; } -TQStringVariantMap MediaManager::lock(const TQString &uid) +TQStringVariantMap MediaManager::lock(const TQString &uid, bool releaseHolders) { #ifdef COMPILE_TDEHARDWAREBACKEND if (m_tdebackend) { - return m_tdebackend->lock(uid); + return m_tdebackend->lock(uid, releaseHolders); } #endif TQStringVariantMap result; @@ -324,7 +324,7 @@ TQStringVariantMap MediaManager::unlockByNode(const TQString &deviceNode, const return unlock(medium->id(), password); } -TQStringVariantMap MediaManager::lockByNode(const TQString &deviceNode) +TQStringVariantMap MediaManager::lockByNode(const TQString &deviceNode, bool releaseHolders) { const Medium *medium = m_mediaList.findByNode(deviceNode); if (!medium) { @@ -333,7 +333,7 @@ TQStringVariantMap MediaManager::lockByNode(const TQString &deviceNode) result["result"] = false; return result; } - return lock(medium->id()); + return lock(medium->id(), releaseHolders); } TQStringVariantMap MediaManager::ejectByNode(const TQString &deviceNode) |