phonebookui/Phonebook2/UIControls/inc/CPbk2ContactEditorPhoneNumberField.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 phone number field.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2CONTACTEDITORPHONENUMBERFIELD_H
       
    20 #define CPBK2CONTACTEDITORPHONENUMBERFIELD_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 phone number field.
       
    33  */
       
    34 NONSHARABLE_CLASS(CPbk2ContactEditorPhoneNumberField) : 
       
    35         public CPbk2ContactEditorFieldBase
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38         
       
    39         /**
       
    40          * Two-phased constructor.
       
    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 CPbk2ContactEditorPhoneNumberField* NewLC(
       
    50                 CPbk2PresentationContactField& aContactField,
       
    51                 MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    52                 CPbk2IconInfoContainer& aIconInfoContainer );
       
    53         
       
    54         /**
       
    55          * Destructor.
       
    56          */
       
    57         ~CPbk2ContactEditorPhoneNumberField();
       
    58 
       
    59     public: // From MPbk2ContactEditorField
       
    60         CEikEdwin* Control() const;
       
    61         void SaveFieldL();
       
    62         void ActivateL();
       
    63         void AcceptL(
       
    64                 MPbk2ContactEditorFieldVisitor& aVisitor );
       
    65         
       
    66     private: // Implementation
       
    67         CPbk2ContactEditorPhoneNumberField(
       
    68                 CPbk2PresentationContactField& aContactField,
       
    69                 MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    70                 CPbk2IconInfoContainer& aIconInfoContainer );
       
    71         void ConstructL();
       
    72 
       
    73     private: // Data
       
    74         /// Ref: Fields editor
       
    75         CEikEdwin* iControl;
       
    76         /// Ref: Fields captioned control
       
    77         CEikCaptionedControl* iCaptionedCtrl;
       
    78     };
       
    79 
       
    80 #endif // CPBK2CONTACTEDITORPHONENUMBERFIELD_H
       
    81             
       
    82 // End of File