os/textandloc/fontservices/textshaperplugin/test/S60HindiDemo/inc/MainViewview.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * Series 60 version of Hindi Demo application
    16 *
    17 */
    18 
    19 
    20 
    21 #ifndef __MAINVIEW_VIEW_H__
    22 #define __MAINVIEW_VIEW_H__
    23 
    24 #include <aknview.h>
    25 #include "HindiDemo.hrh"
    26 
    27 // -----------------------------------------------------------------------
    28 // Forward ref. to container class
    29 // -----------------------------------------------------------------------
    30 class CMainViewContainer;
    31 
    32 
    33 // -----------------------------------------------------------------------
    34 // CMainViewView
    35 // -----------------------------------------------------------------------
    36 class CMainViewView : public CAknView
    37 {
    38   public:
    39 
    40     // -----------------------------------------------------------------------
    41     // Creates a CMainViewView object
    42     // -----------------------------------------------------------------------
    43     static CMainViewView* NewL();
    44 
    45     // -----------------------------------------------------------------------
    46     // Creates a CMainViewView object
    47     // -----------------------------------------------------------------------
    48     static CMainViewView* NewLC();
    49 
    50     // -----------------------------------------------------------------------
    51     // Identify of this view to the system
    52     // -----------------------------------------------------------------------
    53     TUid Id() const;
    54 
    55     // -----------------------------------------------------------------------
    56     // Command Handler
    57     // -----------------------------------------------------------------------
    58     void HandleCommandL(TInt aCommand);
    59 
    60     // -----------------------------------------------------------------------
    61     // Activates this View
    62     // -----------------------------------------------------------------------
    63     void DoActivateL(const TVwsViewId &aPrevViewId, TUid  aCustomMessageId, const TDesC8& aCustomMessage);
    64 
    65     // -----------------------------------------------------------------------
    66     // Deactivate this view
    67     // -----------------------------------------------------------------------
    68     void DoDeactivate();
    69 
    70   private:
    71     CMainViewView();
    72    ~CMainViewView();
    73 
    74     // -----------------------------------------------------------------------
    75     // Performs second phase construction of this view
    76     // -----------------------------------------------------------------------
    77     void ConstructL();
    78 
    79     // -----------------------------------------------------------------------
    80     // Container for this view
    81     // -----------------------------------------------------------------------
    82     CMainViewContainer* iContainer;
    83 
    84     // -----------------------------------------------------------------------
    85     // Identifier for this view
    86     // -----------------------------------------------------------------------
    87     TUid iIdentifier;
    88 };
    89 
    90 
    91 #endif // __MAINVIEW_VIEW_H__
    92