45 // Two-phased constructor. |
45 // Two-phased constructor. |
46 // ----------------------------------------------------------------------------- |
46 // ----------------------------------------------------------------------------- |
47 // |
47 // |
48 void CRadioRdsUtility::CBody::ConstructL() |
48 void CRadioRdsUtility::CBody::ConstructL() |
49 { |
49 { |
50 FUNC_LOG; |
|
51 } |
50 } |
52 |
51 |
53 // ----------------------------------------------------------------------------- |
52 // ----------------------------------------------------------------------------- |
54 // CRadioRdsUtility::CBody::CBody |
53 // CRadioRdsUtility::CBody::CBody |
55 // ----------------------------------------------------------------------------- |
54 // ----------------------------------------------------------------------------- |
56 // |
55 // |
57 CRadioRdsUtility::CBody::CBody( |
56 CRadioRdsUtility::CBody::CBody() |
58 RRadioSession& aRadioSession, |
57 { |
59 MRadioRdsObserver& aObserver ) |
|
60 :iRadioSession(aRadioSession), |
|
61 iRadioRdsUtilityClient(aObserver) |
|
62 { |
|
63 FUNC_LOG; |
|
64 } |
58 } |
65 |
59 |
66 // ----------------------------------------------------------------------------- |
60 // ----------------------------------------------------------------------------- |
67 // Destructor. |
61 // Destructor. |
68 // ----------------------------------------------------------------------------- |
62 // ----------------------------------------------------------------------------- |
69 // |
63 // |
70 CRadioRdsUtility::CBody::~CBody() |
64 CRadioRdsUtility::CBody::~CBody() |
71 { |
65 { |
72 FUNC_LOG; |
|
73 } |
66 } |
74 |
67 |
75 // ----------------------------------------------------------------------------- |
68 // ----------------------------------------------------------------------------- |
76 // CRadioRdsUtility::CBody::Close |
69 // CRadioRdsUtility::CBody::Close |
77 // Cancel all requested RDS notifications if any were requested. |
70 // Cancel all requested RDS notifications if any were requested. |
78 // (other items were commented in a header). |
71 // (other items were commented in a header). |
79 // ----------------------------------------------------------------------------- |
72 // ----------------------------------------------------------------------------- |
80 // |
73 // |
81 void CRadioRdsUtility::CBody::Close() |
74 void CRadioRdsUtility::CBody::Close() |
82 { |
75 { |
83 FUNC_LOG; |
|
84 if ( iRdsDataReq.iRdsFunctions || iRdsDataReq.iAdditionalFunctions1 || |
76 if ( iRdsDataReq.iRdsFunctions || iRdsDataReq.iAdditionalFunctions1 || |
85 iRdsDataReq.iAdditionalFunctions2 ) |
77 iRdsDataReq.iAdditionalFunctions2 ) |
86 { |
78 { |
87 iRadioSession.CancelNotifyRdsDataChange(); |
79 iRadioSession->CancelNotifyRdsDataChange(); |
88 } |
80 } |
89 } |
81 } |
90 |
82 |
91 // ----------------------------------------------------------------------------- |
83 // ----------------------------------------------------------------------------- |
92 // CRadioRdsUtility::CBody::GetCapabilities |
84 // CRadioRdsUtility::CBody::GetCapabilities |
114 // ----------------------------------------------------------------------------- |
105 // ----------------------------------------------------------------------------- |
115 // |
106 // |
116 TInt CRadioRdsUtility::CBody::GetRdsSignalStatus( |
107 TInt CRadioRdsUtility::CBody::GetRdsSignalStatus( |
117 TBool& aRdsSignal ) const |
108 TBool& aRdsSignal ) const |
118 { |
109 { |
119 FUNC_LOG; |
110 return iRadioSession->GetRdsSignalStatus( aRdsSignal ); |
120 return iRadioSession.GetRdsSignalStatus( aRdsSignal ); |
|
121 } |
111 } |
122 |
112 |
123 // ----------------------------------------------------------------------------- |
113 // ----------------------------------------------------------------------------- |
124 // CRadioRdsUtility::CBody::NotifyRdsDataChange |
114 // CRadioRdsUtility::CBody::NotifyRdsDataChange |
125 // (other items were commented in a header). |
115 // (other items were commented in a header). |
126 // ----------------------------------------------------------------------------- |
116 // ----------------------------------------------------------------------------- |
127 // |
117 // |
128 TInt CRadioRdsUtility::CBody::NotifyRdsDataChange( |
118 TInt CRadioRdsUtility::CBody::NotifyRdsDataChange( |
129 TRdsData aRdsData ) |
119 TRdsData aRdsData ) |
130 { |
120 { |
131 FUNC_LOG; |
|
132 iRdsDataReq.iRdsFunctions = aRdsData.iRdsFunctions; |
121 iRdsDataReq.iRdsFunctions = aRdsData.iRdsFunctions; |
133 iRdsDataReq.iAdditionalFunctions1 = aRdsData.iAdditionalFunctions1; |
122 iRdsDataReq.iAdditionalFunctions1 = aRdsData.iAdditionalFunctions1; |
134 iRdsDataReq.iAdditionalFunctions2 = aRdsData.iAdditionalFunctions2; |
123 iRdsDataReq.iAdditionalFunctions2 = aRdsData.iAdditionalFunctions2; |
135 return iRadioSession.NotifyRdsDataChange( iRdsDataReq ); |
124 return iRadioSession->NotifyRdsDataChange( iRdsDataReq ); |
136 } |
125 } |
137 |
126 |
138 // ----------------------------------------------------------------------------- |
127 // ----------------------------------------------------------------------------- |
139 // CRadioRdsUtility::CBody::CancelNotifyRdsDataChange |
128 // CRadioRdsUtility::CBody::CancelNotifyRdsDataChange |
140 // (other items were commented in a header). |
129 // (other items were commented in a header). |
141 // ----------------------------------------------------------------------------- |
130 // ----------------------------------------------------------------------------- |
142 // |
131 // |
143 void CRadioRdsUtility::CBody::CancelNotifyRdsDataChange() |
132 void CRadioRdsUtility::CBody::CancelNotifyRdsDataChange() |
144 { |
133 { |
145 FUNC_LOG; |
134 iRadioSession->CancelNotifyRdsDataChange(); |
146 iRadioSession.CancelNotifyRdsDataChange(); |
|
147 } |
135 } |
148 |
136 |
149 // ----------------------------------------------------------------------------- |
137 // ----------------------------------------------------------------------------- |
150 // CRadioRdsUtility::CBody::SetAutomaticSwitching |
138 // CRadioRdsUtility::CBody::SetAutomaticSwitching |
151 // (other items were commented in a header). |
139 // (other items were commented in a header). |
152 // ----------------------------------------------------------------------------- |
140 // ----------------------------------------------------------------------------- |
153 // |
141 // |
154 TInt CRadioRdsUtility::CBody::SetAutomaticSwitching( |
142 TInt CRadioRdsUtility::CBody::SetAutomaticSwitching( |
155 TBool aAuto ) |
143 TBool aAuto ) |
156 { |
144 { |
157 FUNC_LOG; |
145 return iRadioSession->SetAutomaticSwitching( aAuto ); |
158 return iRadioSession.SetAutomaticSwitching( aAuto ); |
|
159 } |
146 } |
160 |
147 |
161 // ----------------------------------------------------------------------------- |
148 // ----------------------------------------------------------------------------- |
162 // CRadioRdsUtility::CBody::GetAutomaticSwitching |
149 // CRadioRdsUtility::CBody::GetAutomaticSwitching |
163 // (other items were commented in a header). |
150 // (other items were commented in a header). |
164 // ----------------------------------------------------------------------------- |
151 // ----------------------------------------------------------------------------- |
165 // |
152 // |
166 TInt CRadioRdsUtility::CBody::GetAutomaticSwitching( |
153 TInt CRadioRdsUtility::CBody::GetAutomaticSwitching( |
167 TBool& aAuto ) |
154 TBool& aAuto ) |
168 { |
155 { |
169 FUNC_LOG; |
156 return iRadioSession->GetAutomaticSwitching( aAuto ); |
170 return iRadioSession.GetAutomaticSwitching( aAuto ); |
|
171 } |
157 } |
172 |
158 |
173 // ----------------------------------------------------------------------------- |
159 // ----------------------------------------------------------------------------- |
174 // CRadioRdsUtility::CBody::CancelAFSearch |
160 // CRadioRdsUtility::CBody::CancelAFSearch |
175 // (other items were commented in a header). |
161 // (other items were commented in a header). |
176 // ----------------------------------------------------------------------------- |
162 // ----------------------------------------------------------------------------- |
177 // |
163 // |
178 void CRadioRdsUtility::CBody::CancelAFSearch() |
164 void CRadioRdsUtility::CBody::CancelAFSearch() |
179 { |
165 { |
180 FUNC_LOG; |
166 iRadioSession->CancelAFSearch(); |
181 iRadioSession.CancelAFSearch(); |
|
182 } |
167 } |
183 |
168 |
184 // ----------------------------------------------------------------------------- |
169 // ----------------------------------------------------------------------------- |
185 // CRadioRdsUtility::CBody::SetAutomaticTrafficAnnouncement |
170 // CRadioRdsUtility::CBody::SetAutomaticTrafficAnnouncement |
186 // (other items were commented in a header). |
171 // (other items were commented in a header). |
187 // ----------------------------------------------------------------------------- |
172 // ----------------------------------------------------------------------------- |
188 // |
173 // |
189 TInt CRadioRdsUtility::CBody::SetAutomaticTrafficAnnouncement( |
174 TInt CRadioRdsUtility::CBody::SetAutomaticTrafficAnnouncement( |
190 TBool aAuto ) |
175 TBool aAuto ) |
191 { |
176 { |
192 FUNC_LOG; |
177 return iRadioSession->SetAutomaticTrafficAnnouncement( aAuto ); |
193 return iRadioSession.SetAutomaticTrafficAnnouncement( aAuto ); |
|
194 } |
178 } |
195 |
179 |
196 // ----------------------------------------------------------------------------- |
180 // ----------------------------------------------------------------------------- |
197 // CRadioRdsUtility::CBody::GetAutomaticTrafficAnnouncement |
181 // CRadioRdsUtility::CBody::GetAutomaticTrafficAnnouncement |
198 // (other items were commented in a header). |
182 // (other items were commented in a header). |
199 // ----------------------------------------------------------------------------- |
183 // ----------------------------------------------------------------------------- |
200 // |
184 // |
201 TInt CRadioRdsUtility::CBody::GetAutomaticTrafficAnnouncement( |
185 TInt CRadioRdsUtility::CBody::GetAutomaticTrafficAnnouncement( |
202 TBool& aAuto ) |
186 TBool& aAuto ) |
203 { |
187 { |
204 FUNC_LOG; |
188 return iRadioSession->GetAutomaticTrafficAnnouncement( aAuto ); |
205 return iRadioSession.GetAutomaticTrafficAnnouncement( aAuto ); |
|
206 } |
189 } |
207 |
190 |
208 // ----------------------------------------------------------------------------- |
191 // ----------------------------------------------------------------------------- |
209 // CRadioRdsUtility::CBody::StationSeekByPTY |
192 // CRadioRdsUtility::CBody::StationSeekByPTY |
210 // (other items were commented in a header). |
193 // (other items were commented in a header). |
212 // |
195 // |
213 void CRadioRdsUtility::CBody::StationSeekByPTY( |
196 void CRadioRdsUtility::CBody::StationSeekByPTY( |
214 TRdsProgrammeType aPty, |
197 TRdsProgrammeType aPty, |
215 TBool aUpwards ) |
198 TBool aUpwards ) |
216 { |
199 { |
217 FUNC_LOG; |
200 iRadioSession->StationSeekByPTY( aPty, aUpwards ); |
218 iRadioSession.StationSeekByPTY( aPty, aUpwards ); |
|
219 } |
201 } |
220 |
202 |
221 // ----------------------------------------------------------------------------- |
203 // ----------------------------------------------------------------------------- |
222 // CRadioRdsUtility::CBody::StationSeekByTA |
204 // CRadioRdsUtility::CBody::StationSeekByTA |
223 // (other items were commented in a header). |
205 // (other items were commented in a header). |
224 // ----------------------------------------------------------------------------- |
206 // ----------------------------------------------------------------------------- |
225 // |
207 // |
226 void CRadioRdsUtility::CBody::StationSeekByTA( |
208 void CRadioRdsUtility::CBody::StationSeekByTA( |
227 TBool aSeekUp ) |
209 TBool aSeekUp ) |
228 { |
210 { |
229 FUNC_LOG; |
211 iRadioSession->StationSeekByTA( aSeekUp ); |
230 iRadioSession.StationSeekByTA( aSeekUp ); |
|
231 } |
212 } |
232 |
213 |
233 // ----------------------------------------------------------------------------- |
214 // ----------------------------------------------------------------------------- |
234 // CRadioRdsUtility::CBody::StationSeekByTP |
215 // CRadioRdsUtility::CBody::StationSeekByTP |
235 // (other items were commented in a header). |
216 // (other items were commented in a header). |
236 // ----------------------------------------------------------------------------- |
217 // ----------------------------------------------------------------------------- |
237 // |
218 // |
238 void CRadioRdsUtility::CBody::StationSeekByTP( |
219 void CRadioRdsUtility::CBody::StationSeekByTP( |
239 TBool aSeekUp ) |
220 TBool aSeekUp ) |
240 { |
221 { |
241 FUNC_LOG; |
222 iRadioSession->StationSeekByTP( aSeekUp ); |
242 iRadioSession.StationSeekByTP( aSeekUp ); |
|
243 } |
223 } |
244 |
224 |
245 // ----------------------------------------------------------------------------- |
225 // ----------------------------------------------------------------------------- |
246 // CRadioRdsUtility::CBody::CancelRdsStationSeek |
226 // CRadioRdsUtility::CBody::CancelRdsStationSeek |
247 // (other items were commented in a header). |
227 // (other items were commented in a header). |
248 // ----------------------------------------------------------------------------- |
228 // ----------------------------------------------------------------------------- |
249 // |
229 // |
250 void CRadioRdsUtility::CBody::CancelRdsStationSeek() |
230 void CRadioRdsUtility::CBody::CancelRdsStationSeek() |
251 { |
231 { |
252 FUNC_LOG; |
232 iRadioSession->CancelRdsStationSeek(); |
253 iRadioSession.CancelRdsStationSeek(); |
|
254 } |
233 } |
255 |
234 |
256 // ----------------------------------------------------------------------------- |
235 // ----------------------------------------------------------------------------- |
257 // CRadioRdsUtility::CBody::GetFreqByPTY |
236 // CRadioRdsUtility::CBody::GetFreqByPTY |
258 // (other items were commented in a header). |
237 // (other items were commented in a header). |
259 // ----------------------------------------------------------------------------- |
238 // ----------------------------------------------------------------------------- |
260 // |
239 // |
261 void CRadioRdsUtility::CBody::GetFreqByPTY( |
240 void CRadioRdsUtility::CBody::GetFreqByPTY( |
262 TRdsProgrammeType aPty ) |
241 TRdsProgrammeType aPty ) |
263 { |
242 { |
264 FUNC_LOG; |
243 iRadioSession->GetFreqByPTY( aPty ); |
265 iRadioSession.GetFreqByPTY( aPty ); |
|
266 } |
244 } |
267 |
245 |
268 // ----------------------------------------------------------------------------- |
246 // ----------------------------------------------------------------------------- |
269 // CRadioRdsUtility::CBody::CancelGetFreqByPTY |
247 // CRadioRdsUtility::CBody::CancelGetFreqByPTY |
270 // (other items were commented in a header). |
248 // (other items were commented in a header). |
271 // ----------------------------------------------------------------------------- |
249 // ----------------------------------------------------------------------------- |
272 // |
250 // |
273 void CRadioRdsUtility::CBody::CancelGetFreqByPTY() |
251 void CRadioRdsUtility::CBody::CancelGetFreqByPTY() |
274 { |
252 { |
275 FUNC_LOG; |
253 iRadioSession->CancelGetFreqByPTY(); |
276 iRadioSession.CancelGetFreqByPTY(); |
|
277 } |
254 } |
278 |
255 |
279 // ----------------------------------------------------------------------------- |
256 // ----------------------------------------------------------------------------- |
280 // CRadioRdsUtility::CBody::GetFreqByTA |
257 // CRadioRdsUtility::CBody::GetFreqByTA |
281 // (other items were commented in a header). |
258 // (other items were commented in a header). |
282 // ----------------------------------------------------------------------------- |
259 // ----------------------------------------------------------------------------- |
283 // |
260 // |
284 void CRadioRdsUtility::CBody::GetFreqByTA() |
261 void CRadioRdsUtility::CBody::GetFreqByTA() |
285 { |
262 { |
286 FUNC_LOG; |
263 iRadioSession->GetFreqByTA(); |
287 iRadioSession.GetFreqByTA(); |
|
288 } |
264 } |
289 |
265 |
290 // ----------------------------------------------------------------------------- |
266 // ----------------------------------------------------------------------------- |
291 // CRadioRdsUtility::CBody::CancelGetFreqByTA |
267 // CRadioRdsUtility::CBody::CancelGetFreqByTA |
292 // (other items were commented in a header). |
268 // (other items were commented in a header). |
293 // ----------------------------------------------------------------------------- |
269 // ----------------------------------------------------------------------------- |
294 // |
270 // |
295 void CRadioRdsUtility::CBody::CancelGetFreqByTA() |
271 void CRadioRdsUtility::CBody::CancelGetFreqByTA() |
296 { |
272 { |
297 FUNC_LOG; |
273 iRadioSession->CancelGetFreqByTA(); |
298 iRadioSession.CancelGetFreqByTA(); |
|
299 } |
274 } |
300 |
275 |
301 // ----------------------------------------------------------------------------- |
276 // ----------------------------------------------------------------------------- |
302 // CRadioRdsUtility::CBody::GetPSByPTY |
277 // CRadioRdsUtility::CBody::GetPSByPTY |
303 // (other items were commented in a header). |
278 // (other items were commented in a header). |
304 // ----------------------------------------------------------------------------- |
279 // ----------------------------------------------------------------------------- |
305 // |
280 // |
306 void CRadioRdsUtility::CBody::GetPSByPTY( |
281 void CRadioRdsUtility::CBody::GetPSByPTY( |
307 TRdsProgrammeType aPty ) |
282 TRdsProgrammeType aPty ) |
308 { |
283 { |
309 FUNC_LOG; |
284 iRadioSession->GetPSByPTY( aPty ); |
310 iRadioSession.GetPSByPTY( aPty ); |
|
311 } |
285 } |
312 |
286 |
313 // ----------------------------------------------------------------------------- |
287 // ----------------------------------------------------------------------------- |
314 // CRadioRdsUtility::CBody::CancelGetPSByPTY |
288 // CRadioRdsUtility::CBody::CancelGetPSByPTY |
315 // (other items were commented in a header). |
289 // (other items were commented in a header). |
316 // ----------------------------------------------------------------------------- |
290 // ----------------------------------------------------------------------------- |
317 // |
291 // |
318 void CRadioRdsUtility::CBody::CancelGetPSByPTY() |
292 void CRadioRdsUtility::CBody::CancelGetPSByPTY() |
319 { |
293 { |
320 FUNC_LOG; |
294 iRadioSession->CancelGetPSByPTY(); |
321 iRadioSession.CancelGetPSByPTY(); |
|
322 } |
295 } |
323 |
296 |
324 // ----------------------------------------------------------------------------- |
297 // ----------------------------------------------------------------------------- |
325 // CRadioRdsUtility::CBody::GetPSByTA |
298 // CRadioRdsUtility::CBody::GetPSByTA |
326 // (other items were commented in a header). |
299 // (other items were commented in a header). |
327 // ----------------------------------------------------------------------------- |
300 // ----------------------------------------------------------------------------- |
328 // |
301 // |
329 void CRadioRdsUtility::CBody::GetPSByTA() |
302 void CRadioRdsUtility::CBody::GetPSByTA() |
330 { |
303 { |
331 FUNC_LOG; |
304 iRadioSession->GetPSByTA(); |
332 iRadioSession.GetPSByTA(); |
|
333 } |
305 } |
334 |
306 |
335 // ----------------------------------------------------------------------------- |
307 // ----------------------------------------------------------------------------- |
336 // CRadioRdsUtility::CBody::CancelGetPSByTA |
308 // CRadioRdsUtility::CBody::CancelGetPSByTA |
337 // (other items were commented in a header). |
309 // (other items were commented in a header). |
338 // ----------------------------------------------------------------------------- |
310 // ----------------------------------------------------------------------------- |
339 // |
311 // |
340 void CRadioRdsUtility::CBody::CancelGetPSByTA() |
312 void CRadioRdsUtility::CBody::CancelGetPSByTA() |
341 { |
313 { |
342 FUNC_LOG; |
314 iRadioSession->CancelGetPSByTA(); |
343 iRadioSession.CancelGetPSByTA(); |
|
344 } |
315 } |
345 |
316 |
346 // ----------------------------------------------------------------------------- |
317 // ----------------------------------------------------------------------------- |
347 // CRadioRdsUtility::CBody::GetProgrammeIdentification |
318 // CRadioRdsUtility::CBody::GetProgrammeIdentification |
348 // (other items were commented in a header). |
319 // (other items were commented in a header). |
349 // ----------------------------------------------------------------------------- |
320 // ----------------------------------------------------------------------------- |
350 // |
321 // |
351 TInt CRadioRdsUtility::CBody::GetProgrammeIdentification( |
322 TInt CRadioRdsUtility::CBody::GetProgrammeIdentification( |
352 TInt& aPi ) |
323 TInt& aPi ) |
353 { |
324 { |
354 FUNC_LOG; |
325 return iRadioSession->GetProgrammeIdentification( aPi ); |
355 return iRadioSession.GetProgrammeIdentification( aPi ); |
|
356 } |
326 } |
357 |
327 |
358 // ----------------------------------------------------------------------------- |
328 // ----------------------------------------------------------------------------- |
359 // CRadioRdsUtility::CBody::GetProgrammeType |
329 // CRadioRdsUtility::CBody::GetProgrammeType |
360 // (other items were commented in a header). |
330 // (other items were commented in a header). |
361 // ----------------------------------------------------------------------------- |
331 // ----------------------------------------------------------------------------- |
362 // |
332 // |
363 TInt CRadioRdsUtility::CBody::GetProgrammeType( |
333 TInt CRadioRdsUtility::CBody::GetProgrammeType( |
364 TRdsProgrammeType& aPty ) |
334 TRdsProgrammeType& aPty ) |
365 { |
335 { |
366 FUNC_LOG; |
336 return iRadioSession->GetProgrammeType( aPty ); |
367 return iRadioSession.GetProgrammeType( aPty ); |
|
368 } |
337 } |
369 |
338 |
370 // ----------------------------------------------------------------------------- |
339 // ----------------------------------------------------------------------------- |
371 // CRadioRdsUtility::CBody::GetProgrammeService |
340 // CRadioRdsUtility::CBody::GetProgrammeService |
372 // (other items were commented in a header). |
341 // (other items were commented in a header). |
373 // ----------------------------------------------------------------------------- |
342 // ----------------------------------------------------------------------------- |
374 // |
343 // |
375 TInt CRadioRdsUtility::CBody::GetProgrammeService( |
344 TInt CRadioRdsUtility::CBody::GetProgrammeService( |
376 TRdsPSName& aPs ) |
345 TRdsPSName& aPs ) |
377 { |
346 { |
378 FUNC_LOG; |
|
379 TRsRdsPSName ps; |
347 TRsRdsPSName ps; |
380 TInt error = iRadioSession.GetProgrammeService( ps ); |
348 TInt error = iRadioSession->GetProgrammeService( ps ); |
381 |
349 |
382 if ( aPs.Length() ) |
350 if ( aPs.Length() ) |
383 { |
351 { |
384 aPs.Copy( ps ); |
352 aPs.Copy( ps ); |
385 } |
353 } |