Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QIrRemoteDevice Class Reference

The QIrRemoteDevice class represents a remote infrared device. More...

    #include <QIrRemoteDevice>

Public Functions


Detailed Description

The QIrRemoteDevice class represents a remote infrared device.

QIrRemoteDevice holds information about a remote Infrared device. Only basic information is provided, namely the name of the remote device, its major device classes and the negotiated address.

See also QIrLocalDevice.


Member Function Documentation

QIrRemoteDevice::QIrRemoteDevice ( const QString & name, QIr::DeviceClasses & devClasses, uint addr )

Constructs a QIrRemoteDevice with name as the name, devClasses as the major device classes supported by by this device and address given by addr.

See also name(), deviceClasses(), and address().

QIrRemoteDevice::QIrRemoteDevice ( const QIrRemoteDevice & dev )

Copy constructor. Constructs the current object from the attributes of dev.

QIrRemoteDevice::~QIrRemoteDevice ()

Destroys the device object.

uint QIrRemoteDevice::address () const

Returns the address of the remote device.

Warning: This is a 32 bit integer, and due to the nature of the IrDA protocol this number should be considered highly dynamic. To refresh the number, a new discovery must be performed. It is not recommended to try and reuse the address for extended periods of time.

See also QIrLocalDevice and name().

QIr::DeviceClasses QIrRemoteDevice::deviceClasses () const

Returns the major device classes supported by the remote device.

See also name().

QString QIrRemoteDevice::name () const

Returns the name of the remote device.

See also address() and deviceClasses().

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

Assignment operator. Assigns the contents of other to the contents of the current object.

bool QIrRemoteDevice::operator== ( const QIrRemoteDevice & other ) const

Comparison operator. Compares the contents of other to the contents of the current object. Returns true if the contents are equal.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3