MTransitionObserver Class Reference

class MTransitionObserver

Comments : Provides a callback method to the CUnitTest to indicate that the specified transition has completed an asynchronous function.

Public Member Functions
voidComplete(CTransition &, TInt)
voidSetCurrentTransition(CTransition &)

Member Functions Documentation

Complete(CTransition &, TInt)

voidComplete(CTransition &aTransition,
TIntaAsyncPostCheckError
)[pure virtual]
Intended Usage : Called to indicate that an asynchronous function on the specified transition has completed.
Since
7.0
Pre-condition
None
Post-condition
Depends on observer implementation. For example, aTransition has completed, therefore if all transitions have completed the unit test is complete.

Parameters

CTransition & aTransitionThe transition which has completed
TInt aAsyncPostCheckErrorAn error code from the second phase of post-condition validation done after the transition's asynchronous request had completed. Used for asynchronous transitions only - for synchronous transitions, 2-phase post-condition checking does not apply, and a value of KErrNone is supplied.

SetCurrentTransition(CTransition &)

voidSetCurrentTransition(CTransition &aTransition)[pure virtual]
Intended Usage : Passes the transition which is about to run. This allows transition information can be retrieved and Repeat() can then be called on the transition.
Since
7.0
Pre-condition
None
Post-condition
aTransition will be stored as a pointer to the currently executing transition

Parameters

CTransition & aTransitionThe transition to set as current