|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Video Telephone feature variation class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "tVtuifeaturevariation.h" |
|
20 |
|
21 // TVtUiFeatureVariationBase |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // TVtUiFeatureVariationBase::IsFeatureSupported |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 TBool TVtUiFeatureVariationBase::IsFeatureSupported( const TUint32 aId ) const |
|
28 { |
|
29 return FeatureManager::FeatureSupported( aId ); |
|
30 } |
|
31 |
|
32 //TVtUiHelpVariation |
|
33 // ----------------------------------------------------------------------------- |
|
34 // TVtUiHelpVariation::FeatureId |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 TUint32 TVtUiHelpVariation::FeatureId() const |
|
38 { |
|
39 return KFeatureIdHelp; |
|
40 } |
|
41 // ----------------------------------------------------------------------------- |
|
42 // TVtUiHelpVariation::IsHelpSupported |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 TBool TVtUiHelpVariation::IsHelpSupported() const |
|
46 { |
|
47 return IsFeatureSupported( FeatureId() ); |
|
48 } |
|
49 //TVtUiDPVariation |
|
50 // ----------------------------------------------------------------------------- |
|
51 // TVtUiDPVariation::FeatureId |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 TUint32 TVtUiDPVariation::FeatureId() const |
|
55 { |
|
56 return KFeatureIdDisplayPost; |
|
57 } |
|
58 // ----------------------------------------------------------------------------- |
|
59 // TVtUiDPVariation::IsDPSupported |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 TBool TVtUiDPVariation::IsDPSupported() const |
|
63 { |
|
64 return IsFeatureSupported( FeatureId() ); |
|
65 } |
|
66 //TVtUiBTVariation |
|
67 // ----------------------------------------------------------------------------- |
|
68 // TVtUiBTVariation::FeatureId |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 TUint32 TVtUiBTVariation::FeatureId() const |
|
72 { |
|
73 return KFeatureIdBt; |
|
74 } |
|
75 // ----------------------------------------------------------------------------- |
|
76 // TVtUiBTVariation::IsBTSupported |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 TBool TVtUiBTVariation::IsBTSupported() const |
|
80 { |
|
81 return IsFeatureSupported( FeatureId() ); |
|
82 } |
|
83 //TVtUiSideVolumeKeysVariation |
|
84 // ----------------------------------------------------------------------------- |
|
85 // TVtUiSideVolumeKeysVariation::FeatureId |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 TUint32 TVtUiSideVolumeKeysVariation::FeatureId() const |
|
89 { |
|
90 return KFeatureIdSideVolumeKeys; |
|
91 } |
|
92 // ----------------------------------------------------------------------------- |
|
93 // TVtUiSideVolumeKeysVariation::IsSideVolumeKeysSupported |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 TBool TVtUiSideVolumeKeysVariation::IsSideVolumeKeysSupported() const |
|
97 { |
|
98 return IsFeatureSupported( FeatureId() ); |
|
99 } |
|
100 //TVtUiActiveIdleFetManVariation |
|
101 // ----------------------------------------------------------------------------- |
|
102 // TVtUiActiveIdleFetManVariation::FeatureId |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 TUint32 TVtUiActiveIdleFetManVariation::FeatureId() const |
|
106 { |
|
107 return KFeatureIdActiveIdle; |
|
108 } |
|
109 // ----------------------------------------------------------------------------- |
|
110 // TVtUiActiveIdleFetManVariation::IsActiveIdleFetManSupported |
|
111 // ----------------------------------------------------------------------------- |
|
112 // |
|
113 TBool TVtUiActiveIdleFetManVariation::IsActiveIdleFetManSupported() const |
|
114 { |
|
115 return IsFeatureSupported( FeatureId() ); |
|
116 } |
|
117 |