#include <btdevice.h>
class TBTDeviceClass |
Public Member Functions | |
---|---|
TBTDeviceClass() | |
TBTDeviceClass(TUint32) | |
TBTDeviceClass(TUint16, TUint8, TUint8) | |
IMPORT_C TUint32 | DeviceClass() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TUint8 | MajorDeviceClass() |
IMPORT_C TUint16 | MajorServiceClass() |
IMPORT_C TUint8 | MinorDeviceClass() |
IMPORT_C TBTDeviceClass & | operator=(const TBTDeviceClass &) |
IMPORT_C TBool | operator==(const TBTDeviceClass &) |
Encapsulation of device class definitions.
Contains a single TInt as member data and methods to extract the major, minor and service class information from that TInt.
IMPORT_C | TBTDeviceClass | ( | TUint32 | aDeviceClass | ) |
Constructor
Parameter | Description |
---|---|
aDeviceClass | The initial device class |
IMPORT_C | TBTDeviceClass | ( | TUint16 | aMajorServiceClass, |
TUint8 | aMajorDeviceClass, | |||
TUint8 | aMinorDeviceClass | |||
) |
Constructor taking separate fields for combination into device class
Construct a Class of Device using format #1 as per the baseband assigned numbers.
Note that this is a 24-bit field which we store in a 32-bit integer.
Parameter | Description |
---|---|
aMajorServiceClass | The major service class for the device. |
aMajorDeviceClass | The major device class. |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Parameter | Description |
---|---|
aStream | The stream object to which the class data will be written. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Parameter | Description |
---|---|
aStream | The stream object containing the data with which to internalize this object. |
IMPORT_C TUint8 | MajorDeviceClass | ( | ) | const |
Getter for major device class Currently we only support CoD format #1.
Returns: The MajorDeviceClass
IMPORT_C TUint16 | MajorServiceClass | ( | ) | const |
Getter for major service class Currently we only support CoD format #1.
Returns: The MajorServerClass
IMPORT_C TUint8 | MinorDeviceClass | ( | ) | const |
Getter for minor device class Currently we only support CoD format #1.
Returns: The MinorDeviceClass
IMPORT_C TBTDeviceClass & | operator= | ( | const TBTDeviceClass & | aDeviceClass | ) |
Assignment operator
Parameter | Description |
---|---|
aDeviceClass | the instance from which this is assigned |
Returns: this Device Class
IMPORT_C TBool | operator== | ( | const TBTDeviceClass & | aDeviceClass | ) | const |
Comparison operator
Parameter | Description |
---|---|
aDeviceClass | the instance with which this is compared |
Returns: ETrue if device classes are equal, otherwise false