class CSdpAttrValueUint : public CSdpAttrValue |
A unsigned integer value of an attribute.
The value can be up to 128 bits in size. You need to choose to use either Uint() for up to 32 bit size, Uint64() for up to 64 bit size or Uint128() for up to 128 bit size. The size can be found using DataSize() . If the incorrect function is used the code will panic.
Public Member Functions | |
---|---|
~CSdpAttrValueUint () | |
TUint | DataSize () |
const TPtrC8 | Des () |
TBool | DoesIntFit () |
IMPORT_C CSdpAttrValueUint * | NewUintL (const TDesC8 &) |
IMPORT_C void | SetUintValue (const TDesC8 &) |
TSdpElementType | Type () |
TUint | Uint () |
Private Member Functions | |
---|---|
CSdpAttrValueUint (const TDesC8 &) | |
TInt | Extension_ ( TUint , TAny *&, TAny *) |
Private Attributes | |
---|---|
TBuf8 < KSdpMaxUintSize > | iUint |
CSdpAttrValueUint | ( | const TDesC8 & | aUint | ) | [private] |
const TDesC8 & aUint |
TBool | DoesIntFit | ( | ) | const [virtual] |
Tests if the attribute can be stored in an integer value.
TInt | Extension_ | ( | TUint | aExtensionId, |
TAny *& | a0, | |||
TAny * | a1 | |||
) | [private, virtual] |
The extension method provides a polymorphic behaviour to allow interface extension.
Implements the functions for the Uint64 and Uint128 without breaking binary compatibility
IMPORT_C CSdpAttrValueUint * | NewUintL | ( | const TDesC8 & | aUint | ) | [static] |
Allocates and constructs a new CSdpAttrValueUint object.
const TDesC8 & aUint | Buffer containing an unsigned integer value for the attribute |
IMPORT_C void | SetUintValue | ( | const TDesC8 & | aValue | ) |
Replaces the current value.
const TDesC8 & aValue | The new value. The provided value must not exceed KSdpMaxUintSize. |
TUint | Uint | ( | ) | const [virtual] |
Gets the value as an unsigned integer type.
The size of the unsigned integer should be checked with DataSize() before calling.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.