phonebookui/Phonebook2/UIControls/inc/CPbk2ReadingFieldEditorVisitor.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 reading field visitor.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2READINGFIELDEDITORVISITOR_H
       
    20 #define CPBK2READINGFIELDEDITORVISITOR_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "MPbk2ContactEditorFieldVisitor.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CReadingConverter;
       
    28 class CVPbkContactManager;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * Implements MPbk2ContactEditorFieldVisitor for Japanese reading fields
       
    34  * in contact editor.
       
    35  */
       
    36 NONSHARABLE_CLASS(CPbk2ReadingFieldEditorVisitor) : 
       
    37         public CBase,
       
    38         public MPbk2ContactEditorFieldVisitor
       
    39     {
       
    40     public: // Construction and destruction
       
    41 
       
    42         /**
       
    43          * Creates a new instance of this class.
       
    44          *
       
    45          * @param aContactManager   Virtual Phonebook contact manager.
       
    46          * @return  A new instance of this class.
       
    47          */
       
    48         static CPbk2ReadingFieldEditorVisitor* NewL(
       
    49                 const CVPbkContactManager& aContactManager );
       
    50 
       
    51         /**
       
    52          * Destructor.
       
    53          */
       
    54 		~CPbk2ReadingFieldEditorVisitor();
       
    55 
       
    56     public:  // From MPbk2ContactEditorFieldVisitor
       
    57         void VisitL(
       
    58                 MPbk2ContactEditorField& aThis );
       
    59 
       
    60     private: // Implementation
       
    61         CPbk2ReadingFieldEditorVisitor(
       
    62                 const CVPbkContactManager& aContactManager );
       
    63         void SetEditorsL(
       
    64                 MPbk2ContactEditorField& aThis );
       
    65 
       
    66     private: // Data
       
    67         /// Own: Converter for first name field
       
    68         CReadingConverter* iFirstNameConverter;
       
    69         /// Own: Converter for last name field
       
    70         CReadingConverter* iLastNameConverter;
       
    71         /// Ref: Virtual Phonebook Contact Manager
       
    72         const CVPbkContactManager& iContactManager;
       
    73     };
       
    74 
       
    75 #endif // CPBK2READINGFIELDEDITORVISITOR_H
       
    76             
       
    77 // End of File