From 9dff87031ae97e12b6b35e74b894b9af89f15975 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 31 Mar 2012 02:49:25 -0500 Subject: Conver TDE hardware library to fully event driven operation --- tdecore/tdehardwaredevices.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tdecore/tdehardwaredevices.h') diff --git a/tdecore/tdehardwaredevices.h b/tdecore/tdehardwaredevices.h index 11844fa5c..2b145b9e9 100644 --- a/tdecore/tdehardwaredevices.h +++ b/tdecore/tdehardwaredevices.h @@ -19,10 +19,10 @@ #define _TDEHARDWAREDEVICES_H // TDE includes +#include #include #include #include -#include #include "tdelibs_export.h" // udev includes @@ -419,6 +419,8 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice typedef TQPtrList TDEGenericHardwareList; +class TQSocketNotifier; + class TDECORE_EXPORT TDEHardwareDevices : TQObject { Q_OBJECT @@ -470,8 +472,8 @@ class TDECORE_EXPORT TDEHardwareDevices : TQObject void mountTableModified(); private slots: - void checkForHotPluggedHardware(); - void checkForModifiedMounts(); + void processHotPluggedHardware(); + void processModifiedMounts(); private: TDEGenericDevice *classifyUnknownDevice(udev_device* dev); @@ -479,9 +481,10 @@ class TDECORE_EXPORT TDEHardwareDevices : TQObject struct udev *m_udevStruct; struct udev_monitor *m_udevMonitorStruct; TDEGenericHardwareList m_deviceList; + int m_procMountsFd; - TQTimer* m_devScanTimer; - TQTimer* m_mountScanTimer; + TQSocketNotifier* m_devScanNotifier; + TQSocketNotifier* m_mountScanNotifier; }; #endif \ No newline at end of file -- cgit v1.2.1