basiclocationinfodisplay/blid/ui/inc/CBlidSavedWayptsView.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 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:  Declares main view for Blid application.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef BLIDSAVEDWAYPTSVIEW_H
       
    19 #define BLIDSAVEDWAYPTSVIEW_H
       
    20 
       
    21 // INCLUDES
       
    22 #include "CBlidBaseView.h"
       
    23 #include "MBlidRouter.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CBlidSavedWayptsContainer;
       
    27 class MBlidSettings;
       
    28 
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  CBlidSavedWayptsView view class.
       
    34 *
       
    35 */
       
    36 class CBlidSavedWayptsView : public CBlidBaseView
       
    37     {
       
    38     public: // Constructors and destructor
       
    39 
       
    40         /**
       
    41          * C++ default constructor.
       
    42          * @param aKeyProcessor A pointer to MKeyProcessor
       
    43          * @return Created view object
       
    44          */
       
    45         static CBlidSavedWayptsView* NewLC( MKeyProcessor& aKeyProcessor );
       
    46 
       
    47         /**
       
    48          * Destructor.
       
    49          */
       
    50         ~CBlidSavedWayptsView();
       
    51 
       
    52     private: // constructor
       
    53         /**
       
    54          * C++ constructor
       
    55          * @param aKeyProcessor A pointer  to MKeyProcessor
       
    56          */
       
    57         CBlidSavedWayptsView( MKeyProcessor& aKeyProcessor );
       
    58 
       
    59         /**
       
    60          * By default Symbian 2nd phase constructor is private.
       
    61          */
       
    62         void ConstructL();
       
    63 
       
    64     public: //From MBlidEngObserver
       
    65         void NotifyL( const TBool aOnlineMode );
       
    66         //From CBlidBaseView
       
    67         void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
    68         void HandleWaypointsDeletionL();
       
    69 
       
    70     public: // From CAknView
       
    71         TUid Id() const;
       
    72         void HandleCommandL(TInt aCommand);
       
    73 
       
    74     #ifdef RD_SCALABLE_UI_V2
       
    75     private:
       
    76        /**
       
    77         * From CBlidBaseView.
       
    78         */
       
    79         void HandleListBoxSelectionL();
       
    80     #endif // RD_SCALABLE_UI_V2
       
    81             
       
    82     private: // From CAknView
       
    83         void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
       
    84             const TDesC8& aCustomMessage);
       
    85         void DoDeactivate();
       
    86         TBool RenameWaypointL();
       
    87         TBool DeleteWaypointL(TInt aIndex);
       
    88         TBool DeleteWaypointsL(const CArrayFix<TInt>& aIndexes);
       
    89 
       
    90     private: // Data
       
    91         /// Own: A pointer to container 
       
    92         CBlidSavedWayptsContainer* iContainer;
       
    93     
       
    94         /// Not owned: A pointer to settings model
       
    95         MBlidSettings* iSettings;
       
    96         
       
    97         TVwsViewId iPreviousViewid;
       
    98         
       
    99     };
       
   100 
       
   101 #endif // End of File