summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehardwaredevices.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-31 02:49:25 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-31 02:49:25 -0500
commit9dff87031ae97e12b6b35e74b894b9af89f15975 (patch)
tree9f9aed9d0b6a5500a49f725f5f52e97a92906a14 /tdecore/tdehardwaredevices.h
parentb28ee4be1cca3be800ba35010b126dd49d2eb49e (diff)
downloadtdelibs-9dff87031ae97e12b6b35e74b894b9af89f15975.tar.gz
tdelibs-9dff87031ae97e12b6b35e74b894b9af89f15975.zip
Conver TDE hardware library to fully event driven operation
Diffstat (limited to 'tdecore/tdehardwaredevices.h')
-rw-r--r--tdecore/tdehardwaredevices.h13
1 files changed, 8 insertions, 5 deletions
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 <tqobject.h>
#include <tqstring.h>
#include <tqptrlist.h>
#include <tqstringlist.h>
-#include <tqtimer.h>
#include "tdelibs_export.h"
// udev includes
@@ -419,6 +419,8 @@ class TDECORE_EXPORT TDEStorageDevice : public TDEGenericDevice
typedef TQPtrList<TDEGenericDevice> 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