freebsd-ports/x11/kdebase4/files/patch-kioslave_media_kdedmodule_fstabbackend.h
Michael Nottebrock 4bdac311d9 Fix some of the issues in the media:/ kioslave. proc filesystems should no
longer appear in the list, numbering of NFS filesystems should be okay now
and removable media should be mountable, unmountable and browseable - if
the user running KDE can mount them in the first place (i.e. vfs.usermount
and mountpoint ownership still required).

Obtained from: KDE SVN
2005-07-12 13:53:12 +00:00

38 lines
861 B
C++

--- kioslave/media/kdedmodule/fstabbackend.h
+++ kioslave/media/kdedmodule/fstabbackend.h
@@ -24,6 +24,10 @@
#include <qobject.h>
#include <qstringlist.h>
+#ifdef Q_OS_FREEBSD
+#include <qtimer.h>
+#endif
+
class FstabBackend : public QObject, public BackendBase
{
Q_OBJECT
@@ -38,17 +42,20 @@
QString &label);
private slots:
void slotDirty(const QString &path);
-
-private:
void handleFstabChange();
void handleMtabChange();
+private:
static QString generateId(const QString &devNode,
const QString &mountPoint);
- static QString generateName(const QString &devNode);
+ static QString generateName(const QString &devNode,
+ const QString &fsType);
QStringList m_mtabIds;
QStringList m_fstabIds;
+#ifdef Q_OS_FREEBSD
+ QTimer m_mtabTimer;
+#endif
};
#endif