phonebookui/Phonebook2/UIControls/inc/CPbk2ContactEditorImppField.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 impp field.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2CONTACTEDITORIMPPFIELD_H
       
    20 #define CPBK2CONTACTEDITORIMPPFIELD_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "CPbk2ContactEditorTextField.h"
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28  * Phonebook 2 contact editor impp field.
       
    29  */
       
    30 NONSHARABLE_CLASS(CPbk2ContactEditorimppField) :
       
    31         public CPbk2ContactEditorTextField
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         /**
       
    36          * Creates a new instance of this class.
       
    37          *
       
    38          * @param aContactField         Contact field.
       
    39          * @param aUiBuilder            UI builder for adding the
       
    40          *                              field into dialog.
       
    41          * @param aIconInfoContainer    Icon container for
       
    42          *                              setting the icon.
       
    43          * @return  A new instance of this class.
       
    44          */
       
    45         static CPbk2ContactEditorimppField* NewLC(
       
    46                 CPbk2PresentationContactField& aContactField,
       
    47                 MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    48                 CPbk2IconInfoContainer& aIconInfoContainer );
       
    49         
       
    50         /**
       
    51          * Destructor.
       
    52          */
       
    53         virtual ~CPbk2ContactEditorimppField();
       
    54             
       
    55     private: // Implementation
       
    56         CPbk2ContactEditorimppField(
       
    57                 CPbk2PresentationContactField& aContactField,
       
    58                 MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    59                 CPbk2IconInfoContainer& aIconInfoContainer );
       
    60         void ConstructL();
       
    61     };
       
    62 
       
    63 /**
       
    64  * Phonebook 2 contact editor IMPP field.
       
    65  */
       
    66 NONSHARABLE_CLASS(CPbk2ContactEditorImppField) :
       
    67         public CPbk2ContactEditorTextField
       
    68     {
       
    69     public:  // Constructors and destructor
       
    70         
       
    71         /**
       
    72          * Creates a new instance of this class.
       
    73          *
       
    74          * @param aContactField         Contact field.
       
    75          * @param aUiBuilder            UI builder for adding the
       
    76          *                              field into dialog.
       
    77          * @param aIconInfoContainer    Icon container for
       
    78          *                              setting the icon.
       
    79          * @return  A new instance of this class.
       
    80          */
       
    81         static CPbk2ContactEditorImppField* NewLC(
       
    82                 CPbk2PresentationContactField& aContactField,
       
    83                 MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    84                 CPbk2IconInfoContainer& aIconInfoContainer );
       
    85         
       
    86         /**
       
    87          * Destructor.
       
    88          */
       
    89         virtual ~CPbk2ContactEditorImppField();
       
    90             
       
    91     public: // From MPbk2ContactEditorField
       
    92         void SaveFieldL();
       
    93 
       
    94     private: // Implementation
       
    95         CPbk2ContactEditorImppField(
       
    96                 CPbk2PresentationContactField& aContactField,
       
    97                 MPbk2ContactEditorUiBuilder& aUiBuilder,
       
    98                 CPbk2IconInfoContainer& aIconInfoContainer );
       
    99         void ConstructL();
       
   100     };
       
   101 
       
   102 #endif // CPBK2CONTACTEDITORIMPPFIELD_H
       
   103             
       
   104 // End of File