summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdehardwaredevices.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehw/tdehardwaredevices.h')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.h b/tdecore/tdehw/tdehardwaredevices.h
index 7f27681f2..ad3f30c71 100644
--- a/tdecore/tdehw/tdehardwaredevices.h
+++ b/tdecore/tdehw/tdehardwaredevices.h
@@ -81,7 +81,7 @@ typedef TQDict<TDECPUDevice> TDECPUDeviceCache;
class TDECORE_EXPORT TDEHardwareDevices : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -207,19 +207,13 @@ class TDECORE_EXPORT TDEHardwareDevices : public TQObject
/**
* Rescan a hardware device to look for changes
* WARNING: This method can be very expensive. Use with caution!
- * @param hwdevice TDEGenericDevice* with the device to rescan
- */
- void rescanDeviceInformation(TDEGenericDevice* hwdevice);
-
- /**
- * Rescan a hardware device to look for changes
- * WARNING: This method can be very expensive. Use with caution!
* The computational expense can be reduced somewhat if the device tree structure
* has not changed by calling this method with regenerateDeviceTree = false.
* @param hwdevice TDEGenericDevice* with the device to rescan
+ * @param dev udev_device* with the udev device to rescan
* @param regenerateDeviceTree true to update parent/child links in device tree
*/
- void rescanDeviceInformation(TDEGenericDevice* hwdevice, bool regenerateDeviceTree);
+ void rescanDeviceInformation(TDEGenericDevice* hwdevice, udev_device* dev = NULL, bool regenerateDeviceTree = true);
/**
* Enable or disable automatic state updates of triggerless hardware devices
@@ -238,7 +232,7 @@ class TDECORE_EXPORT TDEHardwareDevices : public TQObject
* @param enable a bool specifiying whether or not automatic updates should be enabled
*/
void setBatteryUpdatesEnabled(bool enable);
-
+
/**
* Convert a byte count to human readable form
* @param bytes a double containing the number of bytes
@@ -250,8 +244,6 @@ class TDECORE_EXPORT TDEHardwareDevices : public TQObject
void hardwareAdded(TDEGenericDevice*);
void hardwareRemoved(TDEGenericDevice*);
void hardwareUpdated(TDEGenericDevice*);
- void mountTableModified();
- void hardwareEvent(TDEHardwareEvent::TDEHardwareEvent, TQString uuid);
/**
* @param keycode the code of the key that was pressed/released
@@ -274,7 +266,7 @@ class TDECORE_EXPORT TDEHardwareDevices : public TQObject
private:
TDEGenericDevice *classifyUnknownDevice(udev_device* dev, TDEGenericDevice* existingdevice=0, bool force_full_classification=true);
TDEGenericDevice *classifyUnknownDeviceByExternalRules(udev_device* dev, TDEGenericDevice* existingdevice=0, bool classifySubDevices=false);
- void updateExistingDeviceInformation(TDEGenericDevice* existingdevice, udev_device* dev=NULL);
+ void updateExistingDeviceInformation(TDEGenericDevice *device, udev_device *dev=NULL);
void updateParentDeviceInformation();
void updateParentDeviceInformation(TDEGenericDevice* hwdevice);
@@ -314,6 +306,7 @@ class TDECORE_EXPORT TDEHardwareDevices : public TQObject
TDEDeviceIDMap* dpy_id_map;
TDECPUDeviceCache m_cpuByPathCache;
+ TQStringList m_unclassifiedDevices;
friend class TDEGenericDevice;
friend class TDEStorageDevice;