os/graphics/graphicstest/uibench/s60/src/tests_zorder/cglplanets.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 /**
    17  @file
    18  @test
    19  @internalComponent - Internal Symbian test code 
    20 */
    21 
    22 #ifndef CGLPLANETS_H
    23 #define CGLPLANETS_H
    24 
    25 #include "eglenvironment.h"
    26 #include "model.h"
    27 
    28 #include <e32std.h>
    29 #include <e32base.h>
    30 #include <e32msgqueue.h> 
    31 
    32 class CGLPlanetsAppUi;
    33 
    34 class CGLPlanets : public CBase
    35 	{
    36 public:
    37 	~CGLPlanets();
    38 	static CGLPlanets* NewL(RWindow& aWindow, TPtrC aBackgroundColor, CGLPlanetsAppUi* aApplication, TPtrC aParentQueueName);
    39 	void Start();
    40 	void Stop();
    41 
    42 private:
    43 	CGLPlanets(RWindow& aWindow, CGLPlanetsAppUi* aApplication);
    44 	void ConstructL(TPtrC aBackgroundColor, TPtrC aParentQueueName);
    45 
    46 	void Render();
    47 	static TInt TimerCallBack(TAny* aGLPlanets);
    48 
    49 private:
    50 	CPeriodic* iTimer;
    51 	CEglEnvironment* iEglEnvironment;
    52 	CModel* iModel;
    53 	TInt iTime;
    54 	RWindow& iWindow;
    55 	RMsgQueue<TInt> iMsgQueue;
    56 	RMsgQueue<TInt> iParentMsgQueue;
    57 	CGLPlanetsAppUi* iApplication;
    58 	};
    59 
    60 #endif // CGLPLANETS_H