Changeset View
Changeset View
Standalone View
Standalone View
src/solid/devices/backends/shared/udevqtclient.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
45 | ~Client(); | 45 | ~Client(); | ||
46 | 46 | | |||
47 | QStringList watchedSubsystems() const; | 47 | QStringList watchedSubsystems() const; | ||
48 | void setWatchedSubsystems(const QStringList &subsystemList); | 48 | void setWatchedSubsystems(const QStringList &subsystemList); | ||
49 | 49 | | |||
50 | DeviceList allDevices(); | 50 | DeviceList allDevices(); | ||
51 | DeviceList devicesByProperty(const QString &property, const QVariant &value); | 51 | DeviceList devicesByProperty(const QString &property, const QVariant &value); | ||
52 | DeviceList devicesBySubsystem(const QString &subsystem); | 52 | DeviceList devicesBySubsystem(const QString &subsystem); | ||
53 | /** | ||||
bruns: This definitely needs some documentation
- values in subsystems form a union (ORed)… | |||||
54 | * Returns a list of devices matching any of the given subsystems AND any of the properties. | ||||
55 | * | ||||
56 | * (subsystem1 || subsystem2 || ...) && (property1 || property2 || ...) | ||||
57 | */ | ||||
58 | DeviceList devicesBySubsystemsAndProperties(const QStringList &subsystems, const QVariantMap &properties); | ||||
53 | Device deviceByDeviceFile(const QString &deviceFile); | 59 | Device deviceByDeviceFile(const QString &deviceFile); | ||
54 | Device deviceBySysfsPath(const QString &sysfsPath); | 60 | Device deviceBySysfsPath(const QString &sysfsPath); | ||
55 | Device deviceBySubsystemAndName(const QString &subsystem, const QString &name); | 61 | Device deviceBySubsystemAndName(const QString &subsystem, const QString &name); | ||
56 | 62 | | |||
57 | Q_SIGNALS: | 63 | Q_SIGNALS: | ||
58 | void deviceAdded(const UdevQt::Device &dev); | 64 | void deviceAdded(const UdevQt::Device &dev); | ||
59 | void deviceRemoved(const UdevQt::Device &dev); | 65 | void deviceRemoved(const UdevQt::Device &dev); | ||
60 | void deviceChanged(const UdevQt::Device &dev); | 66 | void deviceChanged(const UdevQt::Device &dev); | ||
Show All 12 Lines |
This definitely needs some documentation
i.e. in the camera case, (usb || dvb || tty) && (ID_GPHOTO2==1)