TBTServiceSecurityPerDevice Class Reference

#include <btdevice.h>

Link against: btdevice.lib

class TBTServiceSecurityPerDevice

Detailed Description

Class to tie a service uid with a device security setting.

This allows us to have service-specific security settings for a device.

Constructor & Destructor Documentation

TBTServiceSecurityPerDevice ( )

IMPORT_CTBTServiceSecurityPerDevice()

Constructor

TBTServiceSecurityPerDevice ( const TBTDevAddr &, const TBTDeviceSecurity & )

IMPORT_CTBTServiceSecurityPerDevice(const TBTDevAddr &aDevice,
const TBTDeviceSecurity &aSecuritySettings
)

Constructor

See also: TBTDeviceSecurity

ParameterDescription
aDeviceThe device to which the security applies
aSecuritySettingsThe settings for the device

TBTServiceSecurityPerDevice ( const TBTServiceSecurityPerDevice & )

IMPORT_CTBTServiceSecurityPerDevice(const TBTServiceSecurityPerDevice &)

Copy constructor.

ParameterDescription
The object to be copied.

Member Function Documentation

DeviceAddress ( )

IMPORT_C const TBTDevAddr &DeviceAddress()const

Get the device address.

Returns: The device address

DeviceSecurity ( )

IMPORT_C const TBTDeviceSecurity &DeviceSecurity()const

Get the device security.

Returns: The device security

ExternalizeL ( RWriteStream & )

IMPORT_C voidExternalizeL(RWriteStream &aStream)const
Externalise object.
leave
This method will leave if an error occurs.
ParameterDescription
aStreamThe stream to which the object shall be externalized.

InternalizeL ( RReadStream & )

IMPORT_C voidInternalizeL(RReadStream &aStream)
Internalise object.
leave
This method will leave if an error occurs.
ParameterDescription
aStreamThe stream from which the object shall be internalized.

SetAddress ( const TBTDevAddr & )

IMPORT_C voidSetAddress(const TBTDevAddr &aAddress)

Reset device address

ParameterDescription
aAddressThe new address

SetDeviceSecurity ( const TBTDeviceSecurity & )

IMPORT_C voidSetDeviceSecurity(const TBTDeviceSecurity &aSecuritySettings)

Reset the device security

ParameterDescription
aSecuritySettingsthe new security settings

operator!= ( const TBTServiceSecurityPerDevice & )

IMPORT_C TBooloperator!=(const TBTServiceSecurityPerDevice &aServiceSecurityPerDevice)const

Inequality operator

ParameterDescription
aServiceSecurityPerDeviceThe instance to which this will be compared

Returns: ETrue if this does not equal aServiceSecurityPerDevice

operator= ( const TBTServiceSecurityPerDevice & )

IMPORT_C voidoperator=(const TBTServiceSecurityPerDevice &aServiceSecurityPerDevice)

Assignment operator

ParameterDescription
aServiceSecurityPerDeviceThe instance to which this will be assigned

operator== ( const TBTServiceSecurityPerDevice & )

IMPORT_C TBooloperator==(const TBTServiceSecurityPerDevice &aServiceSecurityPerDevice)const

Equality operator

ParameterDescription
aServiceSecurityPerDeviceThe instance to which this will be compared

Returns: ETrue if this equals aServiceSecurityPerDevice