3#include <QtCore/QEvent>
4#include <QtCore/QObject>
7 class DeviceWatcherPrivate;
47 QString
device()
const {
return m_device; }
50 static Type EventType =
static_cast<Type
>(registerEventType());
Watches and alerts the program when a USB device is plugged in or unplugged.
Definition DeviceWatcher.h:12
bool running
Definition DeviceWatcher.h:31
void deviceAdded(const QString &dev)
void deviceRemoved(const QString &dev)
void appendEventReceiver(QObject *receiver)
void deviceChanged(const QString &dev)
DeviceWatcherPrivate * d_ptr
Definition DeviceWatcher.h:32
static DeviceWatcher & DefaultWatcher()
DeviceWatcher(QObject *parent=0)
The event that is triggered when a USB device is plugged in or unplugged.
Definition DeviceWatcher.h:39
QDeviceChangeEvent(Action action, const QString &device)
QString device() const
Definition DeviceWatcher.h:47
Action
Definition DeviceWatcher.h:41
static Type registeredType()
Definition DeviceWatcher.h:48
Action action() const
Definition DeviceWatcher.h:46