CSdpAttrValueInt Class Reference

#include <btsdp.h>

Link against: sdpdatabase.lib

class CSdpAttrValueInt : public CSdpAttrValue

Inherits from

Detailed Description

A signed integer value of an attribute.

The value can be up to 128 bits in size.

Constructor & Destructor Documentation

~CSdpAttrValueInt ( )



Member Function Documentation

DataSize ( )

TUint DataSize()const [virtual]

Reimplemented from CSdpAttrValue::DataSize()const

Gets the size of the attribute.

Returns: Size of the attribute in bytes

Des ( )

const TPtrC8Des()const [virtual]

Reimplemented from CSdpAttrValue::Des()const

Gets the value as a data buffer.

Returns: Attribute value

DoesIntFit ( )

TBool DoesIntFit()const [virtual]

Reimplemented from CSdpAttrValue::DoesIntFit()const

Tests if the attribute can be stored in an integer value.

Returns: True if the attribute can be stored in an integer value

Int ( )

TInt Int()const [virtual]

Reimplemented from CSdpAttrValue::Int()const

Gets the value as a signed integer type.

Returns: Attribute value

NewIntL ( const TDesC8 & )

IMPORT_C CSdpAttrValueInt *NewIntL(const TDesC8 &aInt)[static]

Allocates and constructs a new CSdpAttrValueInt object.

aIntBuffer containing a signed integer value for the attribute

Returns: New CSdpAttrValueInt object

Type ( )

TSdpElementType Type()const [virtual]

Reimplemented from CSdpAttrValue::Type()const

Gets the attribute type.

Returns: Attribute type. Always ETypeInt.