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