phonebookengines/contactsmodel/tsrc/Integration/CntPerfTest/inc/UnifiedSingular.h
changeset 0 e686773b3f54
child 24 0ba2181d7c28
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /**
       
     2 * Copyright (c) 2006-2009 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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @publishedAll
       
    23  @released
       
    24 */
       
    25 
       
    26 #ifndef __UNIFIED_SINGULAR_STEP_H__
       
    27 #define __UNIFIED_SINGULAR_STEP_H__
       
    28 
       
    29 #include "CntBaseStep.h"
       
    30 
       
    31 class CUnifiedSingular : public CCntBaseStep
       
    32 	{
       
    33 public:
       
    34 	CUnifiedSingular();
       
    35 	virtual TVerdict doTestStepL();
       
    36 protected:
       
    37 	void PreTestL()
       
    38 	{
       
    39 	}
       
    40 
       
    41 protected:
       
    42 	enum TUnitType
       
    43 		{
       
    44 		EAddUid = 0,
       
    45 		ESetLabel,
       
    46 		EAddField,
       
    47 		ESetFieldValue,
       
    48 		};
       
    49 private:
       
    50 	void UnifiedSingularTestsL();
       
    51 	void SetSingularL(	const TContactItemId &aCid, 
       
    52 						const TInt &aPos, 
       
    53 						const TUnitType &aType, 
       
    54 						const TInt32 &aUid, 
       
    55 						const TDesC &aLabel=KNullDesC, 
       
    56 						CContentType ** const aCtype=NULL, 
       
    57 						const TBool aEmpty=EFalse);
       
    58 						
       
    59 	TBool CheckSingularL(const TContactItemId &aCid, 
       
    60 						const TInt &aPos, 
       
    61 						const TUnitType &aType, 
       
    62 						const TInt32 &aUid, 
       
    63 						const CContentType &aCtype, 
       
    64 						const TDesC &aLabel=KNullDesC, 
       
    65 						const TBool aEmpty=EFalse);
       
    66 						
       
    67 	TBool CompareCTypes(const CContentType &aType1,const CContentType &aType2) ;
       
    68 	void EmptyNewFieldTestL(const TContactItemId &aCid) ;
       
    69 	};
       
    70 #endif