First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
27 const TUint8 KRedirectorInfoSig = 0x7e;
29 NONSHARABLE_STRUCT(TRedirectorInfo)
32 TAny* iFrontBufferInterface;
33 TAny* iBackBufferInterface;
34 TAny* iScreenConfigInterface;
35 TInt iScreenBitmapHandle;
36 TInt iFlickerBitmapHandle;
40 NONSHARABLE_CLASS(CWsRedir): public CWsGraphic
49 IMPORT_C static CWsRedir* NewL();
50 IMPORT_C static CWsRedir* NewL(TInt aScreenId);
51 IMPORT_C static CWsRedir* NewL(TInt aScreenId, TBool aDisableWin);
53 IMPORT_C TInt Redirect(TBufferType aWhich, TBool aHow);
54 IMPORT_C TInt RedirectUsingWsBackBuffer(TBool aHow);
55 IMPORT_C TInt QueryPlugin(TRedirectorInfo& aInfo);
56 IMPORT_C void SetCallBack(TCallBack aCallBack);
58 // override CWsGraphic
59 virtual void HandleMessage(const TDesC8& aData);
60 virtual void OnReplace();
62 TBool iIsFrontRedirected;
63 TBool iIsBackRedirected;
65 TRedirectorInfo* iReq;