landmarksui/app/inc/CLmkByLmView.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2002-2006 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:    LandmarksUi Content File -    This class has implementation for 'By Landmarks name' view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef CLMKBYLMVIEW_H
       
    24 #define CLMKBYLMVIEW_H
       
    25 
       
    26 // INCLUDES
       
    27 #include "CLmkBaseView.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CLmkByLmContainer;
       
    31 class MLmkListMemento;
       
    32 class CLmkSender;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  CLmkByLmView view class.
       
    38 *
       
    39 */
       
    40 class CLmkByLmView : public CLmkBaseView
       
    41     {
       
    42     public: // Constructors and destructor
       
    43         /**
       
    44         * C++ default constructor.
       
    45         * @param aKeyProcessor
       
    46         * @param aLmkSender
       
    47         * @return created CLmkByLmView object
       
    48         */
       
    49         static CLmkByLmView* NewLC( MLmkKeyProcessor& aKeyProcessor,
       
    50                                     CLmkSender& aLmkSender );
       
    51 
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         ~CLmkByLmView();
       
    56 
       
    57     private: // constructor
       
    58         /**
       
    59         * C++ constructor
       
    60         * @param aKeyProcessor
       
    61         * @param aLmkSender
       
    62         * @return newly instantiated object
       
    63         */
       
    64         CLmkByLmView( MLmkKeyProcessor& aKeyProcessor,
       
    65                       CLmkSender& aLmkSender );
       
    66 
       
    67         /**
       
    68         * By default Symbian 2nd phase constructor is private.
       
    69         */
       
    70         void ConstructL();
       
    71 
       
    72     public: // From MLmkKeyProcessor
       
    73 		TBool ProcessKeyEventL( const TKeyEvent& aKeyEvent,
       
    74                                 TEventCode aType );
       
    75 
       
    76     public: // From CAknView
       
    77         TUid Id() const;
       
    78         void HandleCommandL( TInt aCommand );
       
    79 
       
    80     protected:  // From MEikMenuObserver
       
    81         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    82 
       
    83     private: //From CAknView
       
    84         void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId,
       
    85                           const TDesC8& aCustomMessage );
       
    86         void DoDeactivate();
       
    87     private://From CLmkBaseView
       
    88 
       
    89     	void EnableMskMenuL(TBool  aEnable);
       
    90     	void EnableMskLabelL(TBool aEnable);
       
    91 
       
    92     private: // New functions
       
    93     	void AttachAIWMenuInterestL();
       
    94     	TBool HandleAIWserviceCommandsL( TInt aServiceCommand ,
       
    95 														  TInt aMenuCommand);
       
    96 
       
    97     public : // Added for Landscape
       
    98 
       
    99 		void Update();
       
   100 
       
   101 	#ifdef RD_SCALABLE_UI_V2
       
   102 	protected://for touch support
       
   103 
       
   104 		//from MEikListBoxObserver
       
   105     	void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
       
   106     #endif//RD_SCALABLE_UI_V2
       
   107     private: // Data
       
   108         /// Own: A pointer to container
       
   109         CLmkByLmContainer* iContainer;
       
   110         // Own: list status information
       
   111         MLmkListMemento* iListMemento;
       
   112         /// Ref: landmark sender
       
   113         CLmkSender& iLmkSender;
       
   114     };
       
   115 
       
   116 #endif // CLMKBYLMVIEW_H
       
   117 
       
   118 // End of File