CBTDevice Class Reference

class CBTDevice : public CBase

Encapsulates all information that must be known about a device.

Stores useful information concerning a remote device, including names

Inherits from

Public Member Functions
~CBTDevice()
IMPORT_C TBTNamelessDevice &AsNamelessDevice()
IMPORT_C const TBTNamelessDevice &AsNamelessDevice()
IMPORT_C voidAssignL(CBTDevice &)
IMPORT_C const TBTDevAddr &BDAddr()
IMPORT_C TUintCompareTo(const CBTDevice &)
IMPORT_C CBTDevice *CopyL()
IMPORT_C voidDeleteLinkKey()
IMPORT_C TBTDeviceClassDeviceClass()
IMPORT_C const TDesC8 &DeviceName()
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C const TDesC &FriendlyName()
IMPORT_C const TBTDeviceSecurityGlobalSecurity()
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C TBoolIsPaired()
IMPORT_C TBoolIsValidBDAddr()
IMPORT_C TBoolIsValidDeviceClass()
IMPORT_C TBoolIsValidDeviceName()
IMPORT_C TBoolIsValidFriendlyName()
IMPORT_C TBoolIsValidGlobalSecurity()
IMPORT_C TBoolIsValidLinkKey()
IMPORT_C TBoolIsValidPaired()
IMPORT_C TBoolIsValidPassKey()
IMPORT_C TBoolIsValidSeen()
IMPORT_C TBoolIsValidUiCookie()
IMPORT_C TBoolIsValidUsed()
IMPORT_C const TBTLinkKey &LinkKey()
IMPORT_C TBTLinkKeyTypeLinkKeyType()
IMPORT_C CBTDevice *NewL(const TBTDevAddr &)
IMPORT_C CBTDevice *NewL(const TBTNamelessDevice &)
IMPORT_C CBTDevice *NewL()
IMPORT_C CBTDevice *NewLC(const TBTDevAddr &)
IMPORT_C CBTDevice *NewLC(const TBTNamelessDevice &)
IMPORT_C CBTDevice *NewLC()
IMPORT_C const TBTPinCode &PassKey()
IMPORT_C TUintPassKeyLength()
IMPORT_C const TTime &Seen()
IMPORT_C voidSetDeviceAddress(const TBTDevAddr &)
IMPORT_C voidSetDeviceClass(TBTDeviceClass)
IMPORT_C voidSetDeviceNameL(const TDesC8 &)
IMPORT_C voidSetFriendlyNameL(const TDesC &)
IMPORT_C voidSetGlobalSecurity(const TBTDeviceSecurity &)
IMPORT_C voidSetLinkKey(const TBTLinkKey &)
IMPORT_C voidSetLinkKey(const TBTLinkKey &, TBTLinkKeyType)
IMPORT_C voidSetPaired(TBool)
IMPORT_C voidSetPaired(TBTLinkKeyType)
IMPORT_C voidSetPassKey(const TBTPinCode &)
IMPORT_C voidSetSeen(const TTime &)
IMPORT_C voidSetUiCookie(TUint32)
IMPORT_C voidSetUsed(const TTime &)
IMPORT_C TUint32UiCookie()
IMPORT_C voidUpdateL(const CBTDevice &)
IMPORT_C const TTime &Used()
IMPORT_C TBooloperator!=(const CBTDevice &)
IMPORT_C TBooloperator==(const CBTDevice &)
Private Member Functions
CBTDevice()
voidCommonConstructL()
voidConstructL()
voidConstructL(const TBTDevAddr &)
voidConstructL(const TBTNamelessDevice &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTBTDeviceNameSelector { EDeviceName = 0x40000000, EFriendlyName = 0x80000000, EAllNameProperties = 0xff000000, ELast = KMaxTUint }
Private Attributes
const TUint32KStreamVersion
TBTNamelessDevice iDevice
HBufC8 *iDeviceName
HBufC *iFriendlyName

Constructor & Destructor Documentation

CBTDevice()

CBTDevice()[private]

~CBTDevice()

IMPORT_C~CBTDevice()

Member Functions Documentation

AsNamelessDevice()

IMPORT_C TBTNamelessDevice &AsNamelessDevice()

AsNamelessDevice()

IMPORT_C const TBTNamelessDevice &AsNamelessDevice()const

AssignL(CBTDevice &)

IMPORT_C voidAssignL(CBTDevice &aDevice)

Parameters

CBTDevice & aDevice

BDAddr()

IMPORT_C const TBTDevAddr &BDAddr()const

CommonConstructL()

voidCommonConstructL()[private]

CompareTo(const CBTDevice &)

IMPORT_C TUintCompareTo(const CBTDevice &aDevice)const

Parameters

const CBTDevice & aDevice

ConstructL()

voidConstructL()[private]

ConstructL(const TBTDevAddr &)

voidConstructL(const TBTDevAddr &aAddr)[private]

Parameters

const TBTDevAddr & aAddr

ConstructL(const TBTNamelessDevice &)

voidConstructL(const TBTNamelessDevice &aNamelessDevice)[private]

Parameters

const TBTNamelessDevice & aNamelessDevice

CopyL()

IMPORT_C CBTDevice *CopyL()const

DeleteLinkKey()

IMPORT_C voidDeleteLinkKey()

DeviceClass()

IMPORT_C TBTDeviceClassDeviceClass()const

DeviceName()

IMPORT_C const TDesC8 &DeviceName()const

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

FriendlyName()

IMPORT_C const TDesC &FriendlyName()const

GlobalSecurity()

IMPORT_C const TBTDeviceSecurityGlobalSecurity()const

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

IsPaired()

IMPORT_C TBoolIsPaired()const

IsValidBDAddr()

IMPORT_C TBoolIsValidBDAddr()const

IsValidDeviceClass()

IMPORT_C TBoolIsValidDeviceClass()const

IsValidDeviceName()

IMPORT_C TBoolIsValidDeviceName()const

IsValidFriendlyName()

IMPORT_C TBoolIsValidFriendlyName()const

IsValidGlobalSecurity()

IMPORT_C TBoolIsValidGlobalSecurity()const

IsValidLinkKey()

IMPORT_C TBoolIsValidLinkKey()const

IsValidPaired()

IMPORT_C TBoolIsValidPaired()const

IsValidPassKey()

IMPORT_C TBoolIsValidPassKey()const

IsValidSeen()

IMPORT_C TBoolIsValidSeen()const

IsValidUiCookie()

IMPORT_C TBoolIsValidUiCookie()const

IsValidUsed()

IMPORT_C TBoolIsValidUsed()const

LinkKey()

IMPORT_C const TBTLinkKey &LinkKey()const

LinkKeyType()

IMPORT_C TBTLinkKeyTypeLinkKeyType()const

NewL(const TBTDevAddr &)

IMPORT_C CBTDevice *NewL(const TBTDevAddr &aBDAddr)[static]

Parameters

const TBTDevAddr & aBDAddr

NewL(const TBTNamelessDevice &)

IMPORT_C CBTDevice *NewL(const TBTNamelessDevice &aNamelessDevice)[static]

Parameters

const TBTNamelessDevice & aNamelessDevice

NewL()

IMPORT_C CBTDevice *NewL()[static]

NewLC(const TBTDevAddr &)

IMPORT_C CBTDevice *NewLC(const TBTDevAddr &aBDAddr)[static]

Parameters

const TBTDevAddr & aBDAddr

NewLC(const TBTNamelessDevice &)

IMPORT_C CBTDevice *NewLC(const TBTNamelessDevice &aNamelessDevice)[static]

Parameters

const TBTNamelessDevice & aNamelessDevice

NewLC()

IMPORT_C CBTDevice *NewLC()[static]

PassKey()

IMPORT_C const TBTPinCode &PassKey()const

PassKeyLength()

IMPORT_C TUintPassKeyLength()const

Seen()

IMPORT_C const TTime &Seen()const

SetDeviceAddress(const TBTDevAddr &)

IMPORT_C voidSetDeviceAddress(const TBTDevAddr &aBDAddr)

Parameters

const TBTDevAddr & aBDAddr

SetDeviceClass(TBTDeviceClass)

IMPORT_C voidSetDeviceClass(TBTDeviceClassaDeviceClass)

Parameters

TBTDeviceClass aDeviceClass

SetDeviceNameL(const TDesC8 &)

IMPORT_C voidSetDeviceNameL(const TDesC8 &aName)

Parameters

const TDesC8 & aName

SetFriendlyNameL(const TDesC &)

IMPORT_C voidSetFriendlyNameL(const TDesC &aName)

Parameters

const TDesC & aName

SetGlobalSecurity(const TBTDeviceSecurity &)

IMPORT_C voidSetGlobalSecurity(const TBTDeviceSecurity &aSetting)

Parameters

const TBTDeviceSecurity & aSetting

SetLinkKey(const TBTLinkKey &)

IMPORT_C voidSetLinkKey(const TBTLinkKey &aLinkKey)

Parameters

const TBTLinkKey & aLinkKey

SetLinkKey(const TBTLinkKey &, TBTLinkKeyType)

IMPORT_C voidSetLinkKey(const TBTLinkKey &aLinkKey,
TBTLinkKeyTypeaLinkKeyType
)

Parameters

const TBTLinkKey & aLinkKey
TBTLinkKeyType aLinkKeyType

SetPaired(TBool)

IMPORT_C voidSetPaired(TBoolaPaired)

Parameters

TBool aPaired

SetPaired(TBTLinkKeyType)

IMPORT_C voidSetPaired(TBTLinkKeyTypeaLinkKeyType)

Parameters

TBTLinkKeyType aLinkKeyType

SetPassKey(const TBTPinCode &)

IMPORT_C voidSetPassKey(const TBTPinCode &aPassKey)

Parameters

const TBTPinCode & aPassKey

SetSeen(const TTime &)

IMPORT_C voidSetSeen(const TTime &aDateTime)

Parameters

const TTime & aDateTime

SetUiCookie(TUint32)

IMPORT_C voidSetUiCookie(TUint32aUiCookie)

Parameters

TUint32 aUiCookie

SetUsed(const TTime &)

IMPORT_C voidSetUsed(const TTime &aDateTime)

Parameters

const TTime & aDateTime

UiCookie()

IMPORT_C TUint32UiCookie()const

UpdateL(const CBTDevice &)

IMPORT_C voidUpdateL(const CBTDevice &aDevice)

Parameters

const CBTDevice & aDevice

Used()

IMPORT_C const TTime &Used()const

operator!=(const CBTDevice &)

IMPORT_C TBooloperator!=(const CBTDevice &aDevice)const

Parameters

const CBTDevice & aDevice

operator==(const CBTDevice &)

IMPORT_C TBooloperator==(const CBTDevice &aDevice)const

Parameters

const CBTDevice & aDevice

Member Enumerations Documentation

Enum TBTDeviceNameSelector

Describes the similarities between two devices.

Enumerators

EDeviceName = 0x40000000

Device name.

EFriendlyName = 0x80000000

Friendly name.

EAllNameProperties = 0xff000000

All name properties

ELast = KMaxTUint

Last enum. This is NOT a name property

Member Data Documentation

const TUint32 KStreamVersion

const TUint32KStreamVersion[private, static]

TBTNamelessDevice iDevice

TBTNamelessDevice iDevice[private]

HBufC8 * iDeviceName

HBufC8 *iDeviceName[private]

HBufC * iFriendlyName

HBufC *iFriendlyName[private]