TAlfValueCommand Class Reference

class TAlfValueCommand : public TAlfObjectCommand

TAlfValueCommand is a command that operates on a single timed value.

  //Create timed value command to set visualopacity of a visual
  TAlfValueCommand command( visual, EAlfValueCommandVisualSetOpacity, 0.2, 15 );
  
  //Send command , visualopacity will be set
   iEnv->Send( command, 1 );

Inherits from

Constructor & Destructor Documentation

TAlfValueCommand(TAny *, TAlfValueCommandTarget, TReal32, TInt)

IMPORT_CTAlfValueCommand(TAny *aObject,
TAlfValueCommandTargetaObjectType,
TReal32aTarget,
TIntaTransitionTime = 0
)

Constructs a new value command.

Parameters

TAny * aObjectObject. Needs to match with aObjectType
TAlfValueCommandTarget aObjectTypeTimed value to modify.
TReal32 aTargetTarget value
TInt aTransitionTime = 0Time (in milliseconds) for the transition to occur.

TAlfValueCommand(TAny *, TAlfValueCommandTarget, TAlfOp, TReal32, TReal32)

IMPORT_CTAlfValueCommand(TAny *aObject,
TAlfValueCommandTargetaObjectType,
TAlfOpaOperation = EAlfOpSet,
TReal32aTarget = 0.0,
TReal32aTiming = 0.0
)

Constructs a new value command. This constructor takes an operation parameter in addition to the target and timing values.

Parameters

TAny * aObjectObject. Needs to match with aObjectType
TAlfValueCommandTarget aObjectTypeTimed value to modify.
TAlfOp aOperation = EAlfOpSetOperation to perform.
TReal32 aTarget = 0.0Target value
TReal32 aTiming = 0.0Time (in milliseconds) for the transition to occur.

Member Functions Documentation

CommandExtension(const TUid &, TAny **)

IMPORT_C voidCommandExtension(const TUid &aExtensionUid,
TAny **aExtensionParams
)[protected, virtual]

Parameters

const TUid & aExtensionUid
TAny ** aExtensionParams

ExecuteL(CAlfEnv &)

IMPORT_C voidExecuteL(CAlfEnv &aEnv)const [virtual]

Executes the command.

Parameters

CAlfEnv & aEnvThe environment in which the command is being executed.

Size()

IMPORT_C TIntSize()const [virtual]

Returns the size of the command.

Speed()

IMPORT_C TReal32Speed()const

Returns the transition speed. Zero, if not set.

Target()

IMPORT_C TReal32Target()const

Returns the target value.

TimedValue()

IMPORT_C TAlfValueCommandTargetTimedValue()const

Returns the visual that the command operates on.

TransitionTime()

IMPORT_C TIntTransitionTime()const

Returns the transition time.

Member Data Documentation

TInt iSpare1

TInt iSpare1[private]

TInt iSpare2

TInt iSpare2[private]

TReal32 iSpeed

TReal32 iSpeed[private]

Optionally, transition speed in units/second.

TReal32 iTarget

TReal32 iTarget[private]

Target value.

TAlfValueCommandTarget iTimedValue

TAlfValueCommandTarget iTimedValue[private]

Timed value being operated on.

TInt iTransitionTime

TInt iTransitionTime[private]

Transition time in milliseconds.