phonebookui/Phonebook2/UIControls/inc/CPbk2ContactEditorUIAddressField.h
branchRCL_3
changeset 63 f4a778e096c2
child 64 c1e8ba0c2b16
equal deleted inserted replaced
62:5b6f26637ad3 63:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Phonebook 2 contact editor dialog UI address field.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPBK2CONTACTEDITORUIADDRESSFIELD_H_
       
    19 #define CPBK2CONTACTEDITORUIADDRESSFIELD_H_
       
    20 
       
    21 // INCLUDES
       
    22 #include <w32std.h>
       
    23 #include <e32base.h>
       
    24 #include <CPbk2ContactEditorUIFieldBase.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CEikCaptionedControl;
       
    28 class CPbk2ContactEditorReadonlyField;
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  * Phonebook 2 contact editor UI base field.
       
    33  */
       
    34 NONSHARABLE_CLASS(CPbk2ContactEditorUIAddressField) : public CPbk2ContactEditorUIFieldBase
       
    35     {
       
    36     public:
       
    37 
       
    38 		/**
       
    39 		 * C++ constructor.
       
    40 		 *
       
    41 		 * @param aUiBuilder            UI builder for adding
       
    42 		 *                              the field into dialog.
       
    43 		 * @param aIconInfoContainer    An icon container for setting
       
    44 		 *                              field icon.
       
    45 		 */
       
    46     	static CPbk2ContactEditorUIAddressField* NewL(
       
    47     			MPbk2UIField* aField,
       
    48 		        MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    49 		        CPbk2IconInfoContainer& aIconInfoContainer,
       
    50 		        TInt aCustomPosition,
       
    51                 const TDesC& aCustomText);
       
    52     	 
       
    53     public:
       
    54         /**
       
    55          * Destructor.
       
    56          */
       
    57         virtual ~CPbk2ContactEditorUIAddressField();
       
    58 
       
    59         CEikEdwin* Control();
       
    60         void SetControlTextL( const TDesC& aText );
       
    61         void ActivateL();
       
    62         TInt ControlId();
       
    63         TBool HandleCustomFieldCommandL(TInt aCommand);
       
    64         TBool ConsumesKeyEvent( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    65   
       
    66 
       
    67     private:
       
    68     	CPbk2ContactEditorUIAddressField(
       
    69     	    			MPbk2UIField* aField,
       
    70     			        MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    71     			        CPbk2IconInfoContainer& aIconInfoContainer,
       
    72     				    TInt aCustomPosition );
       
    73     	void ConstructL(const TDesC& aCustomText);
       
    74 
       
    75     private:
       
    76     	/// Ref: Editor control
       
    77     	CPbk2ContactEditorReadonlyField* iControl;
       
    78         /// Ref: Fields captioned control
       
    79         CEikCaptionedControl* iCaptionedCtrl;
       
    80     };
       
    81 
       
    82 
       
    83 #endif /*CPBK2CONTACTEDITORUIADDRESSFIELD_H_*/
       
    84 
       
    85 // End of File