Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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.

◆ ~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.

◆ name()

QString QBluetoothHostInfo::name ( ) const

Returns the user visible name of the host info object.

Definition at line 108 of file qbluetoothhostinfo.cpp.

◆ operator=()

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

Assigns other to this QBluetoothHostInfo instance.

Definition at line 53 of file qbluetoothhostinfo.cpp.

◆ 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.

◆ setName()

void QBluetoothHostInfo::setName ( const QString & name)

Sets the name of the host info object.

Definition at line 117 of file qbluetoothhostinfo.cpp.

◆ operator!=

bool 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 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: