summaryrefslogtreecommitdiff
path: root/src/serialport/qserialportinfo.h
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2015-08-11 19:17:14 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2015-08-25 12:20:31 +0000
commit3e6308409dd679389e6231745e4d919d68d6487c (patch)
treefba0fd80850770ff15541cea30fdd4a14d85b608 /src/serialport/qserialportinfo.h
parentc63af1a307bdde0ba12906550aa7167d8c3be006 (diff)
downloadqtserialport-3e6308409dd679389e6231745e4d919d68d6487c.tar.gz
Obtain detail information in FreeBSD
Implementation based on the sysctl(3) system call, in which undocumented features are used. This implementation tested only with the USB devices, because there is no opportunity to check it as well with an other stuff. Also still it is impossible to extract the description and the manufacturer properties from the source, because they are merged inside of one string. Tested with the USB devices (FTDI, Prolific, ZTE, Samsung) using FreeBSD v10. Change-Id: I0091e4db70bfdfd4da199dd9d89dc78cf8f632b0 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialportinfo.h')
-rw-r--r--src/serialport/qserialportinfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serialport/qserialportinfo.h b/src/serialport/qserialportinfo.h
index 9f0352b..2b757f9 100644
--- a/src/serialport/qserialportinfo.h
+++ b/src/serialport/qserialportinfo.h
@@ -84,6 +84,9 @@ private:
QSerialPortInfo(const QSerialPortInfoPrivate &dd);
friend QList<QSerialPortInfo> availablePortsByUdev(bool &ok);
friend QList<QSerialPortInfo> availablePortsBySysfs(bool &ok);
+#ifdef Q_OS_FREEBSD
+ friend QList<QSerialPortInfo> availablePortsBySysctl(bool &ok);
+#endif
friend QList<QSerialPortInfo> availablePortsByFiltersOfDevices(bool &ok);
QScopedPointer<QSerialPortInfoPrivate, QSerialPortInfoPrivateDeleter> d_ptr;
};