phonebookui/Phonebook2/UIControls/inc/CPbk2ContactEditorTextField.h
branchRCL_3
changeset 63 f4a778e096c2
child 64 c1e8ba0c2b16
equal deleted inserted replaced
62:5b6f26637ad3 63:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2002-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 text field.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2CONTACTEDITORTEXTFIELD_H
       
    20 #define CPBK2CONTACTEDITORTEXTFIELD_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "CPbk2ContactEditorFieldBase.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CEikEdwin;
       
    27 class CEikCaptionedControl;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32  * Phonebook 2 contact editor text field.
       
    33  */
       
    34 NONSHARABLE_CLASS(CPbk2ContactEditorTextField) :
       
    35         public CPbk2ContactEditorFieldBase
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38         
       
    39         /**
       
    40          * Creates a new instance of this class.
       
    41          *
       
    42          * @param aContactField         Contact field.
       
    43          * @param aUiBuilder            UI builder for adding the
       
    44          *                              field into dialog.
       
    45          * @param aIconInfoContainer    Icon container for
       
    46          *                              setting the field icon.
       
    47          * @return  A new instance of this class.
       
    48          */
       
    49         static CPbk2ContactEditorTextField* NewLC(
       
    50                 CPbk2PresentationContactField& aContactField,
       
    51                 MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    52                 CPbk2IconInfoContainer& aIconInfoContainer );
       
    53         
       
    54         /**
       
    55          * Destructor.
       
    56          */
       
    57         virtual ~CPbk2ContactEditorTextField();
       
    58 
       
    59     public: // From MPbk2ContactEditorField
       
    60         CEikEdwin* Control() const;
       
    61         void SaveFieldL();
       
    62         void ActivateL();
       
    63         void AcceptL(
       
    64                 MPbk2ContactEditorFieldVisitor& aVisitor );
       
    65         
       
    66     protected: // Implementation
       
    67         CPbk2ContactEditorTextField(
       
    68                 CPbk2PresentationContactField& aContactField,
       
    69                 MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    70                 CPbk2IconInfoContainer& aIconInfoContainer );
       
    71         void ConstructL();
       
    72 
       
    73         // Deactivate T9 in editor
       
    74         void DeactivateT9(TInt8 aEditMode);
       
    75 
       
    76     protected: // Data
       
    77         /// Ref: Editor control
       
    78         CEikEdwin* iControl;
       
    79         /// Ref: Fields captioned control
       
    80         CEikCaptionedControl* iCaptionedCtrl;
       
    81     };
       
    82 
       
    83 #endif // CPBK2CONTACTEDITORTEXTFIELD_H
       
    84             
       
    85 // End of File