I need to list existing USB hub and the devices connected in the hub using my C++ program.
I can able to print the USB Hub and devices connected in hub from terminal using the commands
lsusb lsusb -v
I want to use that feature in my C++ program.
How I can do this programmatically. Is there any C++ classes available to use in my Qt application.