lafagnosticuifoundation/graphicseffects/StubAdapterInc/gfxtransadapterstub.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef _GFXTRANSADAPTERSTUB_H_
       
    17 #define _GFXTRANSADAPTERSTUB_H_
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 #include "GfxTransAdapter.h"
       
    22 
       
    23 class CCoeControl;
       
    24 
       
    25 /** 
       
    26 A class containing the basic, stub methods for an engine adapter.  The
       
    27 adapter sits between the client and the engine, and will need to be customised
       
    28 for each engine.
       
    29 
       
    30 @internalTechnology
       
    31 */
       
    32 NONSHARABLE_CLASS(CGfxTransAdapterStub) : public CBase, public MGfxTransAdapter
       
    33 	{
       
    34 private:
       
    35 	CGfxTransAdapterStub(MGfxTransClient* aClient);
       
    36 	~CGfxTransAdapterStub();
       
    37 public:
       
    38 	void ConstructL();
       
    39 	//MGfxTransAdapter
       
    40 
       
    41 	TInt HandleClientState(TClientState aState, const CCoeControl *aKey, TInt aHandle); 
       
    42 	TBool IsActive();
       
    43 	TControlPolicy* GetTransitionPolicies(TInt &aCount);
       
    44 	void StartTransition(TInt aHandle);
       
    45 	void HandleParticpantUpdate(TInt aHandle, const CParticipantData* aParticipant, RWsGraphicMsgBuf* aCommandBuffer, const TRect& aDrawRect, const TRect& aBoundingRect);
       
    46 	void BeginFullScreen(TUint aAction, const TRect &aEffectArea);
       
    47 	void BeginFullScreen(TUint aAction, const TRect &aEffectArea, TUint aType, const TDesC8& aParams);
       
    48 	void EndFullScreen();
       
    49 	void AbortFullScreen();
       
    50 	void NotifyExternalState(TInt aState, const TDesC8* aArg);
       
    51 
       
    52 private:
       
    53 	friend class MGfxTransAdapter;
       
    54 	MGfxTransClient* iClient;
       
    55 	};
       
    56 
       
    57 #endif