basiclocationinfodisplay/blid/engine/inc/CBlidSettings.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:  Provides access to Blid settings.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CBLIDSETTINGS_H
       
    21 #define CBLIDSETTINGS_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "MBlidSettings.h"
       
    26 #include "MBlidMeasurementSettings.h"
       
    27 
       
    28 /// FORWARD DECLARATION
       
    29 class MBlidEngObserver;
       
    30 class CBlidMeasurementSettingListener;
       
    31 class CRepository;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  A Blid engine API for blid application.
       
    37 *  Provides access to blid settings.
       
    38 *  This class implements the MBlidSettings interface provided by this dll.
       
    39 *
       
    40 */
       
    41 class CBlidSettings : public CBase, public MBlidSettings,public MBlidMeasurementSettings
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44         /**
       
    45          * Two-phased constructor.
       
    46          */
       
    47         static CBlidSettings* NewL();
       
    48 
       
    49         /**
       
    50          * Destructor.
       
    51          */
       
    52         virtual ~CBlidSettings();
       
    53 
       
    54     private:
       
    55         /**
       
    56          * C++ default constructor.
       
    57          */
       
    58         CBlidSettings();
       
    59 
       
    60         /**
       
    61          * By default Symbian 2nd phase constructor is private.
       
    62          */
       
    63         void ConstructL();
       
    64 
       
    65     private: // From MBlidSettings
       
    66         void SetAltCalibration( const TReal32 aAltCalibration );
       
    67         TReal32 AltCalibration();
       
    68         TReal32 UnitOfMeasurement();
       
    69         void SetBacklightOption( const TReal32 aBacklightOption );
       
    70         TReal32 GetBacklightOption();
       
    71         void SetArrivedToneName( const TDesC8& aArrivedToneName );
       
    72         TDesC8& GetArrivedToneName();
       
    73         void SetResetOdometerOption( const TReal32 aIsOdoReset );
       
    74         TReal32 GetResetOdometerOption();
       
    75         void SetArrivedDistance( TReal32 aDistance );
       
    76         TReal32 GetArrivedDistance( );
       
    77         
       
    78     private: //From MBlidMeasurementSettings
       
    79         void HandleSysMeasureValueL( );        
       
    80 
       
    81     private:        
       
    82         // Own: altitude calibration
       
    83         TReal32 iAltCalibration;
       
    84         
       
    85         //Own:  Measurement Unit
       
    86         TReal32 iMeasurementUnit;
       
    87         
       
    88         //Own:  Backlight Settings Option
       
    89         TReal32 iBacklightOption;
       
    90 
       
    91 		TReal32	iIsOdoReset;
       
    92 		
       
    93 		HBufC8*	iArrivedToneName;
       
    94 		/**
       
    95 		 * System of measurements settings handle
       
    96 		 * Owns
       
    97 		 */ 
       
    98         CBlidMeasurementSettingListener*    iSysofMeasSettings;
       
    99         
       
   100         TReal32 iArrivedDistance;
       
   101         
       
   102         CRepository* iRepository;
       
   103     };
       
   104 
       
   105 #endif      // CBLIDSETTINGS_H
       
   106 
       
   107 // End of File