phoneengine/PhoneCntFinder/ContactService/inc/tphcntcontactutil.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Contact utilitiest class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PHCNTCONTACTUTIL_H
       
    20 #define PHCNTCONTACTUTIL_H
       
    21 
       
    22 #include "CPhCntContact.h"
       
    23 
       
    24 /**
       
    25  *  Contact utilities.
       
    26  *
       
    27  *  @lib PhoneCntFinder
       
    28  *  @since S60 v5.1
       
    29  */
       
    30 NONSHARABLE_CLASS( TPhCntContactUtil ) 
       
    31     {
       
    32 public:
       
    33     
       
    34     /**
       
    35      * Checks are name fields same in both contacts.
       
    36      * Checked fields are First name, Last name and Company name.
       
    37      *
       
    38      * @since S60 v5.1
       
    39      * @param aFirstContact First Contact to be checked.
       
    40      * @param aSecondContact Second Contact to be checked.
       
    41      * @return ETrue if name fields are same in both contacts.
       
    42      */
       
    43     static TBool AreFirstAndLastAndCompanyNameSame( 
       
    44             const CPhCntContact& aFirstContact,
       
    45             const CPhCntContact& aSecondContact );
       
    46     
       
    47     };
       
    48 
       
    49 #endif // PHCNTCONTACTUTIL_H
       
    50