API Documentation
Loading...
Searching...
No Matches
DeviceWatcher Class Reference

Watches and alerts the program when a USB device is plugged in or unplugged. More...

#include <DeviceWatcher.h>

Inheritance diagram for DeviceWatcher:
[legend]
Collaboration diagram for DeviceWatcher:
[legend]

Signals

void deviceAdded (const QString &dev)
 
void deviceChanged (const QString &dev)
 
void deviceRemoved (const QString &dev)
 

Public Member Functions

void appendEventReceiver (QObject *receiver)
 
 DeviceWatcher (QObject *parent=0)
 
bool isRunning () const
 
bool start ()
 
bool stop ()
 
 ~DeviceWatcher ()
 

Static Public Member Functions

static DeviceWatcherDefaultWatcher ()
 

Protected Attributes

DeviceWatcherPrivate * d_ptr
 
bool running
 

Detailed Description

Watches and alerts the program when a USB device is plugged in or unplugged.


Constructor & Destructor Documentation

◆ DeviceWatcher()

DeviceWatcher ( QObject * parent = 0)
explicit

◆ ~DeviceWatcher()

Member Function Documentation

◆ appendEventReceiver()

void appendEventReceiver ( QObject * receiver)

◆ DefaultWatcher()

static DeviceWatcher & DefaultWatcher ( )
static

◆ deviceAdded

void deviceAdded ( const QString & dev)
signal

◆ deviceChanged

void deviceChanged ( const QString & dev)
signal

◆ deviceRemoved

void deviceRemoved ( const QString & dev)
signal

◆ isRunning()

bool isRunning ( ) const

◆ start()

bool start ( )

◆ stop()

bool stop ( )

Member Data Documentation

◆ d_ptr

DeviceWatcherPrivate* d_ptr
protected

◆ running

bool running
protected

The documentation for this class was generated from the following file: