diff -r 000000000000 -r bde4ae8d615e os/ossrv/lowlevellibsandfws/pluginfw/Test_Bed/inc/TransitionObserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/ossrv/lowlevellibsandfws/pluginfw/Test_Bed/inc/TransitionObserver.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,68 @@ +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// This file contains the definition of the class MTransitionObserver +// +// + +/** + @test +*/ + +#ifndef __TRANSITIONOBSERVER_H__ +#define __TRANSITIONOBSERVER_H__ + +class CTransition; + +/** + @internalAll + Comments : Provides a callback method to the CUnitTest to indicate that the + specified transition has completed an asynchronous function. + */ + +class MTransitionObserver + { +public: +/** + @fn virtual void SetCurrentTransition(CTransition& aTransition) = 0 + 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 + @param aTransition The transition to set as current + @return void + @pre None + @post aTransition will be stored as a pointer to the currently executing transition + */ + + virtual void SetCurrentTransition(CTransition& aTransition) = 0; + +/** + @fn virtual void Complete(CTransition& aTransition, TInt aAsyncPostCheckError) = 0 + Intended Usage : Called to indicate that an asynchronous function on the specified + transition has completed. + @since 7.0 + @param aTransition The transition which has completed + @param 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. + @pre None + @post Depends on observer implementation. For example, aTransition has completed, + therefore if all transitions have completed the unit test is complete. + */ + + virtual void Complete(CTransition& aTransition, TInt aAsyncPostCheckError) = 0; + }; + +#endif