1 // Copyright (c) 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 |
|
17 // user include |
|
18 #include "testltsyphonestorebase.h" |
|
19 #include "testltsyphonestoreshareddata.h" |
|
20 |
|
21 //const define |
|
22 _LIT16(KPhoneTSY, "phonetsy"); |
|
23 |
|
24 // member functions |
|
25 |
|
26 /** |
|
27 * Constructor |
|
28 * |
|
29 */ |
|
30 CTestLtsyPhoneStoreBase::CTestLtsyPhoneStoreBase(CTestLtsyModel& aTestModel) |
|
31 : iModel(aTestModel) |
|
32 { |
|
33 } |
|
34 |
|
35 /** |
|
36 * Destructor |
|
37 * |
|
38 */ |
|
39 CTestLtsyPhoneStoreBase::~CTestLtsyPhoneStoreBase() |
|
40 { |
|
41 |
|
42 } |
|
43 |
|
44 TVerdict CTestLtsyPhoneStoreBase::doTestStepPreambleL() |
|
45 { |
|
46 OpenPhoneL(); |
|
47 if(TestStepResult() == EPass) |
|
48 { |
|
49 |
|
50 } |
|
51 |
|
52 return TestStepResult(); |
|
53 } |
|
54 |
|
55 TVerdict CTestLtsyPhoneStoreBase::doTestStepPostambleL() |
|
56 { |
|
57 |
|
58 return TestStepResult(); |
|
59 } |
|
60 |
|
61 /** |
|
62 * Get the PhoneON object |
|
63 * |
|
64 */ |
|
65 RMobileONStore& CTestLtsyPhoneStoreBase::PhoneONStore() |
|
66 { |
|
67 return iModel.PhoneStoreSharedData().PhoneONStore(); |
|
68 } |
|
69 |
|
70 /** |
|
71 * Get the Enstore object |
|
72 * |
|
73 */ |
|
74 RMobileENStore& CTestLtsyPhoneStoreBase::PhoneENStore() |
|
75 { |
|
76 return iModel.PhoneStoreSharedData().PhoneENStore(); |
|
77 } |
|
78 |
|
79 /** |
|
80 * Get the PhoneBook store object |
|
81 * |
|
82 */ |
|
83 RMobilePhoneBookStore& CTestLtsyPhoneStoreBase::PhoneBookStore() |
|
84 { |
|
85 return iModel.PhoneStoreSharedData().PhoneBookStore(); |
|
86 } |
|
87 |
|
88 void CTestLtsyPhoneStoreBase::OpenPhoneL() |
|
89 { |
|
90 INFO_PRINTF1(_L("starting opne phone")); |
|
91 |
|
92 if (!iModel.SharedEnv().PhoneOpened()) |
|
93 { |
|
94 iModel.SharedEnv().OpenPhoneL(KPhoneTSY); |
|
95 } |
|
96 } |
|
97 |
|
98 // end of file |
|
99 |
|
100 |
|