Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QBluetoothHostInfo Class Reference

\inmodule QtBluetooth More...

#include <qbluetoothhostinfo.h>

+ Collaboration diagram for QBluetoothHostInfo:

Public Member Functions

 QBluetoothHostInfo ()
 Constructs a null QBluetoothHostInfo object.
 
 QBluetoothHostInfo (const QBluetoothHostInfo &other)
 Constructs a new QBluetoothHostInfo which is a copy of other.
 
 ~QBluetoothHostInfo ()
 Destroys the QBluetoothHostInfo.
 
QBluetoothHostInfooperator= (const QBluetoothHostInfo &other)
 Assigns other to this QBluetoothHostInfo instance.
 
QBluetoothAddress address () const
 Returns the Bluetooth address as a QBluetoothAddress.
 
void setAddress (const QBluetoothAddress &address)
 Sets the Bluetooth address for this Bluetooth host info object.
 
QString name () const
 Returns the user visible name of the host info object.
 
void setName (const QString &name)
 Sets the name of the host info object.
 

Friends

bool operator== (const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
 Returns true if a and b are equal, otherwise false.
 
bool operator!= (const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
 Returns true if a and b are not equal, otherwise false.
 

Detailed Description

\inmodule QtBluetooth

The QBluetoothHostInfo class encapsulates the details of a local QBluetooth device.

Since
5.2

This class holds the name and address of a local Bluetooth device.

Definition at line 13 of file qbluetoothhostinfo.h.

Constructor & Destructor Documentation

◆ QBluetoothHostInfo() [1/2]

QBluetoothHostInfo::QBluetoothHostInfo ( )

Constructs a null QBluetoothHostInfo object.

Definition at line 25 of file qbluetoothhostinfo.cpp.

◆ QBluetoothHostInfo() [2/2]

QBluetoothHostInfo::QBluetoothHostInfo ( const QBluetoothHostInfo & other)

Constructs a new QBluetoothHostInfo which is a copy of other.

Definition at line 33 of file qbluetoothhostinfo.cpp.

References d, and other().

+ Here is the call graph for this function:

◆ ~QBluetoothHostInfo()

QBluetoothHostInfo::~QBluetoothHostInfo ( )

Destroys the QBluetoothHostInfo.

Definition at line 45 of file qbluetoothhostinfo.cpp.

Member Function Documentation

◆ address()

QBluetoothAddress QBluetoothHostInfo::address ( ) const

Returns the Bluetooth address as a QBluetoothAddress.

Definition at line 90 of file qbluetoothhostinfo.cpp.

References d.

Referenced by setAddress().

+ Here is the caller graph for this function:

◆ name()

QString QBluetoothHostInfo::name ( ) const

Returns the user visible name of the host info object.

Definition at line 108 of file qbluetoothhostinfo.cpp.

References d.

Referenced by setName().

+ Here is the caller graph for this function:

◆ operator=()

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

Assigns other to this QBluetoothHostInfo instance.

Definition at line 53 of file qbluetoothhostinfo.cpp.

References d, and other().

+ Here is the call graph for this function:

◆ setAddress()

void QBluetoothHostInfo::setAddress ( const QBluetoothAddress & address)

Sets the Bluetooth address for this Bluetooth host info object.

Definition at line 99 of file qbluetoothhostinfo.cpp.

References address(), and d.

+ Here is the call graph for this function:

◆ setName()

void QBluetoothHostInfo::setName ( const QString & name)

Sets the name of the host info object.

Definition at line 117 of file qbluetoothhostinfo.cpp.

References d, and name().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool QBluetoothHostInfo::operator!= ( const QBluetoothHostInfo & a,
const QBluetoothHostInfo & b )
friend

Returns true if a and b are not equal, otherwise false.

Definition at line 25 of file qbluetoothhostinfo.h.

◆ operator==

bool QBluetoothHostInfo::operator== ( const QBluetoothHostInfo & a,
const QBluetoothHostInfo & b )
friend

Returns true if a and b are equal, otherwise false.

Definition at line 21 of file qbluetoothhostinfo.h.


The documentation for this class was generated from the following files: