42 // Two-phased constructor. |
42 // Two-phased constructor. |
43 // ----------------------------------------------------------------------------- |
43 // ----------------------------------------------------------------------------- |
44 // |
44 // |
45 void CRadioFmTunerUtility::CBody::ConstructL() |
45 void CRadioFmTunerUtility::CBody::ConstructL() |
46 { |
46 { |
47 FUNC_LOG; |
|
48 } |
47 } |
49 |
48 |
50 // ----------------------------------------------------------------------------- |
49 // ----------------------------------------------------------------------------- |
51 // CRadioFmTunerUtility::CBody::CBody |
50 // CRadioFmTunerUtility::CBody::CBody |
52 // ----------------------------------------------------------------------------- |
51 // ----------------------------------------------------------------------------- |
53 // |
52 // |
54 CRadioFmTunerUtility::CBody::CBody( |
53 CRadioFmTunerUtility::CBody::CBody() |
55 RRadioSession& aRadioSession, |
54 { |
56 MRadioFmTunerObserver& aObserver ) |
|
57 : iRadioSession(aRadioSession), |
|
58 iRadioFmTunerUtilityClient(aObserver) |
|
59 |
|
60 { |
|
61 FUNC_LOG; |
|
62 } |
55 } |
63 |
56 |
64 // ----------------------------------------------------------------------------- |
57 // ----------------------------------------------------------------------------- |
65 // CRadioFmTunerUtility::CBody::~CBody |
58 // CRadioFmTunerUtility::CBody::~CBody |
66 // ----------------------------------------------------------------------------- |
59 // ----------------------------------------------------------------------------- |
67 // |
60 // |
68 CRadioFmTunerUtility::CBody::~CBody() |
61 CRadioFmTunerUtility::CBody::~CBody() |
69 { |
62 { |
70 FUNC_LOG; |
|
71 } |
63 } |
72 |
64 |
73 // ----------------------------------------------------------------------------- |
65 // ----------------------------------------------------------------------------- |
74 // CRadioFmTunerUtility::CBody::RequestTunerControl |
66 // CRadioFmTunerUtility::CBody::RequestTunerControl |
75 // (other items were commented in a header). |
67 // (other items were commented in a header). |
76 // ----------------------------------------------------------------------------- |
68 // ----------------------------------------------------------------------------- |
77 // |
69 // |
78 void CRadioFmTunerUtility::CBody::RequestTunerControl() |
70 void CRadioFmTunerUtility::CBody::RequestTunerControl() |
79 { |
71 { |
80 FUNC_LOG; |
72 iRadioSession->RequestTunerControl( ERsTunerFm ); |
81 iRadioSession.RequestTunerControl( ERsTunerFm ); |
|
82 } |
73 } |
83 |
74 |
84 // ----------------------------------------------------------------------------- |
75 // ----------------------------------------------------------------------------- |
85 // CRadioFmTunerUtility::CBody::Close |
76 // CRadioFmTunerUtility::CBody::Close |
86 // (other items were commented in a header). |
77 // (other items were commented in a header). |
87 // ----------------------------------------------------------------------------- |
78 // ----------------------------------------------------------------------------- |
88 // |
79 // |
89 void CRadioFmTunerUtility::CBody::Close() |
80 void CRadioFmTunerUtility::CBody::Close() |
90 { |
81 { |
91 FUNC_LOG; |
|
92 // Consider releasing tuner control here. |
82 // Consider releasing tuner control here. |
93 } |
83 } |
94 |
84 |
95 // ----------------------------------------------------------------------------- |
85 // ----------------------------------------------------------------------------- |
96 // CRadioFmTunerUtility::CBody::GetCapabilities |
86 // CRadioFmTunerUtility::CBody::GetCapabilities |
180 range = ERsRangeFmJapan; |
171 range = ERsRangeFmJapan; |
181 break; |
172 break; |
182 default: |
173 default: |
183 break; |
174 break; |
184 } |
175 } |
185 iRadioSession.SetFrequencyRange( range ); |
176 iRadioSession->SetFrequencyRange( range ); |
186 } |
177 } |
187 |
178 |
188 |
179 |
189 // ----------------------------------------------------------------------------- |
180 // ----------------------------------------------------------------------------- |
190 // CRadioFmTunerUtility::CBody::CancelSetFrequencyRange |
181 // CRadioFmTunerUtility::CBody::CancelSetFrequencyRange |
191 // (other items were commented in a header). |
182 // (other items were commented in a header). |
192 // ----------------------------------------------------------------------------- |
183 // ----------------------------------------------------------------------------- |
193 // |
184 // |
194 void CRadioFmTunerUtility::CBody::CancelSetFrequencyRange() |
185 void CRadioFmTunerUtility::CBody::CancelSetFrequencyRange() |
195 { |
186 { |
196 FUNC_LOG; |
187 iRadioSession->CancelSetFrequencyRange(); |
197 iRadioSession.CancelSetFrequencyRange(); |
|
198 } |
188 } |
199 |
189 |
200 // ----------------------------------------------------------------------------- |
190 // ----------------------------------------------------------------------------- |
201 // CRadioFmTunerUtility::CBody::SetFrequency |
191 // CRadioFmTunerUtility::CBody::SetFrequency |
202 // (other items were commented in a header). |
192 // (other items were commented in a header). |
203 // ----------------------------------------------------------------------------- |
193 // ----------------------------------------------------------------------------- |
204 // |
194 // |
205 void CRadioFmTunerUtility::CBody::SetFrequency( |
195 void CRadioFmTunerUtility::CBody::SetFrequency( |
206 TInt aFrequency ) |
196 TInt aFrequency ) |
207 { |
197 { |
208 FUNC_LOG; |
198 #ifdef _DEBUG |
209 INFO_1("aFrequency = %d", aFrequency); |
199 RDebug::Print(_L("CRadioFmTunerUtility::CBody::SetFrequency, aFrequency = %d"), aFrequency); |
210 iRadioSession.SetFrequency(aFrequency); |
200 #endif |
|
201 iRadioSession->SetFrequency(aFrequency); |
211 } |
202 } |
212 |
203 |
213 // ----------------------------------------------------------------------------- |
204 // ----------------------------------------------------------------------------- |
214 // CRadioFmTunerUtility::CBody::CancelSetFrequencyRange |
205 // CRadioFmTunerUtility::CBody::CancelSetFrequencyRange |
215 // Body of CancelSetFrequencyRange |
206 // Body of CancelSetFrequencyRange |
216 // (other items were commented in a header). |
207 // (other items were commented in a header). |
217 // ----------------------------------------------------------------------------- |
208 // ----------------------------------------------------------------------------- |
218 // |
209 // |
219 void CRadioFmTunerUtility::CBody::CancelSetFrequency() |
210 void CRadioFmTunerUtility::CBody::CancelSetFrequency() |
220 { |
211 { |
221 FUNC_LOG; |
212 iRadioSession->CancelSetFrequency(); |
222 iRadioSession.CancelSetFrequency(); |
|
223 } |
213 } |
224 |
214 |
225 // ----------------------------------------------------------------------------- |
215 // ----------------------------------------------------------------------------- |
226 // CRadioFmTunerUtility::CBody::GetFrequency |
216 // CRadioFmTunerUtility::CBody::GetFrequency |
227 // (other items were commented in a header). |
217 // (other items were commented in a header). |
228 // ----------------------------------------------------------------------------- |
218 // ----------------------------------------------------------------------------- |
229 // |
219 // |
230 TInt CRadioFmTunerUtility::CBody::GetFrequency( |
220 TInt CRadioFmTunerUtility::CBody::GetFrequency( |
231 TInt& aFrequency ) const |
221 TInt& aFrequency ) const |
232 { |
222 { |
233 FUNC_LOG; |
223 return iRadioSession->GetFrequency(aFrequency); |
234 return iRadioSession.GetFrequency(aFrequency); |
|
235 } |
224 } |
236 |
225 |
237 // ----------------------------------------------------------------------------- |
226 // ----------------------------------------------------------------------------- |
238 // CRadioFmTunerUtility::CBody::StationSeek |
227 // CRadioFmTunerUtility::CBody::StationSeek |
239 // (other items were commented in a header). |
228 // (other items were commented in a header). |
240 // ----------------------------------------------------------------------------- |
229 // ----------------------------------------------------------------------------- |
241 // |
230 // |
242 void CRadioFmTunerUtility::CBody::StationSeek( |
231 void CRadioFmTunerUtility::CBody::StationSeek( |
243 TBool aUpwards ) |
232 TBool aUpwards ) |
244 { |
233 { |
245 FUNC_LOG; |
234 #ifdef _DEBUG |
246 INFO_1("aUpwards = %d", aUpwards); |
235 RDebug::Print(_L("CRadioFmTunerUtility::CBody::StationSeek, aUpwards = %d"), aUpwards); |
247 iRadioSession.StationSeek(aUpwards); |
236 #endif |
|
237 iRadioSession->StationSeek(aUpwards); |
248 } |
238 } |
249 |
239 |
250 // ----------------------------------------------------------------------------- |
240 // ----------------------------------------------------------------------------- |
251 // CRadioFmTunerUtility::CBody::CancelStationSeek |
241 // CRadioFmTunerUtility::CBody::CancelStationSeek |
252 // (other items were commented in a header). |
242 // (other items were commented in a header). |
253 // ----------------------------------------------------------------------------- |
243 // ----------------------------------------------------------------------------- |
254 // |
244 // |
255 void CRadioFmTunerUtility::CBody::CancelStationSeek() |
245 void CRadioFmTunerUtility::CBody::CancelStationSeek() |
256 { |
246 { |
257 FUNC_LOG; |
247 iRadioSession->CancelStationSeek(); |
258 iRadioSession.CancelStationSeek(); |
|
259 } |
248 } |
260 |
249 |
261 // ----------------------------------------------------------------------------- |
250 // ----------------------------------------------------------------------------- |
262 // CRadioFmTunerUtility::CBody::GetSignalStrength |
251 // CRadioFmTunerUtility::CBody::GetSignalStrength |
263 // (other items were commented in a header). |
252 // (other items were commented in a header). |
264 // ----------------------------------------------------------------------------- |
253 // ----------------------------------------------------------------------------- |
265 // |
254 // |
266 TInt CRadioFmTunerUtility::CBody::GetSignalStrength( |
255 TInt CRadioFmTunerUtility::CBody::GetSignalStrength( |
267 TInt& aSignalStrength ) const |
256 TInt& aSignalStrength ) const |
268 { |
257 { |
269 FUNC_LOG; |
258 return iRadioSession->GetSignalStrength(aSignalStrength); |
270 return iRadioSession.GetSignalStrength(aSignalStrength); |
|
271 } |
259 } |
272 |
260 |
273 // ----------------------------------------------------------------------------- |
261 // ----------------------------------------------------------------------------- |
274 // CRadioFmTunerUtility::GetMaxSignalStrength |
262 // CRadioFmTunerUtility::GetMaxSignalStrength |
275 // (other items were commented in a header). |
263 // (other items were commented in a header). |
276 // ----------------------------------------------------------------------------- |
264 // ----------------------------------------------------------------------------- |
277 // |
265 // |
278 TInt CRadioFmTunerUtility::CBody::GetMaxSignalStrength( |
266 TInt CRadioFmTunerUtility::CBody::GetMaxSignalStrength( |
279 TInt& aMaxSignalStrength ) const |
267 TInt& aMaxSignalStrength ) const |
280 { |
268 { |
281 FUNC_LOG; |
269 return iRadioSession->GetMaxSignalStrength(aMaxSignalStrength); |
282 return iRadioSession.GetMaxSignalStrength(aMaxSignalStrength); |
|
283 } |
270 } |
284 |
271 |
285 // ----------------------------------------------------------------------------- |
272 // ----------------------------------------------------------------------------- |
286 // CRadioFmTunerUtility::CBody::GetStereoMode |
273 // CRadioFmTunerUtility::CBody::GetStereoMode |
287 // (other items were commented in a header). |
274 // (other items were commented in a header). |
288 // ----------------------------------------------------------------------------- |
275 // ----------------------------------------------------------------------------- |
289 // |
276 // |
290 TInt CRadioFmTunerUtility::CBody::GetStereoMode( |
277 TInt CRadioFmTunerUtility::CBody::GetStereoMode( |
291 TBool& aStereo ) const |
278 TBool& aStereo ) const |
292 { |
279 { |
293 FUNC_LOG; |
280 return iRadioSession->GetStereoMode(aStereo); |
294 return iRadioSession.GetStereoMode(aStereo); |
|
295 } |
281 } |
296 |
282 |
297 // ----------------------------------------------------------------------------- |
283 // ----------------------------------------------------------------------------- |
298 // CRadioFmTunerUtility::CBody::ForceMonoReception |
284 // CRadioFmTunerUtility::CBody::ForceMonoReception |
299 // (other items were commented in a header). |
285 // (other items were commented in a header). |
300 // ----------------------------------------------------------------------------- |
286 // ----------------------------------------------------------------------------- |
301 // |
287 // |
302 TInt CRadioFmTunerUtility::CBody::ForceMonoReception( |
288 TInt CRadioFmTunerUtility::CBody::ForceMonoReception( |
303 TBool aForcedMono) |
289 TBool aForcedMono) |
304 { |
290 { |
305 FUNC_LOG; |
291 return iRadioSession->ForceMonoReception(aForcedMono); |
306 return iRadioSession.ForceMonoReception(aForcedMono); |
|
307 } |
292 } |
308 |
293 |
309 // ----------------------------------------------------------------------------- |
294 // ----------------------------------------------------------------------------- |
310 // CRadioFmTunerUtility::CBody::GetForcedMonoReception |
295 // CRadioFmTunerUtility::CBody::GetForcedMonoReception |
311 // (other items were commented in a header). |
296 // (other items were commented in a header). |
312 // ----------------------------------------------------------------------------- |
297 // ----------------------------------------------------------------------------- |
313 // |
298 // |
314 TInt CRadioFmTunerUtility::CBody::GetForcedMonoReception( |
299 TInt CRadioFmTunerUtility::CBody::GetForcedMonoReception( |
315 TBool& aForcedMono ) const |
300 TBool& aForcedMono ) const |
316 { |
301 { |
317 FUNC_LOG; |
302 return iRadioSession->GetForceMonoReception(aForcedMono); |
318 return iRadioSession.GetForceMonoReception(aForcedMono); |
|
319 } |
303 } |
320 |
304 |
321 // ----------------------------------------------------------------------------- |
305 // ----------------------------------------------------------------------------- |
322 // CRadioFmTunerUtility::CBody::SetSquelch |
306 // CRadioFmTunerUtility::CBody::SetSquelch |
323 // (other items were commented in a header). |
307 // (other items were commented in a header). |
324 // ----------------------------------------------------------------------------- |
308 // ----------------------------------------------------------------------------- |
325 // |
309 // |
326 TInt CRadioFmTunerUtility::CBody::SetSquelch( |
310 TInt CRadioFmTunerUtility::CBody::SetSquelch( |
327 TBool aSquelch ) |
311 TBool aSquelch ) |
328 { |
312 { |
329 FUNC_LOG; |
313 return iRadioSession->SetSquelch(aSquelch); |
330 return iRadioSession.SetSquelch(aSquelch); |
|
331 } |
314 } |
332 |
315 |
333 // ----------------------------------------------------------------------------- |
316 // ----------------------------------------------------------------------------- |
334 // CRadioFmTunerUtility::CBody::GetSquelch |
317 // CRadioFmTunerUtility::CBody::GetSquelch |
335 // (other items were commented in a header). |
318 // (other items were commented in a header). |
336 // ----------------------------------------------------------------------------- |
319 // ----------------------------------------------------------------------------- |
337 // |
320 // |
338 TInt CRadioFmTunerUtility::CBody::GetSquelch( |
321 TInt CRadioFmTunerUtility::CBody::GetSquelch( |
339 TBool& aSquelch ) const |
322 TBool& aSquelch ) const |
340 { |
323 { |
341 FUNC_LOG; |
324 return iRadioSession->GetSquelch(aSquelch); |
342 return iRadioSession.GetSquelch(aSquelch); |
|
343 } |
325 } |
344 |
326 |
345 // End of File |
327 // End of File |
346 |
328 |
347 |
329 |