phonebookui/Phonebook2/Presentation/src/CPbk2ChineseContactNameFormatter.cpp
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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: 
       
    15 *     Chinese contact name formatter.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "CPbk2ChineseContactNameFormatter.h"
       
    21 
       
    22 // ================= MEMBER FUNCTIONS =======================
       
    23 // --------------------------------------------------------------------------
       
    24 // CPbk2ChineseContactNameFormatter::CPbk2ChineseContactNameFormatter
       
    25 // --------------------------------------------------------------------------
       
    26 //
       
    27 CPbk2ChineseContactNameFormatter::CPbk2ChineseContactNameFormatter(
       
    28     const MVPbkFieldTypeList& aMasterFieldTypeList,
       
    29     const CPbk2SortOrderManager& aSortOrderManager) 
       
    30     :   CPbk2ContactNameFormatter( aMasterFieldTypeList,
       
    31             aSortOrderManager )
       
    32     {
       
    33     }
       
    34 
       
    35 // --------------------------------------------------------------------------
       
    36 // CPbk2ChineseContactNameFormatter::~CPbk2ChineseContactNameFormatter
       
    37 // --------------------------------------------------------------------------
       
    38 //
       
    39 CPbk2ChineseContactNameFormatter::~CPbk2ChineseContactNameFormatter()
       
    40     {
       
    41     }
       
    42     
       
    43 // --------------------------------------------------------------------------
       
    44 // CPbk2ChineseContactNameFormatter::NewL
       
    45 // --------------------------------------------------------------------------
       
    46 //
       
    47 CPbk2ChineseContactNameFormatter* CPbk2ChineseContactNameFormatter::NewL(
       
    48         const TDesC& aUnnamedText, 
       
    49         const MVPbkFieldTypeList& aMasterFieldTypeList, 
       
    50         const CPbk2SortOrderManager& aSortOrderManager,
       
    51         CVPbkFieldTypeSelector* aTitleFieldSelector )
       
    52 	{
       
    53     CPbk2ChineseContactNameFormatter* self = 
       
    54         new(ELeave) CPbk2ChineseContactNameFormatter(
       
    55             aMasterFieldTypeList, 
       
    56             aSortOrderManager );
       
    57     CleanupStack::PushL( self );
       
    58     self->ConstructL( aUnnamedText, aTitleFieldSelector );
       
    59     CleanupStack::Pop( self );
       
    60     return self;
       
    61 	}
       
    62     
       
    63 // --------------------------------------------------------------------------
       
    64 // CPbk2ChineseContactNameFormatter::IsFindSeparatorChar
       
    65 // --------------------------------------------------------------------------
       
    66 //
       
    67 TBool CPbk2ChineseContactNameFormatter::IsFindSeparatorChar( TChar aCh )
       
    68     {
       
    69     return aCh==' '||aCh=='-'||aCh=='\t';
       
    70     }
       
    71 
       
    72 // End of File