71 /** |
71 /** |
72 * Update control using the specified data |
72 * Update control using the specified data |
73 * @param aCommandParam command parameter |
73 * @param aCommandParam command parameter |
74 */ |
74 */ |
75 void HandleIhfChange( TPhoneCommandParam* aCommandParam ); |
75 void HandleIhfChange( TPhoneCommandParam* aCommandParam ); |
76 |
76 |
|
77 /** |
|
78 * Update control using the specified data |
|
79 * @param aCommandParam command parameter |
|
80 */ |
|
81 void HandleMuteChange( TPhoneCommandParam* aCommandParam ); |
|
82 |
77 /** |
83 /** |
78 * Gets volume level from navi pane control. |
84 * Gets volume level from navi pane control. |
79 * @return Volume level. |
85 * @return Volume level. |
80 */ |
86 */ |
81 TInt VolumeLevelFromControl(); |
87 TInt VolumeLevelFromControl(); |
125 * @param aNew new to replace the old one. |
131 * @param aNew new to replace the old one. |
126 */ |
132 */ |
127 void PushL(CAknNavigationDecorator& aNew); |
133 void PushL(CAknNavigationDecorator& aNew); |
128 |
134 |
129 /** |
135 /** |
|
136 * Callback function. Called when navi pane should be updated |
|
137 * back to default. |
|
138 * @param aAny pointer to instance of this class. |
|
139 * @return KErrNone always. |
|
140 */ |
|
141 static TInt DoUpdateNaviPaneToDefault( TAny* aAny ); |
|
142 |
|
143 /** |
130 * Get current volume decorator (Ihf or Ear) |
144 * Get current volume decorator (Ihf or Ear) |
131 * @return Current volume decorator |
145 * @return Current volume decorator |
132 */ |
146 */ |
133 CAknNavigationDecorator& VolumeDecorator(); |
147 CAknNavigationDecorator& VolumeDecorator(); |
134 |
148 |
141 /** |
155 /** |
142 * Get current volume level (Ihf or Ear) |
156 * Get current volume level (Ihf or Ear) |
143 * @return Current Ihf or Ear volume level |
157 * @return Current Ihf or Ear volume level |
144 */ |
158 */ |
145 TInt VolumeLevel(); |
159 TInt VolumeLevel(); |
|
160 |
|
161 /** |
|
162 * Select decorator based on current audio status |
|
163 * @return Selected decorator (Ihf, Ear or Muted). |
|
164 */ |
|
165 CAknNavigationDecorator& SelectDecoratorL(); |
146 |
166 |
147 /** |
167 /** |
148 * Set volume level for given volume control |
168 * Set volume level for given volume control |
149 * @param aVolumeControl Volume control |
169 * @param aVolumeControl Volume control |
150 * @param aVolumeLevel New volume level |
170 * @param aVolumeLevel New volume level |
167 // IHF volume, from 1 to 10 |
187 // IHF volume, from 1 to 10 |
168 TInt iIhfVolume; |
188 TInt iIhfVolume; |
169 |
189 |
170 // ETrue IHF is active |
190 // ETrue IHF is active |
171 TBool iIhfMode; |
191 TBool iIhfMode; |
|
192 |
|
193 // ETrue if transfer to or from IHF pending |
|
194 TBool iIhfTransferPending; |
172 |
195 |
173 // Owned non-IHF volume control. |
196 // Owned non-IHF volume control. |
174 CAknNavigationDecorator* iEarVolumeControl; |
197 CAknNavigationDecorator* iEarVolumeControl; |
175 |
198 |
176 // Non-IHF volume, from 1 to 10 |
199 // Non-IHF volume, from 1 to 10 |
177 TInt iEarVolume; |
200 TInt iEarVolume; |
178 |
201 |
|
202 // Owned muted indicator |
|
203 CAknNavigationDecorator* iMutedControl; |
|
204 |
|
205 // ETrue phone is muted |
|
206 TBool iMuted; |
|
207 |
|
208 // ETrue if timed control transfer to muted is pending |
|
209 TBool iTimedMuteTransferPending; |
|
210 |
179 // Pointer the current control that is in navi pane |
211 // Pointer the current control that is in navi pane |
180 CAknNavigationDecorator* iOldControl; |
212 CAknNavigationDecorator* iOldControl; |
181 |
213 |
|
214 // Owned timer to update navi pane |
|
215 CPhoneTimer* iNaviPaneUpdateTimer; |
182 |
216 |
183 /** |
217 /** |
184 * ETrue if Telephony is the foreground application, |
218 * ETrue if Telephony is the foreground application, |
185 * otherwise EFalse. |
219 * otherwise EFalse. |
186 */ |
220 */ |