Skip to content

Qt wrapper around libudev to enumerate and monitor tty subtype devices

Notifications You must be signed in to change notification settings

GregorSuperSamsa/qudev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QUdev

Qt wrapper around the linux libudev library. Used for monitoring and enumerating of tty devices.

Compiling

Add to your .pro file:

LIBS  = -ludev

Usage

#include <QUdev.h>

// Create object 
QUdev udev

// Initialize
udev->initialize()
    
// Set subsystem to monitor
udev->setSubsystem("tty");
        
// Set parent subsystem to monitor
udev->setParentSubsystem("usb");

// Get list of all found devices
udev->getUdevDeviceList();

Realtime monitoring

// Start realtime monitoring of the selected subsystem
udev->startMonitoring();

// Stop realtime monitoring of the selected subsystem
udev->stopMonitoring();

If there is a change in the observed subsystem, a SIGNAL is emitted

udevDeviceFound(QUdev::UdevDevice);

About

Qt wrapper around libudev to enumerate and monitor tty subtype devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published