QCanBusDeviceInfo 類

The QCanBusDeviceInfo provides information about CAN bus interfaces. 更多...

頭: #include <QCanBusDeviceInfo>
qmake: QT += serialbus
Since: Qt 5.9

公共函數

QCanBusDeviceInfo () = delete
QCanBusDeviceInfo (const QCanBusDeviceInfo & other )
~QCanBusDeviceInfo ()
bool hasFlexibleDataRate () const
bool isVirtual () const
QString name () const
void swap (QCanBusDeviceInfo & other )
QCanBusDeviceInfo & operator= (const QCanBusDeviceInfo & other )
QCanBusDeviceInfo & operator= (QCanBusDeviceInfo && other )

詳細描述

The QCanBusDeviceInfo provides information about CAN bus interfaces.

Each plugin may support one or more interfaces with different capabilities. This class provides information about available functions.

成員函數文檔編製

[delete] QCanBusDeviceInfo:: QCanBusDeviceInfo ()

Default constructs an instance of QCanBusDeviceInfo.

QCanBusDeviceInfo:: QCanBusDeviceInfo (const QCanBusDeviceInfo & other )

構造副本為 other .

QCanBusDeviceInfo:: ~QCanBusDeviceInfo ()

銷毀 CAN 總綫設備信息。

bool QCanBusDeviceInfo:: hasFlexibleDataRate () const

Returns true, if the CAN bus interface is CAN FD (flexible data rate) capable.

If this information is not available, false is returned.

bool QCanBusDeviceInfo:: isVirtual () const

Returns true, if the CAN bus interface is virtual (i.e. not connected to real CAN hardware).

If this information is not available, false is returned.

QString QCanBusDeviceInfo:: name () const

Returns the interface name of this CAN bus interface, e.g. can0.

void QCanBusDeviceInfo:: swap ( QCanBusDeviceInfo & other )

Swaps this CAN bus device info with other 。此操作很快且從不失敗。

QCanBusDeviceInfo &QCanBusDeviceInfo:: operator= (const QCanBusDeviceInfo & other )

賦值 other to this CAN bus device info and returns a reference to this CAN bus device info.

QCanBusDeviceInfo &QCanBusDeviceInfo:: operator= ( QCanBusDeviceInfo && other )

Move-assigns other to this QCanBusDeviceInfo 實例。