diff -r 000000000000 -r f0cf47e981f9 tsrc/CenrepEditor/inc/cenrepeditorappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tsrc/CenrepEditor/inc/cenrepeditorappui.h Thu Dec 17 08:44:37 2009 +0200 @@ -0,0 +1,104 @@ +/* +* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Declares UI class for application. +* +*/ + +#ifndef AIWTESTAPPUI_H +#define AIWTESTAPPUI_H + +// INCLUDES +#include "cenrepeditormodel.h" + +#include +#include +#include +#include +#include +#include +#include +#include + + +// FORWARD DECLARATIONS +class CCenrepEditorContainer; +class CAiwServiceHandler; +class CMusManager; +class CMusAvaInterface; +class CPhoneResources; +class CMusApplication; + +// CLASS DECLARATION + +/** +* Application UI class. +* Provides support for the following features: +* - EIKON control architecture +*/ +class CCenrepEditorAppUi : public CAknViewAppUi + { + public: // Constructors and destructor + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + /** + * Destructor. + */ + virtual ~CCenrepEditorAppUi(); + + public: // New functions + CPhoneResources* PhoneResouces(); + COtherResources* OtherResouces(); + CMusApplication* MusApplication(); + + private: + /** + * From MEikMenuObserver, dynamically initialises a menu pane. + * @param aResourceId The menu's ID. + * @param aMenuPane The in-memory representation of the menu pane. + */ + void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); + + private: + /** + * From CEikAppUi, takes care of command handling. + * @param aCommand command to be handled + */ + void HandleCommandL(TInt aCommand); + + /** + * From CEikAppUi, handles key events. + * @param aKeyEvent Event to handled. + * @param aType Type of the key event. + * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). + */ + virtual TKeyResponse HandleKeyEventL( + const TKeyEvent& aKeyEvent,TEventCode aType); + + private: + CAknNavigationControlContainer* iNaviPane; + CAknTabGroup* iTabGroup; + CAknNavigationDecorator* iDecoratedTabGroup; + + private: + CPhoneResources* iPhoneResources; + COtherResources* iOtherResources; + CMusApplication* iMusApplication; + }; + +#endif + +// End of File