locationcentre/lcapp/inc/lcappui.h
branchRCL_3
changeset 16 4721bd00d3da
parent 14 3a25f69541ff
child 21 e15b7f06eba6
equal deleted inserted replaced
14:3a25f69541ff 16:4721bd00d3da
     1 /*
       
     2 * Copyright (c) 2007 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:  Application class for Location Centre Application UI.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_LCAPPUI_H
       
    20 #define C_LCAPPUI_H
       
    21 
       
    22 // SYSTEM INCLUDES
       
    23 #include <eikapp.h>
       
    24 #include <eikdoc.h>
       
    25 #include <e32std.h>
       
    26 #include <coeccntx.h>
       
    27 #include <aknViewAppUi.h>
       
    28 #include <lcnotification.h>
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CLcView;
       
    32 class CLcService;
       
    33 class CLcListBoxModel;
       
    34 
       
    35 /**
       
    36  * Location Centre Application Event Handler.
       
    37  * 
       
    38  * @since v5.0 
       
    39  */
       
    40 class MLcEventHandler
       
    41 	{
       
    42 public:
       
    43 	/**
       
    44 	 * Abstract function which is implemented by the Location Centre Event handler.
       
    45 	 * The implmentation must handle the event specified by the Event type.
       
    46 	 *
       
    47 	 * @param[in] aEvent, Event Type.
       
    48 	 */
       
    49 	virtual void HandleEventL( TInt		aEvent ) = 0;
       
    50 	};
       
    51 	
       
    52 /**
       
    53  *  Location Centre Application's App UI class. This class extents the CAknAppUi
       
    54  *  class for Location Centre.
       
    55  *
       
    56  *  @since S60 v5.0
       
    57  */
       
    58 class CLcAppUi : public CAknViewAppUi,
       
    59                  public MLcNotification,
       
    60                  public MLcEventHandler
       
    61     {
       
    62 public:   
       
    63 	/**
       
    64 	 * Second phase of the two phase constructor
       
    65 	 *
       
    66 	 * Called by the Application framework
       
    67 	 */ 
       
    68     void ConstructL();
       
    69   
       
    70   	/**
       
    71   	 * Virtual destructor
       
    72   	 */
       
    73     virtual ~CLcAppUi();   
       
    74   
       
    75 public: // Inherited from Base classes
       
    76 
       
    77   	/**
       
    78   	 * Inherited from CAknViewAppUi
       
    79   	 */
       
    80     void HandleCommandL(TInt aCommand);    
       
    81     
       
    82   	/**
       
    83   	 * Inherited from MLcNotification
       
    84   	 */    
       
    85     void LcStatusChangedL( TInt aErrorCode );
       
    86         
       
    87     /**
       
    88      * Inherited from MLcEventHandler
       
    89      */
       
    90     void HandleEventL( TInt	aEvent );
       
    91                        
       
    92 private: // Inherited from Base classes
       
    93 
       
    94   	/**
       
    95   	 * Inherited from CAknViewAppUi
       
    96   	 */
       
    97     virtual TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent,
       
    98                                                 TEventCode aType );
       
    99                            
       
   100 private:
       
   101 	/**
       
   102 	 * Location Centre Application's view class
       
   103 	 */       
       
   104     CLcView*    		iLcView;
       
   105     
       
   106     /**
       
   107      * Location Centre API interface object
       
   108      *
       
   109      * Owns
       
   110      */
       
   111     CLcService*    		iLcService;
       
   112     
       
   113     /**
       
   114      * Location Centre list box model
       
   115      *
       
   116      * Owns
       
   117      */
       
   118     CLcListBoxModel*	iListBoxModel;
       
   119     };
       
   120 
       
   121 #endif  // C_LCAPPUI_H
       
   122 
       
   123 // End of File