sl@0: /* sl@0: * Copyright (c) 2005-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: * Series 60 version of Hindi Demo application sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #ifndef __MAINVIEW_VIEW_H__ sl@0: #define __MAINVIEW_VIEW_H__ sl@0: sl@0: #include sl@0: #include "HindiDemo.hrh" sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Forward ref. to container class sl@0: // ----------------------------------------------------------------------- sl@0: class CMainViewContainer; sl@0: sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // CMainViewView sl@0: // ----------------------------------------------------------------------- sl@0: class CMainViewView : public CAknView sl@0: { sl@0: public: sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Creates a CMainViewView object sl@0: // ----------------------------------------------------------------------- sl@0: static CMainViewView* NewL(); sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Creates a CMainViewView object sl@0: // ----------------------------------------------------------------------- sl@0: static CMainViewView* NewLC(); sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Identify of this view to the system sl@0: // ----------------------------------------------------------------------- sl@0: TUid Id() const; sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Command Handler sl@0: // ----------------------------------------------------------------------- sl@0: void HandleCommandL(TInt aCommand); sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Activates this View sl@0: // ----------------------------------------------------------------------- sl@0: void DoActivateL(const TVwsViewId &aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage); sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Deactivate this view sl@0: // ----------------------------------------------------------------------- sl@0: void DoDeactivate(); sl@0: sl@0: private: sl@0: CMainViewView(); sl@0: ~CMainViewView(); sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Performs second phase construction of this view sl@0: // ----------------------------------------------------------------------- sl@0: void ConstructL(); sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Container for this view sl@0: // ----------------------------------------------------------------------- sl@0: CMainViewContainer* iContainer; sl@0: sl@0: // ----------------------------------------------------------------------- sl@0: // Identifier for this view sl@0: // ----------------------------------------------------------------------- sl@0: TUid iIdentifier; sl@0: }; sl@0: sl@0: sl@0: #endif // __MAINVIEW_VIEW_H__ sl@0: