summaryrefslogtreecommitdiffstats
path: root/plugins/contacts/symbian/contactsmodel/tsrc/integration/testimpexvcard/src/testimpexvcardsuitestepbase.h
blob: 6c0a5428d94e65305f653669f028008e453541a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
* Contact: http://www.qt-project.org/legal
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/




#if (!defined __TESTIMPEXVCARD_STEP_BASE__)
#define __TESTIMPEXVCARD_STEP_BASE__
#include <test/testexecutestepbase.h>
#include "testimpexvcardsuitedefs.h"

/****************************************************************************
* The reason to have a new step base is that it is very much possible
* that the all individual test steps have project related common variables 
* and members 
* and this is the place to define these common variable and members.
* 
****************************************************************************/
class CTestImpExvCardSuiteStepBase : public CTestStep
	{
public:
	virtual ~CTestImpExvCardSuiteStepBase();
	CTestImpExvCardSuiteStepBase();
	void OpenVCFAndImportItemL(TBuf<80> aPath, RFs aFsSession, TInt aIndex);
	void ImportCardL(RReadStream& aReadStream);
	void OpenBDAYVCFAndImportItemL(TBuf<80> aPath, TInt aIndex);
	void ImportBDAYCardL(RReadStream& aReadStream);
	void ExportItemL(TBuf<80> aPath, TBool aAddBDay);
	void ImportItemL(TBuf<80> aPath, TBool aImportBDay);
	void OpenDBL();
	void CloseDB();
	void SetNameL(CContactItem& aItem,TUid aType,const TDesC& aName, TBool aAddField);
	TTime FormatDateTime(const TDesC& aParamString);
	TPtrC GetExpectedUTCFromIniL(TInt numberOfCases, TBuf<80> aConfig, TBool aExpectedBDay);

public:
	TTime iTimeFromImport;
	TTime iBDayFromImport;
	TTime iRecordedTime;
	TTime iBDayLocal;
	CContactDatabase* iDb;
	
protected:
	};

#endif