| 1 | // Copyright (C) 2011-2012 Denis Shienkov <denis.shienkov@gmail.com> |
| 2 | // Copyright (C) 2017 Sergey Belyashov <Sergey.Belyashov@gmail.com> |
| 3 | // Copyright (C) 2013 Laszlo Papp <lpapp@kde.org> |
| 4 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 5 | |
| 6 | #ifndef QSERIALPORTINFO_P_H |
| 7 | #define QSERIALPORTINFO_P_H |
| 8 | |
| 9 | // |
| 10 | // W A R N I N G |
| 11 | // ------------- |
| 12 | // |
| 13 | // This file is not part of the Qt API. It exists purely as an |
| 14 | // implementation detail. This header file may change from version to |
| 15 | // version without notice, or even be removed. |
| 16 | // |
| 17 | // We mean it. |
| 18 | // |
| 19 | |
| 20 | #include <QtCore/qstring.h> |
| 21 | #include <QtCore/private/qglobal_p.h> |
| 22 | |
| 23 | QT_BEGIN_NAMESPACE |
| 24 | |
| 25 | class Q_AUTOTEST_EXPORT QSerialPortInfoPrivate |
| 26 | { |
| 27 | public: |
| 28 | static QString portNameToSystemLocation(const QString &source); |
| 29 | static QString portNameFromSystemLocation(const QString &source); |
| 30 | |
| 31 | QString portName; |
| 32 | QString device; |
| 33 | QString description; |
| 34 | QString manufacturer; |
| 35 | QString serialNumber; |
| 36 | |
| 37 | quint16 vendorIdentifier = 0; |
| 38 | quint16 productIdentifier = 0; |
| 39 | |
| 40 | bool hasVendorIdentifier = false; |
| 41 | bool hasProductIdentifier = false; |
| 42 | }; |
| 43 | |
| 44 | QT_END_NAMESPACE |
| 45 | |
| 46 | #endif // QSERIALPORTINFO_P_H |
| 47 | |