os/graphics/graphicstest/uibench/s60/src/tests_zorder/glplanetsapp.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 __GLPLANETSAPP_H__
    23 #define __GLPLANETSAPP_H__
    24 
    25 
    26 #include "cglplanets.h"
    27 
    28 #include <eikappui.h>
    29 #include <eikapp.h>
    30 #include <eikdoc.h>
    31 #include <coecntrl.h>
    32 
    33 
    34 class CGLPlanetsAppUi;
    35 class CEGLRendering;
    36 
    37 class CGLPlanetsAppView : public CCoeControl
    38     {
    39     friend class CGLPlanetsAppUi;
    40     
    41 public:
    42 	CGLPlanetsAppView(CGLPlanetsAppUi& aAppUi);
    43 	virtual ~CGLPlanetsAppView();
    44     void ConstructL(const TRect& aRect);
    45     
    46 private:	
    47 	CGLPlanetsAppUi& iAppUi;	
    48     };
    49     
    50 
    51 class CGLPlanetsAppUi : public CEikAppUi
    52     {    
    53 public:
    54     virtual ~CGLPlanetsAppUi();
    55     void ConstructL();	
    56 	void Terminate();
    57 	void BringToFront();
    58 	
    59 private:
    60 	// From CEikAppUi
    61 	virtual TBool ProcessCommandParametersL(CApaCommandLine &aCommandLine);
    62 
    63 private:
    64     CGLPlanetsAppView* iAppView;  
    65     CGLPlanets*  	   iGLPlanets;
    66     };
    67 
    68 
    69 class CGLPlanetsAppDocument : public CEikDocument
    70 	{
    71 public:
    72 	CGLPlanetsAppDocument(CEikApplication& aApp);
    73 	
    74 private:
    75 	 // from CEikDocument
    76 	CEikAppUi* CreateAppUiL();
    77 	};
    78 
    79 
    80 class CGLPlanetsApp : public CEikApplication
    81 	{
    82 private:
    83 	inline virtual TFileName ResourceFileName() const;
    84 	
    85 	// from CApaApplication
    86 	CApaDocument* CreateDocumentL();
    87 	TUid AppDllUid() const;
    88 	};
    89 
    90 
    91 inline TFileName CGLPlanetsApp::ResourceFileName() const
    92     {
    93     return KNullDesC();
    94     }
    95 
    96 
    97 #endif
    98