sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: @internalComponent - Internal Symbian test code sl@0: */ sl@0: sl@0: #ifndef __GLPLANETSAPP_H__ sl@0: #define __GLPLANETSAPP_H__ sl@0: sl@0: sl@0: #include "cglplanets.h" sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: class CGLPlanetsAppUi; sl@0: class CEGLRendering; sl@0: sl@0: class CGLPlanetsAppView : public CCoeControl sl@0: { sl@0: friend class CGLPlanetsAppUi; sl@0: sl@0: public: sl@0: CGLPlanetsAppView(CGLPlanetsAppUi& aAppUi); sl@0: virtual ~CGLPlanetsAppView(); sl@0: void ConstructL(const TRect& aRect); sl@0: sl@0: private: sl@0: CGLPlanetsAppUi& iAppUi; sl@0: }; sl@0: sl@0: sl@0: class CGLPlanetsAppUi : public CEikAppUi sl@0: { sl@0: public: sl@0: virtual ~CGLPlanetsAppUi(); sl@0: void ConstructL(); sl@0: void Terminate(); sl@0: void BringToFront(); sl@0: sl@0: private: sl@0: // From CEikAppUi sl@0: virtual TBool ProcessCommandParametersL(CApaCommandLine &aCommandLine); sl@0: sl@0: private: sl@0: CGLPlanetsAppView* iAppView; sl@0: CGLPlanets* iGLPlanets; sl@0: }; sl@0: sl@0: sl@0: class CGLPlanetsAppDocument : public CEikDocument sl@0: { sl@0: public: sl@0: CGLPlanetsAppDocument(CEikApplication& aApp); sl@0: sl@0: private: sl@0: // from CEikDocument sl@0: CEikAppUi* CreateAppUiL(); sl@0: }; sl@0: sl@0: sl@0: class CGLPlanetsApp : public CEikApplication sl@0: { sl@0: private: sl@0: inline virtual TFileName ResourceFileName() const; sl@0: sl@0: // from CApaApplication sl@0: CApaDocument* CreateDocumentL(); sl@0: TUid AppDllUid() const; sl@0: }; sl@0: sl@0: sl@0: inline TFileName CGLPlanetsApp::ResourceFileName() const sl@0: { sl@0: return KNullDesC(); sl@0: } sl@0: sl@0: sl@0: #endif sl@0: