Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <btdevice.h>
Link against: btdevice.lib

Class TBTNamelessDevice

class TBTNamelessDevice;

Description

Stores parameters for a nameless device.

A class which stores useful parameters concerning a remote device But *not* including names

Members

Defined in TBTNamelessDevice:

See also:


Construction and destruction


TBTNamelessDevice()

IMPORT_C TBTNamelessDevice();

Description

Constructor.

[Top]


Member functions


Address()const

IMPORT_C const TBTDevAddr& Address() const;

Description

Get the device address.

Return value

const TBTDevAddr &

The device address this refers to


DeviceClass()const

IMPORT_C const TBTDeviceClass& DeviceClass() const;

Description

Returns the class of the device

Return value

const TBTDeviceClass &

The device class.


Seen()const

IMPORT_C const TTime& Seen() const;

Description

Return the time when this device was last seen. Note that this is currently not support by the bluetooth stack. Only the time when the device was last _used_ can is stored.

Return value

const TTime &

TTime of when device last seen


Used()const

IMPORT_C const TTime& Used() const;

Description

Return the time when the device was last used.

Return value

const TTime &

TTime of when device last connected to


GlobalSecurity()const

IMPORT_C const TBTDeviceSecurity& GlobalSecurity() const;

Description

Retrieve the global security settings.

Return value

const TBTDeviceSecurity &

The Global security settings for all services used by this device


SetAddress(const TBTDevAddr &)

IMPORT_C void SetAddress(const TBTDevAddr &aBDAddr);

Description

Set the bluetooth device address.

Parameters

const TBTDevAddr &aBDAddr

the address of the device


SetDeviceClass(TBTDeviceClass)

IMPORT_C void SetDeviceClass(TBTDeviceClass aDeviceClass);

Description

Set the device class.

Parameters

TBTDeviceClass aDeviceClass

the deviceclass of the device


SetGlobalSecurity(const TBTDeviceSecurity &)

IMPORT_C void SetGlobalSecurity(const TBTDeviceSecurity &aSetting);

Description

Set the Global security settings for all services used by this device

Parameters

const TBTDeviceSecurity &aSetting

the security override of the device


SetUsed(const TTime &)

IMPORT_C void SetUsed(const TTime &aDateTime);

Description

Set when the device last connected from or to.

Parameters

const TTime &aDateTime

The date/time stamp.


SetSeen(const TTime &)

IMPORT_C void SetSeen(const TTime &aDateTime);

Description

Set when last seen in inquiry (not supported by stack at present)

Parameters

const TTime &aDateTime

The date/time stamp.


IsValidAddress()const

IMPORT_C TBool IsValidAddress() const;

Description

Denotes whether the device address has been set.

Return value

TBool

ETrue = The address of the device been set


IsValidDeviceClass()const

IMPORT_C TBool IsValidDeviceClass() const;

Description

Denotes whether the device class has been set.

Return value

TBool

ETrue = The class of the device been set


IsValidLinkKey()const

IMPORT_C TBool IsValidLinkKey() const;

Description

Denotes whether the link key has been set.

Return value

TBool

ETrue = The link key of the device been set


IsValidGlobalSecurity()const

IMPORT_C TBool IsValidGlobalSecurity() const;

Description

Denotes whether the global security settings have been set.

Return value

TBool

ETrue = The global security settings of the device been set


IsValidPageScanRepMode()const

IMPORT_C TBool IsValidPageScanRepMode() const;

Description

Denotes whether the page scan repition mode has been set.

Return value

TBool

ETrue = The pagescanrepetitionmode of the device been set


IsValidPageScanMode()const

IMPORT_C TBool IsValidPageScanMode() const;

Description

Denotes whether the page scan mode has been set.

Return value

TBool

ETrue = The pagescanmode of the device been set


IsValidPageScanPeriodMode()const

IMPORT_C TBool IsValidPageScanPeriodMode() const;

Description

Denotes whether the page scan period mode has been set.

Return value

TBool

ETrue = The pagescanperiodmode of the device been set


IsValidClockOffset()const

IMPORT_C TBool IsValidClockOffset() const;

Description

Denotes whether the clock offset has been set.

Return value

TBool

ETrue = The clockoffset of the device been set


IsValidUsed()const

IMPORT_C TBool IsValidUsed() const;

Description

Denotes whether the time last used has been set.

Return value

TBool

ETrue = The time last used has been set


IsValidSeen()const

IMPORT_C TBool IsValidSeen() const;

Description

Denotes whether the time last seen has been set.

Return value

TBool

ETrue = The time last seen has been set


IsPaired()const

IMPORT_C TBool IsPaired() const;

Description

Check whether the device is paired

Return value

TBool

ETrue = Paired


SetPaired(TBool)

IMPORT_C void SetPaired(TBool aPaired);

Description

Set whether the device is paired. This function should not be used any more, instead the overload with a link key type should be used.

Parameters

TBool aPaired

whether the device is paired

See also:


SetPaired(TBTLinkKeyType)

IMPORT_C void SetPaired(TBTLinkKeyType aLinkKeyType);

Description

Set the link key type because the device is paired

Parameters

TBTLinkKeyType aLinkKeyType

the link key type


IsValidPaired()const

IMPORT_C TBool IsValidPaired() const;

Description

Denote whether is paired has been set

Return value

TBool

Etrue = whether is paired has been set


PassKey()const

IMPORT_C const TBTPinCode& PassKey() const;

Description

Return the PIN code.

Return value

const TPckgBuf &

TBTPinCode


SetPassKey(const TBTPinCode &)

IMPORT_C void SetPassKey(const TBTPinCode &aPassKey);

Description

Set PIN code for device

Parameters

const TPckgBuf &aPassKey

used for pairing


IsValidPassKey()const

IMPORT_C TBool IsValidPassKey() const;

Description

Denotes whether the PassKey has been set.

Return value

TBool

ETrue = The PassKey of the device been set


PassKeyLength()const

IMPORT_C TUint PassKeyLength() const;

Description

Return value

TUint

the PassKey length