Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Class CSdpAttrValueUint

class CSdpAttrValueUint : public CSdpAttrValue;

Description

A unsigned integer value of an attribute.

The value can be up to 128 bits in size. You need to choose to use either CSdpAttrValueUint::Uint()const for up to 32 bit size, CSdpAttrValue::Uint64(TUint64 &)const for up to 64 bit size or CSdpAttrValue::Uint128(TUint64 &,TUint64 &)const for up to 128 bit size. The size can be found using CSdpAttrValueUint::DataSize()const. If the incorrect function is used the code will panic.

Derivation

Members

Defined in CSdpAttrValueUint:

Inherited from CBase:

Inherited from CSdpAttrValue:


Construction and destruction


~CSdpAttrValueUint()

virtual ~CSdpAttrValueUint();

Description

Destructor.

[Top]


Member functions


NewUintL(const TDesC8 &)

IMPORT_C static CSdpAttrValueUint* NewUintL(const TDesC8 &aUint);

Description

Allocates and constructs a new CSdpAttrValueUint object.

Parameters

const TDesC8 &aUint

Buffer containing an unsigned integer value for the attribute

Return value

CSdpAttrValueUint *

New CSdpAttrValueUint object


SetUintValue(const TDesC8 &)

IMPORT_C void SetUintValue(const TDesC8 &aValue);

Description

Replaces the current value.

Parameters

const TDesC8 &aValue

The new value. The provided value must not exceed KSdpMaxUintSize.

Panic codes

USER

23 if the supplied value is too long.


Type()const

virtual TSdpElementType Type() const;

Description

Gets the attribute type.

Return value

TSdpElementType

Attribute type. Always ETypeUint.


DataSize()const

virtual TUint DataSize() const;

Description

Gets the size of the attribute.

Return value

TUint

Size of the attribute in bytes


Uint()const

virtual TUint Uint() const;

Description

Gets the value as an unsigned integer type.

The size of the unsigned integer should be checked with CSdpAttrValueUint::DataSize()const before calling.

Return value

TUint

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