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: #ifndef __MULTIPLESURFACESAPP_H__ sl@0: #define __MULTIPLESURFACESAPP_H__ sl@0: sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: sl@0: _LIT(KParentQueueName, "zorder"); sl@0: sl@0: class CMultipleSurfacesAppUi; sl@0: class CMultipleSurfaces; sl@0: class CEGLRendering; sl@0: sl@0: sl@0: class CMultipleSurfacesAppView : public CCoeControl sl@0: { sl@0: friend class CMultipleSurfacesAppUi; sl@0: sl@0: public: sl@0: CMultipleSurfacesAppView(CMultipleSurfacesAppUi& aAppUi); sl@0: virtual ~CMultipleSurfacesAppView(); sl@0: void ConstructL(const TRect& aRect); sl@0: sl@0: private: sl@0: CMultipleSurfacesAppUi& iAppUi; sl@0: }; sl@0: sl@0: sl@0: class CMultipleSurfacesAppUi : public CEikAppUi sl@0: { sl@0: public: sl@0: virtual ~CMultipleSurfacesAppUi(); 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: CMultipleSurfacesAppView* iAppView; sl@0: CMultipleSurfaces* iMultipleSurfaces; sl@0: }; sl@0: sl@0: sl@0: class CMultipleSurfacesAppDocument : public CEikDocument sl@0: { sl@0: public: sl@0: CMultipleSurfacesAppDocument(CEikApplication& aApp); sl@0: sl@0: private: sl@0: // from CEikDocument sl@0: CEikAppUi* CreateAppUiL(); sl@0: }; sl@0: sl@0: sl@0: class CMultipleSurfacesApp : 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: inline TFileName CMultipleSurfacesApp::ResourceFileName() const sl@0: { sl@0: return KNullDesC(); sl@0: } sl@0: sl@0: #endif sl@0: