phonebookengines/contactsmodel/tsrc/Integration/TestImpExvCard/src/TestImpExvCardSuiteStepBase.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /**
       
     2 * Copyright (c) 2005-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 #if (!defined __TESTIMPEXVCARD_STEP_BASE__)
       
    21 #define __TESTIMPEXVCARD_STEP_BASE__
       
    22 #include <test/testexecutestepbase.h>
       
    23 #include "TestImpExvCardSuiteDefs.h"
       
    24 
       
    25 /****************************************************************************
       
    26 * The reason to have a new step base is that it is very much possible
       
    27 * that the all individual test steps have project related common variables 
       
    28 * and members 
       
    29 * and this is the place to define these common variable and members.
       
    30 * 
       
    31 ****************************************************************************/
       
    32 class CTestImpExvCardSuiteStepBase : public CTestStep
       
    33 	{
       
    34 public:
       
    35 	virtual ~CTestImpExvCardSuiteStepBase();
       
    36 	CTestImpExvCardSuiteStepBase();
       
    37 	void OpenVCFAndImportItemL(TBuf<80> aPath, RFs aFsSession, TInt aIndex);
       
    38 	void ImportCardL(RReadStream& aReadStream);
       
    39 	void OpenBDAYVCFAndImportItemL(TBuf<80> aPath, TInt aIndex);
       
    40 	void ImportBDAYCardL(RReadStream& aReadStream);
       
    41 	void ExportItemL(TBuf<80> aPath, TBool aAddBDay);
       
    42 	void ImportItemL(TBuf<80> aPath, TBool aImportBDay);
       
    43 	void OpenDBL();
       
    44 	void CloseDB();
       
    45 	void SetNameL(CContactItem& aItem,TUid aType,const TDesC& aName, TBool aAddField);
       
    46 	TTime FormatDateTime(const TDesC& aParamString);
       
    47 	TPtrC GetExpectedUTCFromIniL(TInt numberOfCases, TBuf<80> aConfig, TBool aExpectedBDay);
       
    48 
       
    49 public:
       
    50 	TTime iTimeFromImport;
       
    51 	TTime iBDayFromImport;
       
    52 	TTime iRecordedTime;
       
    53 	TTime iBDayLocal;
       
    54 	CContactDatabase* iDb;
       
    55 	
       
    56 protected:
       
    57 	};
       
    58 
       
    59 #endif