os/graphics/graphicstest/uibench/s60/src/tests_zorder/glplanetsapp.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/graphicstest/uibench/s60/src/tests_zorder/glplanetsapp.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,98 @@
     1.4 + // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 + // All rights reserved.
     1.6 + // This component and the accompanying materials are made available
     1.7 + // under the terms of "Eclipse Public License v1.0"
     1.8 + // which accompanies this distribution, and is available
     1.9 + // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 + //
    1.11 + // Initial Contributors:
    1.12 + // Nokia Corporation - initial contribution.
    1.13 + //
    1.14 + // Contributors:
    1.15 + //
    1.16 + // Description:
    1.17 + //
    1.18 +
    1.19 +/**
    1.20 + @file
    1.21 + @test
    1.22 + @internalComponent - Internal Symbian test code 
    1.23 +*/
    1.24 +
    1.25 +#ifndef __GLPLANETSAPP_H__
    1.26 +#define __GLPLANETSAPP_H__
    1.27 +
    1.28 +
    1.29 +#include "cglplanets.h"
    1.30 +
    1.31 +#include <eikappui.h>
    1.32 +#include <eikapp.h>
    1.33 +#include <eikdoc.h>
    1.34 +#include <coecntrl.h>
    1.35 +
    1.36 +
    1.37 +class CGLPlanetsAppUi;
    1.38 +class CEGLRendering;
    1.39 +
    1.40 +class CGLPlanetsAppView : public CCoeControl
    1.41 +    {
    1.42 +    friend class CGLPlanetsAppUi;
    1.43 +    
    1.44 +public:
    1.45 +	CGLPlanetsAppView(CGLPlanetsAppUi& aAppUi);
    1.46 +	virtual ~CGLPlanetsAppView();
    1.47 +    void ConstructL(const TRect& aRect);
    1.48 +    
    1.49 +private:	
    1.50 +	CGLPlanetsAppUi& iAppUi;	
    1.51 +    };
    1.52 +    
    1.53 +
    1.54 +class CGLPlanetsAppUi : public CEikAppUi
    1.55 +    {    
    1.56 +public:
    1.57 +    virtual ~CGLPlanetsAppUi();
    1.58 +    void ConstructL();	
    1.59 +	void Terminate();
    1.60 +	void BringToFront();
    1.61 +	
    1.62 +private:
    1.63 +	// From CEikAppUi
    1.64 +	virtual TBool ProcessCommandParametersL(CApaCommandLine &aCommandLine);
    1.65 +
    1.66 +private:
    1.67 +    CGLPlanetsAppView* iAppView;  
    1.68 +    CGLPlanets*  	   iGLPlanets;
    1.69 +    };
    1.70 +
    1.71 +
    1.72 +class CGLPlanetsAppDocument : public CEikDocument
    1.73 +	{
    1.74 +public:
    1.75 +	CGLPlanetsAppDocument(CEikApplication& aApp);
    1.76 +	
    1.77 +private:
    1.78 +	 // from CEikDocument
    1.79 +	CEikAppUi* CreateAppUiL();
    1.80 +	};
    1.81 +
    1.82 +
    1.83 +class CGLPlanetsApp : public CEikApplication
    1.84 +	{
    1.85 +private:
    1.86 +	inline virtual TFileName ResourceFileName() const;
    1.87 +	
    1.88 +	// from CApaApplication
    1.89 +	CApaDocument* CreateDocumentL();
    1.90 +	TUid AppDllUid() const;
    1.91 +	};
    1.92 +
    1.93 +
    1.94 +inline TFileName CGLPlanetsApp::ResourceFileName() const
    1.95 +    {
    1.96 +    return KNullDesC();
    1.97 +    }
    1.98 +
    1.99 +
   1.100 +#endif
   1.101 +