Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: btdevice.h
Link against: bluetooth.lib

Class TBTDeviceClass

TBTDeviceClass

Support

Supported from 6.1

Description

Bluetooth service and device class information.

The class specifies the major and minor device class, and a service class.

Defined in TBTDeviceClass:
DeviceClass(), ExternalizeL(), InternalizeL(), MajorDeviceClass(), MajorServiceClass(), MinorDeviceClass(), TBTDeviceClass(), operator==()


Constructors


TBTDeviceClass()

TBTDeviceClass();

Description

Default constructor.


TBTDeviceClass()

TBTDeviceClass(TUint32 aDeviceClass);

Description

Constructs with class information specified as a single integer.

Parameters

TUint32 aDeviceClass

Class information. The bottom 8 bits specify the minor device class, the next 8 bits the major device class, and the top 16 bits the major service class.


TBTDeviceClass()

TBTDeviceClass(TUint16 aMajorServiceClass, TUint8 aMajorDeviceClass,    TUint8 aMinorDeviceClass);

Description

Constructs with class information specified as integers.

Parameters

TUint16 aMajorServiceClass

Major service class

TUint8 aMajorDeviceClass

Major device class

TUint8 aMinorDeviceClass

Minor device class

[Top]


Getters


DeviceClass()

TUint32 DeviceClass() const;

Description

Gets class information as a single integer.

Return value

TUint32

Class information. The bottom 8 bits specify the minor device class, the next 8 bits the major device class, and the top 16 bits the major service class.


MinorDeviceClass()

TUint8 MinorDeviceClass();

Description

Gets the minor device class.

Return value

TUint8

Minor device class


MajorDeviceClass()

TUint8 MajorDeviceClass();

Description

Gets the major device class.

Return value

TUint8

Major device class


MajorServiceClass()

TUint16 MajorServiceClass();

Description

Gets the major service class.

Return value

TUint16

Major service class

[Top]


Equality operator


operator==()

TBool operator==(const TBTDeviceClass& aDeviceClass) const;

Description

Tests for equality.

Parameters

const TBTDeviceClass& aDeviceClass

Object to test against

Return value

TBool

True if equal, else false

[Top]


Stream persistence


ExternalizeL()

void ExternalizeL(RWriteStream& aStream) const;    

Description

Externalises the object to the specified stream.

Parameters

RWriteStream& aStream

Stream to which to write the object


InternalizeL()

void InternalizeL(RReadStream& aStream);

Description

Internalises the object from the specified stream.

Parameters

RReadStream& aStream

Stream from which to read the object