basiclocationinfodisplay/blid/ui/inc/CBlidMainView.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 CBLIDMAINVIEW_H
       
    19 #define CBLIDMAINVIEW_H
       
    20 
       
    21 // INCLUDES
       
    22 #include "CBlidBaseView.h"
       
    23 #include "CBlidLocSettingLauncher.h"
       
    24 #include "CBlidMainControl.h"
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CBlidMainControl;
       
    29 class CAlfEnv;
       
    30 class CAlfControlGroup;
       
    31 class CAlfDisplay;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  CBlidMainView view class.
       
    37 *
       
    38 */
       
    39 class CBlidMainView : public CBlidBaseView
       
    40     {
       
    41     public: // Constructors and destructor
       
    42         /**
       
    43          * C++ default constructor.
       
    44          * @param aKeyProcessor 
       
    45          * @return Created CBlidMainView object
       
    46          */
       
    47         static CBlidMainView* NewLC( MKeyProcessor& aKeyProcessor,CAlfEnv& aEnv );
       
    48 
       
    49         /**
       
    50          * Destructor.
       
    51          */
       
    52         ~CBlidMainView();
       
    53         
       
    54         /**
       
    55          * View Getter
       
    56          */
       
    57         CBlidMainControl* GetControl();
       
    58 
       
    59     private: // constructor
       
    60         /**
       
    61          * C++ constructor
       
    62          * @param aKeyProcessor
       
    63          */
       
    64         CBlidMainView( MKeyProcessor& aKeyProcessor,CAlfEnv& aEnv );
       
    65 
       
    66         /**
       
    67          * By default Symbian 2nd phase constructor is private.
       
    68          */
       
    69         void ConstructL();
       
    70 
       
    71     public: // From MKeyProcessor
       
    72 		TBool ProcessKeyEventL( const TKeyEvent& aKeyEvent,
       
    73                                 TEventCode aType );
       
    74 
       
    75     public: // CAknView
       
    76         TUid Id() const;
       
    77         void HandleCommandL(TInt aCommand);
       
    78         void HandleResourceChangeL( TInt aType );        
       
    79 
       
    80 		#ifdef RD_SCALABLE_UI_V2
       
    81 		void HandleListBoxSelectionL();
       
    82 		#endif //RD_SCALABLE_UI_V2
       
    83 		
       
    84     public: //From MBlidEngObserver
       
    85         void NotifyL( const TBool aOnlineMode );
       
    86         void NotifyErrorL( TInt aErrorCode );
       
    87 		            
       
    88 
       
    89     private: //From CAknView
       
    90         void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
       
    91             const TDesC8& aCustomMessage);
       
    92         void DoDeactivate();
       
    93     
       
    94     private: // Data
       
    95 		//own:navigationcontrol class
       
    96 		CBlidMainControl*  iMainCtrl;
       
    97 		
       
    98 		CAlfEnv& iEnv;
       
    99 
       
   100 		CAlfControlGroup* iMainCtrlGroup;
       
   101 		
       
   102 		CAlfDisplay*		iCtrlDisplay;
       
   103     };
       
   104 
       
   105 #endif  // CBLIDMAINVIEW_H
       
   106 
       
   107 // End of File