|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __TE_SIMPHBK_TESTSTEP_BASE__ |
|
17 #define __TE_SIMPHBK_TESTSTEP_BASE__ |
|
18 |
|
19 #include <test/testexecutestepbase.h> |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <e32test.h> |
|
23 #include <e32keys.h> |
|
24 #include <c32comm.h> |
|
25 #include <f32file.h> |
|
26 #include <etel.h> |
|
27 #include <etelmm.h> |
|
28 #include <mpbutil.h> |
|
29 #include "SimTsy.h" |
|
30 #include "mmretrieve.h" |
|
31 |
|
32 _LIT(KSimtsyName,"SIM"); |
|
33 |
|
34 #define CHECKPOINT(code,expected,msg){\ |
|
35 TEST((code)==(expected));\ |
|
36 if (TestStepResult() != EPass ){\ |
|
37 INFO_PRINTF1(_L("Failed Checkpoint:"));\ |
|
38 INFO_PRINTF1(msg);\ |
|
39 }\ |
|
40 } |
|
41 |
|
42 class CSimPhBkTestStepBase : public CTestStep |
|
43 { |
|
44 public: |
|
45 virtual TVerdict doTestStepPreambleL(); |
|
46 virtual TVerdict doTestStepPostambleL(); |
|
47 static void CleanUp(TAny *aPtr) ; |
|
48 |
|
49 protected: |
|
50 void GetGoodNumber(TDes& aNum) ; |
|
51 TInt ClearPhoneBookL(const TDesC& aPhoneBookName) ; |
|
52 void CheckPhoneBookInfoL(RMobilePhoneStore::TMobilePhoneStoreInfoV1& aInfo) ; |
|
53 void WriteBatchOfEntriesToThePhoneL() ; |
|
54 // TCleanupItem operator for objects of this class |
|
55 operator TCleanupItem() ; |
|
56 |
|
57 protected: |
|
58 RTelServer iTelServer; |
|
59 RMobilePhone iPhone; |
|
60 RMobileLine iLine; |
|
61 RMobileCall iCall; |
|
62 TBool iMESupported; |
|
63 TBool iMTSupported; |
|
64 }; |
|
65 |
|
66 #endif // __TE_SIMPHBK_TESTSTEP_BASE__ |