blob: 6bb6cc21387d310172808c8f37ef8c7382089497 (
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) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* 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
|