locationlandmarksrefappfors60/Inc/LandmarksInfoView.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2004-2005 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 *     See class description below
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __LANDMARKS_INFOVIEW_H__
       
    21 #define __LANDMARKS_INFOVIEW_H__
       
    22 
       
    23 #include <aknview.h>
       
    24 #include "LandmarksOperationObserver.h"
       
    25 
       
    26 class CLandmarksApplicationEngine;
       
    27 class CAknNavigationDecorator;
       
    28 class CLandmarksInfoContainer;
       
    29 class CLandmarksEngine;
       
    30 
       
    31 /**
       
    32 *  CLandmarksInfoView is the view displaying landmark's details
       
    33 */
       
    34 class CLandmarksInfoView: public CAknView
       
    35     {
       
    36     public: // Constructors and destructor
       
    37 
       
    38         /**
       
    39         * Two-phased constructor.
       
    40         *
       
    41         * @param aNaviDecorator the navigation decorator displaying the tabs 
       
    42         * @param aEngine the engine used for fetching category data.
       
    43         */
       
    44         static CLandmarksInfoView* NewLC(
       
    45             CAknNavigationDecorator* aNaviDecorator,
       
    46             CLandmarksApplicationEngine& aEngine);
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         ~CLandmarksInfoView();
       
    52 
       
    53     public: // from CAknView
       
    54 
       
    55         /**
       
    56         * Id Identity of this view to the system.
       
    57         *
       
    58         * @return the ID of this view
       
    59         */
       
    60         TUid Id() const;
       
    61 
       
    62         /** 
       
    63         * HandleCommandL handles user menu selections.
       
    64         *
       
    65         * @param aCommand the enumerated code for the option selected
       
    66         */
       
    67         void HandleCommandL(TInt aCommand);
       
    68 
       
    69         /**
       
    70         * DoActivateL is responsible for activating this view.
       
    71         *
       
    72         * @param aPrevViewId The id of the previous view
       
    73         * @param aCustomMessageId message identifier
       
    74         * @param aCustomMessage custom message provided when the view is changed
       
    75         */
       
    76         void DoActivateL(
       
    77             const TVwsViewId& aPrevViewId,
       
    78             TUid aCustomMessageId,
       
    79             const TDesC8& aCustomMessage);
       
    80 
       
    81         /**
       
    82         * DoDeactivate is responsible for deactivating this view.
       
    83         */
       
    84         void DoDeactivate();
       
    85 
       
    86         /** Forwards resource change event to container. Used for 
       
    87          *  layout change handling */
       
    88         void HandleResourceChange( TInt aType );
       
    89 
       
    90     private:
       
    91 
       
    92         /**
       
    93         * C++ constructor.
       
    94         *        
       
    95         * @param aNaviDecorator the navigation decorator displaying the tabs 
       
    96         * @param aEngine the engine used for fetching categories data.
       
    97         */
       
    98         CLandmarksInfoView(
       
    99             CAknNavigationDecorator* aNaviDecorator, 
       
   100             CLandmarksApplicationEngine& aEngine);
       
   101 
       
   102         /**
       
   103         * By default Symbian 2nd phase constructor is private.
       
   104         */
       
   105         void ConstructL();
       
   106 
       
   107         /**
       
   108         * Launches a landmark edit dialog
       
   109         */
       
   110         void EditLandmarkL();
       
   111 
       
   112     private: // Data
       
   113 
       
   114         //! The container containing the graphical components of the view
       
   115         CLandmarksInfoContainer* iContainer;
       
   116 
       
   117         //! The application engine used for accessing landmark data
       
   118         CLandmarksApplicationEngine& iEngine;
       
   119 
       
   120         //! Ddecorates the navi pane (with navigation arrows etc)
       
   121         CAknNavigationDecorator* iNaviDecorator;
       
   122         
       
   123         //! Application name
       
   124         HBufC* iAppName;
       
   125     };
       
   126 
       
   127 
       
   128 #endif // __LANDMARKS_INFOVIEW_H__
       
   129 
       
   130