os/graphics/graphicstest/uibench/s60/src/tests_zorder/cmultiplesurfaces.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 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 /**
    17  @file
    18  @test
    19  @internalComponent - Internal Symbian test code 
    20 */
    21 
    22 #ifndef CMULTIPLESURFACES_H
    23 #define CMULTIPLESURFACES_H
    24 
    25 
    26 #include "multiplesurfacesapp.h"
    27 #include "surfaceutility.h"
    28 
    29 #include <e32msgqueue.h>
    30 
    31 
    32 class CTWindow;
    33 
    34 
    35 /**
    36  *  CMultipleSurfaces
    37  * 
    38  */
    39 class CMultipleSurfaces : public CBase
    40 	{
    41 public:
    42 	~CMultipleSurfaces();
    43 	static CMultipleSurfaces* NewL(RWsSession& aWs, RWindowGroup& aWindowGroup, TPtrC aBackgroundColor, 
    44 	        CMultipleSurfacesAppUi* aMultipleSurfacesAppUi, TPtrC aParentQueueName);
    45 	void Start();
    46 	void Stop();
    47 
    48 private:
    49 	CMultipleSurfaces(RWsSession& aWs, RWindowGroup& aWindowGroup, CMultipleSurfacesAppUi* aMultipleSurfacesAppUi);
    50 	void ConstructL(TPtrC aBackgroundColor, TPtrC aParentQueueName);
    51 	void RenderL();
    52 	static TInt TimerCallBack(TAny* aMultipleSurfaces);
    53 
    54 private:
    55     RWsSession& iWs;
    56     RWindowGroup& iWindowGroup;
    57     CMultipleSurfacesAppUi* iMultipleSurfacesAppUi;
    58     
    59 	CPeriodic* iTimer;
    60 	RArray<CTWindow*>  iSmallWindows;
    61 	RMsgQueue<TInt> iMsgQueue;
    62 	RMsgQueue<TInt> iParentMsgQueue;
    63 	};
    64 
    65 #endif // CMULTIPLESURFACES_H