本文整理汇总了C++中QBluetoothDeviceInfo::d_func方法的典型用法代码示例。如果您正苦于以下问题:C++ QBluetoothDeviceInfo::d_func方法的具体用法?C++ QBluetoothDeviceInfo::d_func怎么用?C++ QBluetoothDeviceInfo::d_func使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QBluetoothDeviceInfo
的用法示例。
在下文中一共展示了QBluetoothDeviceInfo::d_func方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
/*!
Returns true if the \a other QBluetoothDeviceInfo object and this are identical
*/
bool QBluetoothDeviceInfo::operator==(const QBluetoothDeviceInfo &other) const
{
Q_D(const QBluetoothDeviceInfo);
if(d->cached != other.d_func()->cached)
return false;
if(d->valid != other.d_func()->valid)
return false;
if(d->majorDeviceClass != other.d_func()->majorDeviceClass)
return false;
if(d->minorDeviceClass != other.d_func()->minorDeviceClass)
return false;
if(d->serviceClasses != other.d_func()->serviceClasses)
return false;
if(d->name != other.d_func()->name)
return false;
if(d->address != other.d_func()->address)
return false;
if(d->serviceUuidsCompleteness != other.d_func()->serviceUuidsCompleteness)
return false;
if(d->serviceUuids.count() != other.d_func()->serviceUuids.count())
return false;
if(d->serviceUuids != other.d_func()->serviceUuids)
return false;
return true;
}