basiclocationinfodisplay/blid/ui/inc/CBlidSettingsLBModel.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 Blid request detail view listbox model.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CBLIDSETTINGSLBMODEL_H
       
    19 #define CBLIDSETTINGSLBMODEL_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>    // CBase
       
    23 #include <bamdesca.h>  // MDesCArray
       
    24 
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MBlidSettings;
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  CBlidSettingsLBModel
       
    32 *
       
    33 */
       
    34 class CBlidSettingsLBModel : public CBase, public MDesCArray
       
    35     {
       
    36     public: // Constructors and destructor
       
    37         /**
       
    38          * Two-phased constructor.
       
    39          * @param aSettingsModel A pointer to Blid settings API
       
    40          * @return created object
       
    41          */
       
    42 		static CBlidSettingsLBModel* NewLC( MBlidSettings* aSettingsModel);
       
    43 
       
    44         /**
       
    45          * Destructor.
       
    46          */
       
    47         ~CBlidSettingsLBModel();
       
    48 
       
    49     private: 
       
    50         /**
       
    51          * Second phase of construction.
       
    52          */
       
    53         void ConstructL();
       
    54 
       
    55         /**
       
    56          * c++ default constructor.
       
    57          * @param aSettingsModel A pointer to Blid settings API
       
    58          */
       
    59         CBlidSettingsLBModel( MBlidSettings* aSettingsModel );
       
    60 
       
    61     private: // From MDesCArray
       
    62         TInt MdcaCount() const;
       
    63         TPtrC16 MdcaPoint(TInt aIndex) const;
       
    64 
       
    65     private: // new functions
       
    66         /**
       
    67          * Format calibration string
       
    68          * @param aCalibrationString contains the calibration value given by user
       
    69          */
       
    70         void CalibrationFormat( TDes& aCalibrationString ) const;
       
    71 
       
    72         /**
       
    73          * Format Backlight string
       
    74          * @param aBacklightString Contains the selected option string
       
    75          */
       
    76         void BacklightFormat( TDes& aBacklightString ) const;
       
    77         
       
    78         void ArrivalToneFormat( TDes& aRrivalTone ) const;
       
    79 
       
    80     private: //data
       
    81         /// Own: conversion buffer
       
    82         HBufC* iBuffer;
       
    83 
       
    84         /// Ref: Blid settings model API
       
    85         MBlidSettings* iSettingsModel;
       
    86 
       
    87         /// Own: Latitude functionality text string
       
    88         HBufC* iBlidAltitude;
       
    89 
       
    90         /// Own: Altitude functionality text string
       
    91         HBufC* iAltitudeFormatM;
       
    92 
       
    93         /// Own: Altitude functionality text string
       
    94         HBufC* iAltitudeFormatFt;
       
    95 
       
    96         /// Own: A pointer to TLocale
       
    97         TLocale* iLocale;
       
    98         
       
    99         /// Own: Settings view backlight text string
       
   100         HBufC* iBlidBacklight;
       
   101 
       
   102         /// Own: Settings view backlight selection normal text 
       
   103 	    HBufC* iBlidBacklightNormal;
       
   104 	
       
   105     	/// Own: Settings view backlight selection On text 
       
   106     	HBufC* iBlidBacklightOn;
       
   107 
       
   108 	    HBufC* iBlidArrivalTone;
       
   109 	
       
   110     	HBufC* iBlidResetOdom;
       
   111     	
       
   112     	HBufC* iBlidArrivalToneOff;
       
   113         
       
   114         HBufC* iBlidArrivalToneName;
       
   115         //Environment Variable
       
   116         CEikonEnv* iEnv;
       
   117     };
       
   118 
       
   119 #endif //CBLIDSETTINGSLBMODEL_H 
       
   120 // End of File
       
   121