|
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 // Contains wrapper helper functions for test code to control the test wrappers |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @test |
|
21 @internalComponent - Internal Symbian test code |
|
22 */ |
|
23 |
|
24 #include "featurediscoverywrapper.h" |
|
25 |
|
26 #include <featdiscovery.h> |
|
27 #include <ssm/ssmuiproviderdll.h> |
|
28 |
|
29 /** |
|
30 * Wrapper for CSsmUiSpecific::IsAmaStarterSupported() |
|
31 * |
|
32 * @test |
|
33 * @internalComponent |
|
34 */ |
|
35 TBool CSsmUiSpecific::IsAmaStarterSupported() |
|
36 { |
|
37 return FeatureDiscoveryWrapper::GetAmaSupported(); |
|
38 } |
|
39 |
|
40 |
|
41 /** |
|
42 * Sets AMAs as supported |
|
43 * |
|
44 * @test |
|
45 * @internalComponent |
|
46 */ |
|
47 void FeatureDiscoveryWrapper::SetAmaSupported() |
|
48 { |
|
49 iAmaSupported = ETrue; |
|
50 } |
|
51 |
|
52 /** |
|
53 * Sets AMAs as not supported |
|
54 * |
|
55 * @test |
|
56 * @internalComponent |
|
57 */ |
|
58 void FeatureDiscoveryWrapper::SetAmaNotSupported() |
|
59 { |
|
60 iAmaSupported = EFalse; |
|
61 } |
|
62 |
|
63 /** |
|
64 * Returns true if AMAs are supported |
|
65 * |
|
66 * @test |
|
67 * @internalComponent |
|
68 */ |
|
69 TBool FeatureDiscoveryWrapper::GetAmaSupported() |
|
70 { |
|
71 return iAmaSupported; |
|
72 } |
|
73 |
|
74 /** |
|
75 * Stores if AMAs are supported |
|
76 * |
|
77 * @test |
|
78 * @internalComponent |
|
79 */ |
|
80 TBool FeatureDiscoveryWrapper::iAmaSupported = ETrue; |