phonebookui/Phonebook/View/src/PbkContactEditorStrategyFactory.cpp
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 *       Contact editor strategy factory.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "PbkContactEditorStrategyFactory.h"  // Class declarations
       
    22 #include "CPbkContactEditorNewContact.h"
       
    23 #include "CPbkContactEditorEditContact.h"
       
    24 
       
    25 // LOCAL CONSTANTS AND MACROS
       
    26 
       
    27 
       
    28 // MODULE DATA STRUCTURES
       
    29 
       
    30 
       
    31 // ==================== LOCAL FUNCTIONS ====================
       
    32 
       
    33 
       
    34 // ================= MEMBER FUNCTIONS =======================
       
    35 
       
    36 MPbkContactEditorStrategy* PbkContactEditorStrategyFactory::CreateL
       
    37 		(CPbkContactEngine& aEngine,
       
    38 		CPbkContactItem& aContactItem,
       
    39         TBool aIsNewContact)
       
    40 	{
       
    41 	MPbkContactEditorStrategy* self = NULL;
       
    42 	if (aIsNewContact)
       
    43 		{
       
    44 		self = CPbkContactEditorNewContact::NewL(aEngine, aContactItem);
       
    45 		}
       
    46 	else
       
    47 		{
       
    48 		self = CPbkContactEditorEditContact::NewL(aEngine, aContactItem);
       
    49 		}
       
    50 
       
    51 	return self;
       
    52 	}
       
    53 
       
    54 //  End of File