Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <btsdp.h>
Link against: sdpdatabase.lib

Class CSdpAttrValueInt

class CSdpAttrValueInt : public CSdpAttrValue;

Description

A signed integer value of an attribute.

The value can be up to 128 bits in size.

Derivation

Members

Defined in CSdpAttrValueInt:

Inherited from CBase:

Inherited from CSdpAttrValue:


Construction and destruction


~CSdpAttrValueInt()

virtual ~CSdpAttrValueInt();

Description

Destructor.

[Top]


Member functions


NewIntL(const TDesC8 &)

IMPORT_C static CSdpAttrValueInt* NewIntL(const TDesC8 &aInt);

Description

Allocates and constructs a new CSdpAttrValueInt object.

Parameters

const TDesC8 &aInt

Buffer containing a signed integer value for the attribute

Return value

CSdpAttrValueInt *

New CSdpAttrValueInt object


Type()const

virtual TSdpElementType Type() const;

Description

Gets the attribute type.

Return value

TSdpElementType

Attribute type. Always ETypeInt.


DataSize()const

virtual TUint DataSize() const;

Description

Gets the size of the attribute.

Return value

TUint

Size of the attribute in bytes


Int()const

virtual TInt Int() const;

Description

Gets the value as a signed integer type.

Return value

TInt

Attribute value


DoesIntFit()const

virtual TBool DoesIntFit() const;

Description

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

Return value

TBool

True if the attribute can be stored in an integer value


Des()const

virtual const TPtrC8 Des() const;

Description

Gets the value as a data buffer.

Return value

const TPtrC8

Attribute value