MTransitionObserver Class Reference

class MTransitionObserver

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

Member Functions Documentation

Complete(CTransition &, TInt)

void Complete ( CTransition & aTransition,
TInt aAsyncPostCheckError
) [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 & aTransition The transition which has completed
TInt aAsyncPostCheckError An 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 &)

void SetCurrentTransition ( 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 & aTransition The transition to set as current