TAiwGenericParam Class Reference

#include <mw/AiwGenericParam.h>

Link against: ServiceHandler.lib

class TAiwGenericParam

Detailed Description

Generic parameter class for passing data between applications. A generic parameter is a pair of semantic ID and variant value. The semantic ID tells the purpose of the parameter, for example a file name, URL or phone number. The variant value contains the data format and actual value. This class does not implement any consistency checks between the semantic ID and value's data format. So one semantic ID can be expressed as alternative data formats.

Since
Series 60 2.6

See also: TAiwVariant CAiwGenericParamList

Constructor & Destructor Documentation

TAiwGenericParam ( )

TAiwGenericParam()[inline]

Constructs a generic parameter.

TAiwGenericParam ( TGenericParamId )

TAiwGenericParam(TGenericParamIdaSemanticId)[inline]

Constructs a generic parameter.

ParameterDescription
aSemanticIdThe semantic ID of the parameter, one of TGenericParamId values.

TAiwGenericParam ( TGenericParamId, const TAiwVariant & )

TAiwGenericParam(TGenericParamIdaSemanticId,
const TAiwVariant &aValue
)[inline]

Constructs a generic parameter.

ParameterDescription
aSemanticIdThe semantic ID of the parameter, one of TGenericParamId values.
aValueThe parameter value.

Member Function Documentation

Reset ( )

voidReset()[inline]

Resets the semantic ID and the value of this parameter.

SemanticId ( )

TGenericParamId SemanticId()const [inline]

Returns the semantic ID of this parameter.

Returns: The semantic ID.

SetSemanticId ( TGenericParamId )

voidSetSemanticId(TGenericParamIdaSemanticId)[inline]

Sets the semantic ID. Possibly set previous ID is overwritten.

ParameterDescription
aSemanticIdThe semantic ID of the parameter.

Value ( )

TAiwVariant &Value()[inline]

Returns the value of this parameter.

Returns: The value of the parameter.

Value ( )

const TAiwVariant &Value()const [inline]

Returns the const value of this parameter.

Returns: The const value of the parameter.