eventsui/eventsmgmtui/inc/evtmgmtuimapnavigationadapter.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2006 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's adapter class to Map and Navigation use cases
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CEVTMGMTUIMAPNAVIGATIONADAPTER_H
       
    20 #define CEVTMGMTUIMAPNAVIGATIONADAPTER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <AiwCommon.h>
       
    24 #include <e32std.h>
       
    25 
       
    26 class CAiwServiceHandler;
       
    27 class TCoordinate;
       
    28 
       
    29 /**
       
    30 * The class CEvtMgmtUiMapNavigationAdapter contains the implemenation 
       
    31 * for all the uses cases of Map and Navigation.
       
    32 * Functionality:
       
    33 *   To check map service providers
       
    34 *   To show location on map
       
    35 *   To navigate to the location
       
    36 */
       
    37 
       
    38 class CEvtMgmtUiMapNavigationAdapter : public CBase, 
       
    39                                        public MAiwNotifyCallback
       
    40 	{
       
    41 
       
    42 	public: // Constructors and destructor
       
    43 		/**
       
    44         * Symbian 1st phase static constructor. 
       
    45         *       
       
    46         */        
       
    47         static CEvtMgmtUiMapNavigationAdapter* NewL();
       
    48          
       
    49         static CEvtMgmtUiMapNavigationAdapter* NewLC();
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         ~CEvtMgmtUiMapNavigationAdapter();		
       
    54     
       
    55     public: // New methods       	
       
    56         
       
    57     	/**
       
    58     	 * It will return total map service providers.
       
    59     	 * 
       
    60     	 * @since S60 v9.1
       
    61     	 * 
       
    62     	 * @ret total number of map service providers
       
    63     	 */
       
    64     	TInt MapServiceProvidersL();
       
    65     	
       
    66     	/**
       
    67          * It will show location on map
       
    68          * 
       
    69          * @since S60 v9.1
       
    70          */
       
    71     	void ShowOnMapL( const TCoordinate& aCoordinate );
       
    72     	
       
    73     	/**
       
    74          * It will navigate to location
       
    75          * 
       
    76          * @since S60 v9.1
       
    77          */
       
    78     	void NavigateToPlaceL( const TCoordinate& aCoordinate );
       
    79    
       
    80     public: // from MAiwNotifyCallback
       
    81            /**
       
    82            * The callback function for the get landmark from map use case
       
    83            * This function gets a callback once the user selects a location
       
    84            * from map to save as a landmark.
       
    85            */
       
    86            TInt HandleNotifyL( TInt aCmdId, 
       
    87                                TInt aEventId, 
       
    88                                CAiwGenericParamList &aEventParamList, 
       
    89                                const CAiwGenericParamList &aInParamList );
       
    90            	
       
    91     private:
       
    92     	/**
       
    93         * C++ default constructor.                 
       
    94         */
       
    95         CEvtMgmtUiMapNavigationAdapter(); 
       
    96         
       
    97         /**
       
    98         * Symbian 2nd phase constructor. 
       
    99         */
       
   100         void ConstructL();
       
   101     	    	
       
   102     private: // Data    	
       
   103     	// Owns : Pointer to AIW service handler to send service commands     	
       
   104     	CAiwServiceHandler*     iAiwServiceHandler;
       
   105     	
       
   106     	// Owns : Generic parameter input list     
       
   107     	CAiwGenericParamList*   iInList;
       
   108     	
       
   109     	// Owns : Generic parameter output list    	     	
       
   110         CAiwGenericParamList*   iOutList;      
       
   111 	};
       
   112 
       
   113 #endif //CEVTMGMTUIMAPNAVIGATIONADAPTER_H
       
   114 
       
   115 // End of file
       
   116