Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: btsdp.h
Link against: bluetooth.lib

Class CSdpAttrValueBoolean

CSdpAttrValueBoolean

Support

Supported from 6.1

Description

A Boolean value of an attribute.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CSdpAttrValueBase class for classes that encapsulate SDP attributes values
CSdpAttrValueBooleanA Boolean value of an attribute

Defined in CSdpAttrValueBoolean:
Bool(), DataSize(), NewBoolL(), Type(), ~CSdpAttrValueBoolean()

Inherited from CBase:
operator new()

Inherited from CSdpAttrValue:
AcceptVisitorL(), Des(), DoesIntFit(), Int(), UUID(), Uint()


Construction and destruction


NewBoolL()

static CSdpAttrValueBoolean* NewBoolL(TBool aBool);

Description

Allocates and constructs a new CSdpAttrValueBoolean object.

Parameters

TBool aBool

Value for the attribute

Return value

CSdpAttrValueBoolean*

New CSdpAttrValueBoolean object


~CSdpAttrValueBoolean()

virtual ~CSdpAttrValueBoolean();

Description

Destructor.

[Top]


Attribute properties


DataSize()

virtual TUint DataSize() const;

Description

Gets the size of the attribute.

Return value

TUint

Size of the attribute in bytes. Always 1.


Type()

virtual TSdpElementType Type() const;

Description

Gets the attribute type.

Return value

TSdpElementType

Attribute type. Always ETypeBoolean.

[Top]


Attribute value getter


Bool()

virtual TBool Bool() const;

Description

Gets the attribute value.

Return value

TBool

Attribute value