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