diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-10-17 10:40:32 +0800 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-10-17 10:48:31 +0800 |
commit | 37400097193723a713b23e668c8877e27a8cdbb1 (patch) | |
tree | 81d0db0df5b9f24c99b0a6441262fd4d0c5390e3 /tdeioslave/media/mounthelper/tdeio_media_mounthelper.h | |
parent | 800775a5f1d7ce91cd1622710f231890abdd150b (diff) | |
download | tdebase-37400097193723a713b23e668c8877e27a8cdbb1.tar.gz tdebase-37400097193723a713b23e668c8877e27a8cdbb1.zip |
tdeioslave media: safe removal and locking are now avaiable also for
unlocked and mounted medium.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeioslave/media/mounthelper/tdeio_media_mounthelper.h')
-rw-r--r-- | tdeioslave/media/mounthelper/tdeio_media_mounthelper.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tdeioslave/media/mounthelper/tdeio_media_mounthelper.h b/tdeioslave/media/mounthelper/tdeio_media_mounthelper.h index 60b6c3379..916cf3d30 100644 --- a/tdeioslave/media/mounthelper/tdeio_media_mounthelper.h +++ b/tdeioslave/media/mounthelper/tdeio_media_mounthelper.h @@ -37,13 +37,22 @@ public: MountHelper(); private: - const Medium findMedium(const KURL &url); - void invokeEject(const TQString &device, bool quiet=false); TQString m_errorStr; TQString m_mediumId; - Dialog *dialog; + Dialog *m_dialog; + DCOPRef m_mediamanager; + + const Medium findMedium(const TQString &device); void error(); + void mount(const Medium &medium); + void unmount(const Medium &medium); + void unlock(const Medium &medium); + void lock(const Medium &medium); + void eject(const TQString &device, bool quiet=false); + void safeRemoval(const Medium &medium); + void releaseHolders(const Medium &medium, bool handleThis = false); + private slots: void slotSendPassword(); void slotCancel(); |