|
1 // Copyright (c) 2008-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 // Example CTestStep derived implementation |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file checkbtpsyinromstep.cpp |
|
20 @internalTechnology |
|
21 */ |
|
22 |
|
23 #include "checkbtpsyinromstep.h" |
|
24 |
|
25 CCheckBTPSYinRomStep::~CCheckBTPSYinRomStep() |
|
26 /** |
|
27 * Destructor |
|
28 */ |
|
29 { |
|
30 } |
|
31 |
|
32 CCheckBTPSYinRomStep::CCheckBTPSYinRomStep() |
|
33 /** |
|
34 * Constructor |
|
35 */ |
|
36 { |
|
37 SetTestStepName(KCheckBTPSYinRomStep); |
|
38 } |
|
39 |
|
40 TVerdict CCheckBTPSYinRomStep::doTestStepPreambleL() |
|
41 /** |
|
42 * @return - TVerdict code |
|
43 * Override of base class virtual |
|
44 */ |
|
45 { |
|
46 CTe_LbsSisInstallStepBase::doTestStepPreambleL(); |
|
47 if (TestStepResult()!=EPass) |
|
48 return TestStepResult(); |
|
49 SetTestStepResult(EPass); |
|
50 return TestStepResult(); |
|
51 } |
|
52 |
|
53 |
|
54 TVerdict CCheckBTPSYinRomStep::doTestStepL() |
|
55 /** |
|
56 * @return - TVerdict code |
|
57 * Override of base class pure virtual |
|
58 * Our implementation only gets called if the base class doTestStepPreambleL() did |
|
59 * not leave. That being the case, the current test result value will be EPass. |
|
60 */ |
|
61 { |
|
62 if (TestStepResult()==EPass) |
|
63 { |
|
64 SetTestStepResult(EPass); |
|
65 CheckBTPSYinRomL(); |
|
66 } |
|
67 return TestStepResult(); |
|
68 } |
|
69 |
|
70 void CCheckBTPSYinRomStep::CheckBTPSYinRomL() |
|
71 { |
|
72 TBool btpsySupported(EFalse); // the default is that the component is not present |
|
73 #ifdef SYMBIAN_FEATURE_MANAGER |
|
74 btpsySupported = CFeatureDiscovery::IsFeatureSupportedL(NFeature::KBluetoothGPSPositioningPlugin); |
|
75 #endif |
|
76 |
|
77 if(btpsySupported) |
|
78 { |
|
79 INFO_PRINTF1(_L("The BTPSY feature is present")); |
|
80 } |
|
81 else |
|
82 { |
|
83 INFO_PRINTF1(_L("The BTPSY feature is absent")); |
|
84 } |
|
85 } |
|
86 |
|
87 TVerdict CCheckBTPSYinRomStep::doTestStepPostambleL() |
|
88 /** |
|
89 * @return - TVerdict code |
|
90 * Override of base class virtual |
|
91 */ |
|
92 { |
|
93 return TestStepResult(); |
|
94 } |
|
95 |
|
96 // End of file |
|
97 |