// Copyright (C) 2017 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef QCANBUS_H #define QCANBUS_H #include #include #include #include QT_BEGIN_NAMESPACE class Q_SERIALBUS_EXPORT QCanBus : public QObject { Q_OBJECT public: static QCanBus *instance(); QStringList plugins() const; QList availableDevices(const QString &plugin, QString *errorMessage = nullptr) const; QList availableDevices(QString *errorMessage = nullptr) const; QCanBusDevice *createDevice(const QString &plugin, const QString &interfaceName, QString *errorMessage = nullptr) const; private: QCanBus(QObject *parent = nullptr); Q_DISABLE_COPY(QCanBus) }; QT_END_NAMESPACE #endif // QSERIALBUS_H