diff options
Diffstat (limited to 'src/platformsupport/devicediscovery/qdevicediscovery_p.h')
-rw-r--r-- | src/platformsupport/devicediscovery/qdevicediscovery_p.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/platformsupport/devicediscovery/qdevicediscovery_p.h b/src/platformsupport/devicediscovery/qdevicediscovery_p.h index 5485b73fd7..0e21118324 100644 --- a/src/platformsupport/devicediscovery/qdevicediscovery_p.h +++ b/src/platformsupport/devicediscovery/qdevicediscovery_p.h @@ -44,8 +44,9 @@ #include <QObject> #include <QSocketNotifier> +#include <QStringList> -#ifndef QT_NO_LIBUDEV +#ifdef QDEVICEDISCOVERY_UDEV #include <libudev.h> #endif @@ -88,13 +89,13 @@ signals: void deviceDetected(const QString &deviceNode); void deviceRemoved(const QString &deviceNode); -#ifndef QT_NO_LIBUDEV +#ifdef QDEVICEDISCOVERY_UDEV private slots: void handleUDevNotification(); #endif private: -#ifndef QT_NO_LIBUDEV +#ifdef QDEVICEDISCOVERY_UDEV QDeviceDiscovery(QDeviceTypes types, struct udev *udev, QObject *parent = 0); bool checkDeviceType(struct udev_device *dev); #else @@ -104,7 +105,7 @@ private: QDeviceTypes m_types; -#ifndef QT_NO_LIBUDEV +#ifdef QDEVICEDISCOVERY_UDEV void startWatching(); void stopWatching(); |