diff options
author | Michele Calgaro <[email protected]> | 2019-08-24 18:25:55 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-10-17 10:48:28 +0800 |
commit | d34f23f403e82f352e4c5d4e20966bcba2bec8c6 (patch) | |
tree | a1c02a3f85d2cf018f279bca095d5012702701e5 /tdeioslave/media/mediamanager/fstabbackend.cpp | |
parent | ebc4784c4fddeb307f4bc2ab83b4189312f24f3b (diff) | |
download | tdebase-d34f23f403e82f352e4c5d4e20966bcba2bec8c6.tar.gz tdebase-d34f23f403e82f352e4c5d4e20966bcba2bec8c6.zip |
tdeioslave media: clean up code related to medium mountable state in preparation for further work.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdeioslave/media/mediamanager/fstabbackend.cpp')
-rw-r--r-- | tdeioslave/media/mediamanager/fstabbackend.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tdeioslave/media/mediamanager/fstabbackend.cpp b/tdeioslave/media/mediamanager/fstabbackend.cpp index 8eca21771..acd1dced2 100644 --- a/tdeioslave/media/mediamanager/fstabbackend.cpp +++ b/tdeioslave/media/mediamanager/fstabbackend.cpp @@ -220,7 +220,11 @@ void FstabBackend::handleMtabChange(bool allowNotification) Medium *m = new Medium(id, name); - m->mountableState(dev, mp, fs, true); + m->setMountable(true); + m->setDeviceNode(dev); + m->setMountPoint(mp); + m->setFsType(fs); + m->setMounted(true); TQString mime, icon, label; guess(dev, mp, fs, true, mime, icon, label); @@ -293,7 +297,11 @@ void FstabBackend::handleFstabChange(bool allowNotification) Medium *m = new Medium(id, id, name); - m->mountableState(dev, mp, fs, false); + m->setMountable(true); + m->setDeviceNode(dev); + m->setMountPoint(mp); + m->setFsType(fs); + m->setMounted(false); TQString mime, icon, label; guess(dev, mp, fs, false, mime, icon, label); |