DeviceNotifier Class Reference
from PyKDE4.solid import *
Inherits: QObject
Namespace: Solid
Detailed Description
This class allow to query the underlying system to obtain information about the hardware available.
It's the unique entry point for hardware discovery. Applications should use it to find devices, or to be notified about hardware changes.
Note that it's implemented as a singleton and encapsulates the backend logic.
Signals | |
deviceAdded (QString udi) | |
deviceRemoved (QString udi) | |
Methods | |
deviceAdded (self, QString udi) | |
deviceRemoved (self, QString udi) | |
Static Methods | |
Solid.DeviceNotifier | instance () |
Method Documentation
deviceAdded | ( | self, | ||
QString | udi | |||
) |
This signal is emitted when a new device appear in the underlying system.
- Parameters:
-
udi the new device UDI
- Signal syntax:
QObject.connect(source, SIGNAL("deviceAdded(const QString&)"), target_slot)
deviceRemoved | ( | self, | ||
QString | udi | |||
) |
This signal is emitted when a device disappear from the underlying system.
- Parameters:
-
udi the old device UDI
- Signal syntax:
QObject.connect(source, SIGNAL("deviceRemoved(const QString&)"), target_slot)
Solid.DeviceNotifier instance | ( | ) |