locationsystemui/locationsysui/locblidsatelliteinfo/inc/csatellitemeasurementsetting.h
branchRCL_3
changeset 44 2b4ea9893b66
parent 42 02ba3f1733c6
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
     1 /*
       
     2 * Copyright (c) 2008 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:  Adapter for System of Measurement.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSATELLITEMEASUREMENTSETTING_H
       
    20 #define CSATELLITEMEASUREMENTSETTING_H
       
    21 
       
    22 //  System Includes
       
    23 #include <e32base.h>
       
    24 #include <locnotprefplugindomaincrkeys.h>
       
    25 
       
    26 // Forward Declarations
       
    27 class MSatelliteMeasurementSettingObserver;
       
    28 class CRepository;
       
    29 
       
    30 // Constant Declarations
       
    31 
       
    32 // Class Definition
       
    33 /**
       
    34  * Adapter for System of Measurement.
       
    35  */
       
    36 NONSHARABLE_CLASS( CSatelliteMeasurementSetting ) : public CActive
       
    37 	{
       
    38 	public:
       
    39 		/**
       
    40      * Creates new System of Measurement Adapter
       
    41      *
       
    42      * @param  aAdapterObsrv             			Observer to the System of Measurement Adapter
       
    43  		 * @return CSatelliteMeasurementSetting*	Pointer to the CSatelliteMeasurementSetting
       
    44      */                                                 
       
    45     static CSatelliteMeasurementSetting* NewL( 
       
    46                         MSatelliteMeasurementSettingObserver&	aAdapterObsrv );
       
    47 
       
    48 
       
    49 		/**
       
    50      * Creates new System of Measurement Adapter
       
    51      * Leaves the object on the Clean up stack         
       
    52      *
       
    53      * @param  aAdapterObsrv			            Observer to the System of Measurement Adapter
       
    54  		 * @return CSatelliteMeasurementSetting*	Pointer to the CSatelliteMeasurementSetting
       
    55      */                                                 
       
    56     static CSatelliteMeasurementSetting* NewLC( 
       
    57                         MSatelliteMeasurementSettingObserver&	aAdapterObsrv );	
       
    58 
       
    59  
       
    60 		/**
       
    61 		 * Destructor
       
    62 		 */
       
    63 		~CSatelliteMeasurementSetting ();
       
    64 
       
    65 		/**
       
    66 		 * Returns the current value of the System of measurements settings
       
    67 		 *
       
    68 		 * @return TLocSystemofMeasurementValues  Current value of the System of measurements settings
       
    69 		 */
       
    70 		TLocSystemofMeasurementValues SysofMeasurementL();
       
    71         
       
    72   protected:
       
    73     /**
       
    74      * Inherited from CActive
       
    75      */
       
    76     void RunL();
       
    77     
       
    78     /**
       
    79      * Inherited from CActive
       
    80      */
       
    81     void DoCancel();
       
    82                 		
       
    83 	private:
       
    84 		/**
       
    85  		 * Constructor
       
    86 		 */
       
    87 		CSatelliteMeasurementSetting( MSatelliteMeasurementSettingObserver&	aAdapterObsrv );
       
    88 
       
    89 		/**
       
    90 		 * Second Phase Constructor
       
    91 		 */
       
    92 		void ConstructL();
       
    93 	
       
    94 		/**
       
    95 		 * Start notification from the Central repository server for any changes in the
       
    96 		 * System of measurements key value
       
    97 		 */
       
    98 		void StartNotification();
       
    99 				
       
   100 	private:
       
   101 	    /**
       
   102 	     * Reference to the Settings observer
       
   103 	     */
       
   104 		MSatelliteMeasurementSettingObserver&     iObserver;
       
   105 	
       
   106 		/**
       
   107 		 * Reference to the Central repository object
       
   108 		 *
       
   109 		 * Owns
       
   110 		 */
       
   111 		CRepository*                    iRepository; 		
       
   112 	};			
       
   113 
       
   114 
       
   115 #endif //CSATELLITEMEASUREMENTSETTING_H