diff options
author | Niklas Goby | 2011-04-11 00:51:09 +0200 |
---|---|---|
committer | Niklas Goby | 2011-04-11 00:51:09 +0200 |
commit | 3ae5d81d6ff7c51ad2fc107b838632648811fbb9 (patch) | |
tree | d65070df8a2eff5edb98025c0dd678de26e18f05 /src/sysinfo.h | |
parent | inserted the sysinfolibsysfs methods intho the sysinfo class (diff) | |
download | fbgui-3ae5d81d6ff7c51ad2fc107b838632648811fbb9.tar.gz fbgui-3ae5d81d6ff7c51ad2fc107b838632648811fbb9.tar.xz fbgui-3ae5d81d6ff7c51ad2fc107b838632648811fbb9.zip |
added method into sysInfo class for receiving informations
about usb devices. name of the method is getVendorProductSerialNumber()
call with: getInfos("usb")
return json formated qstring [{"vendorid":"..", "productid":"..", "serialnumber":".."}, .. ]
Diffstat (limited to 'src/sysinfo.h')
-rw-r--r-- | src/sysinfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sysinfo.h b/src/sysinfo.h index d32d0f8..f4968e8 100644 --- a/src/sysinfo.h +++ b/src/sysinfo.h @@ -23,6 +23,7 @@ extern "C" { #endif #include "libsysfs.h" +#include <libusb-1.0/libusb.h> #ifdef __cplusplus } #endif @@ -42,6 +43,7 @@ private: const QString getMACAddress(); const QString getIPAddress(); const QString getMainboardSerial(); + const QString getUsbVendorIdProductIdSerialNumber(); QString getAllInfos(); QString getScriptOutput(QString cmd); |