KIO
Go to the documentation of this file.
34 class KAutoMountPrivate
38 const QString &desktopFile,
bool showFileManagerWindow)
39 : q(qq), m_strDevice(device), m_desktopFile(desktopFile), m_mountPoint(mountPoint),
40 m_bShowFilemanagerWindow(showFileManagerWindow)
47 bool m_bShowFilemanagerWindow;
49 void slotResult(
KJob * );
54 bool _show_filemanager_window )
55 : d(new KAutoMountPrivate(this, _device, _mountpoint, _desktopFile, _show_filemanager_window))
58 connect( job, SIGNAL(result(
KJob*)),
this, SLOT(slotResult(
KJob*)) );
61 KAutoMount::~KAutoMount()
66 void KAutoMountPrivate::slotResult(
KJob * job )
79 mp = mountPoints.findByPath(m_mountPoint);
83 kWarning(7015) << m_strDevice <<
"was correctly mounted, but findByDevice() didn't find it."
84 <<
"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";
86 KUrl url(mp->mountPoint());
88 if ( m_bShowFilemanagerWindow ) {
96 kDebug(7015) <<
" mount finished : updating " << m_desktopFile;
107 class KAutoUnmountPrivate
111 : q(qq), m_desktopFile( _desktopFile ), m_mountpoint( _mountpoint )
117 void slotResult(
KJob * job );
121 : d( new KAutoUnmountPrivate(this, _mountpoint, _desktopFile) )
124 connect( job, SIGNAL(result(
KJob*)),
this, SLOT(slotResult(
KJob*)) );
127 void KAutoUnmountPrivate::slotResult(
KJob * job )
129 if ( job->
error() ) {
136 kDebug(7015) <<
"unmount finished : updating " << m_desktopFile;
138 dfURL.
setPath( m_desktopFile );
146 KUrl mp( m_mountpoint );
155 KAutoUnmount::~KAutoUnmount()
160 #include "kautomount.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Thu May 23 2013 14:11:14 by
doxygen 1.8.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.