Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: btsdp.h
Link against: bluetooth.lib

Class CSdpAttrValueString

CSdpAttrValueString

Support

Supported from 6.1

Description

A Text String value of an attribute.

The encoding of the string is up to the user. The interpretation of the encoding is enabled using facilities in SDP.

Derivation

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

Defined in CSdpAttrValueString:
DataSize(), Des(), NewStringL(), Type(), ~CSdpAttrValueString()

Inherited from CBase:
operator new()

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


Construction and destruction


NewStringL()

static CSdpAttrValueString* NewStringL(const TDesC8& aString);

Description

Allocates and constructs a new CSdpAttrValueString object.

Parameters

const TDesC8& aString

Buffer containing a Text String value for the attribute

Return value

CSdpAttrValueString*

New CSdpAttrValueString object


~CSdpAttrValueString()

virtual ~CSdpAttrValueString();

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


Type()

virtual TSdpElementType Type() const;

Description

Gets the attribute type.

Return value

TSdpElementType

Attribute type. Always ETypeString.

[Top]


Attribute value getters


Des()

virtual const TPtrC8 Des() const;

Description

Gets the value as a data buffer.

Return value

TPtrC8

Attribute value