diff -r 000000000000 -r 2f259fa3e83a lafagnosticuifoundation/graphicseffects/Adapter/inc/GfxTransClient.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lafagnosticuifoundation/graphicseffects/Adapter/inc/GfxTransClient.h Tue Feb 02 01:00:49 2010 +0200 @@ -0,0 +1,57 @@ +// Copyright (c) 2006-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: +// + +#ifndef _GFXTRANSCLIENT_H_ +#define _GFXTRANSCLIENT_H_ + +#include + +/** +this interface is given to the transition engine on contruction. +It is then to be used to retrieve information about transitions the client has gathered. +It is also used to signal the client. + +@publishedPartner +@released +*/ +class MGfxTransClient + { +public: + /** + Callback called by adapter when a new policy arrives. + @param aPolicy the newly arrived policy. The client takes ownership of the pointer passed. + */ + virtual void TransitionPolicyUpdate(TControlPolicy* aPolicy) = 0; + + /** + resets policies all to its default, ENotSupported. + */ + virtual void ClearAllPolicies() = 0; + + /** + Callback, called by adapter when a transition has stopped animating. + @param aHandle handle for the transition that finished. + */ + virtual void TransitionFinished(TInt aHandle) = 0; + + /** + Used by adapter to get transition data from the client. + @param aHandle handle for the transition to get the data for. + @param aTransData on return contains a pointer to the transition data. Does not transfer ownership. + */ + virtual TInt GetTransitionData(TInt aHandle, const CTransitionData*& aTransData) = 0; + }; + +#endif \ No newline at end of file