KIO
Go to the documentation of this file.
27 #include <sys/mount.h>
35 class KAutoMountPrivate
39 const QString &desktopFile,
bool showFileManagerWindow)
40 : q(qq), m_strDevice(device), m_desktopFile(desktopFile), m_mountPoint(mountPoint),
41 m_bShowFilemanagerWindow(showFileManagerWindow)
48 bool m_bShowFilemanagerWindow;
50 void slotResult(
KJob * );
55 bool _show_filemanager_window )
56 : d(new KAutoMountPrivate(this, _device, _mountpoint, _desktopFile, _show_filemanager_window))
59 connect( job, SIGNAL(result(
KJob*)),
this, SLOT(slotResult(
KJob*)) );
62 KAutoMount::~KAutoMount()
67 void KAutoMountPrivate::slotResult(
KJob * job )
80 mp = mountPoints.findByPath(m_mountPoint);
84 kWarning(7015) << m_strDevice <<
"was correctly mounted, but findByDevice() didn't find it."
85 <<
"This looks like a bug, please report it on http://bugs.kde.org, together with your /etc/fstab and /etc/mtab lines for this device";
87 KUrl url(mp->mountPoint());
89 if ( m_bShowFilemanagerWindow ) {
97 kDebug(7015) <<
" mount finished : updating " << m_desktopFile;
108 class KAutoUnmountPrivate
112 : q(qq), m_desktopFile( _desktopFile ), m_mountpoint( _mountpoint )
118 void slotResult(
KJob * job );
122 : d( new KAutoUnmountPrivate(this, _mountpoint, _desktopFile) )
125 connect( job, SIGNAL(result(
KJob*)),
this, SLOT(slotResult(
KJob*)) );
128 void KAutoUnmountPrivate::slotResult(
KJob * job )
130 if ( job->
error() ) {
137 kDebug(7015) <<
"unmount finished : updating " << m_desktopFile;
139 dfURL.
setPath( m_desktopFile );
147 KUrl mp( m_mountpoint );
156 KAutoUnmount::~KAutoUnmount()
161 #include "kautomount.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:27:31 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.