|
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: Media state class inline methods. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ----------------------------------------------------------------------------- |
|
20 // TVtUiMediaState::TVtUiMediaState |
|
21 // ----------------------------------------------------------------------------- |
|
22 // |
|
23 TVtUiMediaState::TVtUiMediaState( MVtEngMedia& aMedia, |
|
24 MVtEngCommandHandler& aCommandHandler ) |
|
25 : iMedia( aMedia ), iCommandHandler( aCommandHandler ) |
|
26 { |
|
27 } |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // TVtUiMediaState::IsVideo |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 TBool TVtUiMediaState::IsVideo() const |
|
34 { |
|
35 return IsFlag( EIsVideo ); |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // TVtUiMediaState::HasCamera |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 TBool TVtUiMediaState::HasCamera() const |
|
43 { |
|
44 return IsFlag( EHasCamera ); |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // TVtUiMediaState::IsFreezeSupported |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 TBool TVtUiMediaState::IsFreezeSupported() const |
|
52 { |
|
53 return IsFlag( EIsFreezeSupported ); |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // TVtUiMediaState::IsFrozen |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 TBool TVtUiMediaState::IsFrozen() const |
|
61 { |
|
62 return IsFlag( EIsFrozen ); |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // TVtUiMediaState::IsSharing |
|
67 // ----------------------------------------------------------------------------- |
|
68 // |
|
69 TBool TVtUiMediaState::IsSharing() const |
|
70 { |
|
71 return IsFlag( EIsSharing ); |
|
72 } |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // TVtUiMediaState::IsInitializingShare |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 TBool TVtUiMediaState::IsInitializingShare() const |
|
79 { |
|
80 return IsFlag( EIsInitializingShare ); |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // TVtUiMediaState::IsPrimaryCameraInUse |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 TBool TVtUiMediaState::IsPrimaryCameraInUse() const |
|
88 { |
|
89 return IsFlag( EIsPrimaryCameraInUse ); |
|
90 } |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // TVtUiMediaState::IsSecondaryCameraInUse |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 TBool TVtUiMediaState::IsSecondaryCameraInUse() const |
|
97 { |
|
98 return IsFlag( EIsSecondaryCameraInUse ); |
|
99 } |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // TVtUiMediaState::IsNotAbleToShare |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 TBool TVtUiMediaState::IsNotAbleToShare() const |
|
106 { |
|
107 return IsFlag( EIsNotAbleToShare ); |
|
108 } |
|
109 |
|
110 // ----------------------------------------------------------------------------- |
|
111 // TVtUiMediaState::HasPrimaryCamera |
|
112 // ----------------------------------------------------------------------------- |
|
113 // |
|
114 TBool TVtUiMediaState::HasPrimaryCamera() const |
|
115 { |
|
116 return IsFlag( EHasPrimaryCamera ); |
|
117 } |
|
118 |
|
119 // ----------------------------------------------------------------------------- |
|
120 // TVtUiMediaState::HasSecondaryCamera |
|
121 // ----------------------------------------------------------------------------- |
|
122 // |
|
123 TBool TVtUiMediaState::HasSecondaryCamera() const |
|
124 { |
|
125 return IsFlag( EHasSecondaryCamera ); |
|
126 } |
|
127 |
|
128 // ----------------------------------------------------------------------------- |
|
129 // TVtUiMediaState::IsContrastSupported |
|
130 // ----------------------------------------------------------------------------- |
|
131 // |
|
132 TBool TVtUiMediaState::IsContrastSupported() const |
|
133 { |
|
134 return IsFlag( EIsContrastSupported ); |
|
135 } |
|
136 |
|
137 // ----------------------------------------------------------------------------- |
|
138 // TVtUiMediaState::IsWhiteBalanceSupported |
|
139 // ----------------------------------------------------------------------------- |
|
140 // |
|
141 TBool TVtUiMediaState::IsWhiteBalanceSupported() const |
|
142 { |
|
143 return IsFlag( EIsWhiteBalanceSupported ); |
|
144 } |
|
145 |
|
146 // ----------------------------------------------------------------------------- |
|
147 // TVtUiMediaState::IsColorToneSupported |
|
148 // ----------------------------------------------------------------------------- |
|
149 // |
|
150 TBool TVtUiMediaState::IsColorToneSupported() const |
|
151 { |
|
152 return IsFlag( EIsColorToneSupported ); |
|
153 } |
|
154 |
|
155 // ----------------------------------------------------------------------------- |
|
156 // TVtUiMediaState::IsBrightnessSupported |
|
157 // ----------------------------------------------------------------------------- |
|
158 // |
|
159 TBool TVtUiMediaState::IsBrightnessSupported() const |
|
160 { |
|
161 return IsFlag( EIsBrightnessSupported ); |
|
162 } |
|
163 |
|
164 // ----------------------------------------------------------------------------- |
|
165 // TVtUiMediaState::IsVideoPermanentlyStopped |
|
166 // ----------------------------------------------------------------------------- |
|
167 // |
|
168 TBool TVtUiMediaState::IsVideoPermanentlyStopped() const |
|
169 { |
|
170 return IsFlag( EIsVideoPermanentlyStopped ); |
|
171 } |