phonebookui/Phonebook/View/inc/CPbkContactEditorPostalCodeField.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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: 
       
    15 *     Phonebook contact editor postal codefield.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CPbkContactEditorPostalCodeField_H__
       
    21 #define __CPbkContactEditorPostalCodeField_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include "CPbkContactEditorFieldBase.h"
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CEikEdwin;
       
    29 class MPbkContactEditorUiBuilder;
       
    30 class CPbkContactItem;
       
    31 class CEikCaptionedControl;
       
    32 
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37  * Phonebook Contact editor reading field. 
       
    38  */
       
    39 NONSHARABLE_CLASS(CPbkContactEditorPostalCodeField) : 
       
    40         public CPbkContactEditorFieldBase
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43         /**
       
    44          * Creates a new instance of this class - text editor to a field.
       
    45 		 * @param aField the to be edited field
       
    46 		 * @param aUiBuilder reference to UI builder
       
    47 		 * @param aIconInfoContainer reference to icon info container
       
    48          */
       
    49 		static CPbkContactEditorPostalCodeField* NewL(
       
    50                 TPbkContactItemField& aField,
       
    51                 MPbkContactEditorUiBuilder& aUiBuilder,
       
    52 				CPbkIconInfoContainer& aIconInfoContainer);
       
    53         
       
    54         /**
       
    55          * Destructor.
       
    56          */
       
    57         ~CPbkContactEditorPostalCodeField();
       
    58 		
       
    59     public:  // from MPbkContactEditorField
       
    60         void SaveFieldL();
       
    61         void AddFieldL(CPbkContactItem& aContact);
       
    62         void SetControlTextL(const TDesC& aDes);
       
    63         void ActivateL();
       
    64         void AcceptL(MPbkFieldEditorVisitor& aVisitor);
       
    65 
       
    66 
       
    67     protected: // from MPbkFieldEditorControl
       
    68         CEikEdwin* Control();
       
    69         TPbkFieldId FieldId();
       
    70                 
       
    71     protected:  // Implementation
       
    72         CPbkContactEditorPostalCodeField(
       
    73 				TPbkContactItemField& aField, 
       
    74 				CPbkIconInfoContainer& aIconInfoContainer,
       
    75 				MPbkContactEditorUiBuilder& aUiBuilder);
       
    76     
       
    77     private:    // implementation
       
    78         void ConstructL();
       
    79 
       
    80     protected:  // Data
       
    81         /// Ref: Fields editor
       
    82         CEikEdwin* iControl;
       
    83         /// Ref: fields captioned control
       
    84         CEikCaptionedControl* iCaptionedCtrl;
       
    85     };
       
    86 
       
    87 #endif // __CPbkContactEditorPostalCodeField_H__
       
    88             
       
    89 // End of File