landmarksui/uicontrols/inc/CLmkEditorFieldBase.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2002 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:    LandmarksUi Content File -    Base class for fields of form
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef __CLMKEDITORFIELDBASE_H__
       
    25 #define __CLMKEDITORFIELDBASE_H__
       
    26 
       
    27 //  INCLUDES
       
    28 #include "MLmkEditorField.h"
       
    29 #include "MLmkFieldData.h"
       
    30 #include <e32std.h>
       
    31 #include <e32base.h>
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class MLmkEditorUiBuilder;
       
    35 class CLmkDistanceEditor;
       
    36 class CEikonEnv;
       
    37 
       
    38 
       
    39 // CLASS DECLARATION
       
    40 
       
    41 /**
       
    42 * Landmark editor field base class.
       
    43 */
       
    44 class CLmkEditorFieldBase :
       
    45         public CBase,
       
    46         public MLmkEditorField
       
    47     {
       
    48     protected:  // Construction
       
    49         /**
       
    50         * Constructor.
       
    51 		* @param aField reference to the field to edit
       
    52 		* @param aUiBuilder reference to UI builder
       
    53         * @return newly instantiated object
       
    54         */
       
    55         CLmkEditorFieldBase( MLmkFieldData& aField,
       
    56 				             MLmkEditorUiBuilder& aUiBuilder );
       
    57 
       
    58         /**
       
    59         * Destructor.
       
    60         */
       
    61 		~CLmkEditorFieldBase();
       
    62 
       
    63         /**
       
    64         * Base constructor.
       
    65         */
       
    66         void BaseConstructL();
       
    67 
       
    68     public:  // from MLmkEditorField
       
    69         TInt ControlId() const;
       
    70         TInt FieldId() const;
       
    71         TPtrC FieldLabel() const;
       
    72         void SetFieldLabelL(HBufC* aLabel);
       
    73         MLmkFieldData& LandmarkItemField() const;
       
    74 		HBufC* ControlTextL() const;
       
    75         void ActivateL() = 0;
       
    76         //code added
       
    77         virtual TReal FieldValue() const;
       
    78 		TReal GetNumberFieldValue() const;
       
    79 		//-end-
       
    80 
       
    81 		void LoadBitmapToFieldL	(MLmkEditorUiBuilder& aUiBuilder);
       
    82     protected:  // Data
       
    83         /// Own: Contact item field associated with this editor field
       
    84         MLmkFieldData& iLmkItemField;
       
    85 
       
    86 		/// Ref: UI builder
       
    87 		MLmkEditorUiBuilder& iUiBuilder;
       
    88 
       
    89 		// Ref : Eikon Env
       
    90 		CEikonEnv*     iEnv;
       
    91     };
       
    92 
       
    93 #endif // __CLMKEDITORFIELDBASE_H__
       
    94 
       
    95 // End of File