author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 23 Jun 2010 18:12:57 +0300 | |
changeset 32 | 189d20c34778 |
parent 28 | 075425b8d9a4 |
child 37 | 451b2e1545b2 |
child 38 | f8c3d4e6102c |
permissions | -rw-r--r-- |
24 | 1 |
/* |
2 |
* Copyright (c) 2009 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: |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
// User includes |
|
19 |
#include "cradiordsreceiverbase.h" |
|
20 |
#include "cradioenginelogger.h" |
|
21 |
||
22 |
// ======== MEMBER FUNCTIONS ======== |
|
23 |
||
24 |
// --------------------------------------------------------------------------- |
|
25 |
// |
|
26 |
// --------------------------------------------------------------------------- |
|
27 |
// |
|
28 |
CRadioRdsReceiverBase::CRadioRdsReceiverBase( MRadioEngineSettings& aSettings ) |
|
29 |
: iSettings( aSettings ) |
|
30 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
31 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 32 |
} |
33 |
||
34 |
// --------------------------------------------------------------------------- |
|
35 |
// |
|
36 |
// --------------------------------------------------------------------------- |
|
37 |
// |
|
38 |
void CRadioRdsReceiverBase::BaseConstructL() |
|
39 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
40 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 41 |
iPsName = HBufC::NewL( TRdsPSName().MaxLength() ); |
42 |
} |
|
43 |
||
44 |
// --------------------------------------------------------------------------- |
|
45 |
// |
|
46 |
// --------------------------------------------------------------------------- |
|
47 |
// |
|
48 |
CRadioRdsReceiverBase::~CRadioRdsReceiverBase() |
|
49 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
50 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 51 |
iObservers.Close(); |
52 |
delete iPsName; |
|
53 |
iRadioText.Close(); |
|
54 |
} |
|
55 |
||
56 |
// --------------------------------------------------------------------------- |
|
57 |
// |
|
58 |
// --------------------------------------------------------------------------- |
|
59 |
// |
|
60 |
void CRadioRdsReceiverBase::AddObserverL( MRadioRdsDataObserver* aObserver ) |
|
61 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
62 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 63 |
TInt index = iObservers.FindInAddressOrder( aObserver ); |
64 |
if ( index == KErrNotFound ) |
|
65 |
{ |
|
66 |
iObservers.InsertInAddressOrderL( aObserver ); |
|
67 |
} |
|
68 |
} |
|
69 |
||
70 |
// --------------------------------------------------------------------------- |
|
71 |
// |
|
72 |
// --------------------------------------------------------------------------- |
|
73 |
// |
|
74 |
void CRadioRdsReceiverBase::RemoveObserver( MRadioRdsDataObserver* aObserver ) |
|
75 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
76 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 77 |
TInt index = iObservers.FindInAddressOrder( aObserver ); |
78 |
||
79 |
if ( index >= 0 ) |
|
80 |
{ |
|
81 |
iObservers.Remove( index ); |
|
82 |
} |
|
83 |
} |
|
84 |
||
85 |
// --------------------------------------------------------------------------- |
|
86 |
// |
|
87 |
// --------------------------------------------------------------------------- |
|
88 |
// |
|
89 |
TBool CRadioRdsReceiverBase::AutomaticSwitchingEnabled() const |
|
90 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
91 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 92 |
return iAfEnabled; |
93 |
} |
|
94 |
||
95 |
// --------------------------------------------------------------------------- |
|
96 |
// |
|
97 |
// --------------------------------------------------------------------------- |
|
98 |
// |
|
99 |
const TDesC& CRadioRdsReceiverBase::ProgrammeService() const |
|
100 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
101 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 102 |
return *iPsName; |
103 |
} |
|
104 |
||
105 |
// --------------------------------------------------------------------------- |
|
106 |
// |
|
107 |
// --------------------------------------------------------------------------- |
|
108 |
// |
|
109 |
const TDesC& CRadioRdsReceiverBase::RadioText() const |
|
110 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
111 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 112 |
return iRadioText; |
113 |
} |
|
114 |
||
115 |
// --------------------------------------------------------------------------- |
|
116 |
// |
|
117 |
// --------------------------------------------------------------------------- |
|
118 |
// |
|
119 |
TBool CRadioRdsReceiverBase::SignalAvailable() const |
|
120 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
121 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 122 |
return iSignalAvailable; |
123 |
} |
|
124 |
||
125 |
// --------------------------------------------------------------------------- |
|
126 |
// |
|
127 |
// --------------------------------------------------------------------------- |
|
128 |
// |
|
129 |
void CRadioRdsReceiverBase::SetAutomaticSwitchingL( TBool aEnable ) |
|
130 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
131 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 132 |
iAfEnabled = aEnable; |
133 |
for ( TInt i = 0 ; i < iObservers.Count(); i++ ) |
|
134 |
{ |
|
135 |
iObservers[i]->RdsAfSearchStateChange( iAfEnabled ); |
|
136 |
} |
|
137 |
} |
|
138 |
||
139 |
// --------------------------------------------------------------------------- |
|
140 |
// |
|
141 |
// --------------------------------------------------------------------------- |
|
142 |
// |
|
143 |
void CRadioRdsReceiverBase::ClearRdsInformation() |
|
144 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
145 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 146 |
iPsName->Des().Zero(); |
147 |
iRadioText.Close(); |
|
148 |
MrroRdsEventSignalChange( EFalse ); |
|
149 |
} |
|
150 |
||
151 |
// --------------------------------------------------------------------------- |
|
152 |
// |
|
153 |
// --------------------------------------------------------------------------- |
|
154 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
155 |
void CRadioRdsReceiverBase::MrroStationSeekByPTYComplete( TInt DEBUGVAR3( aError ), |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
156 |
TInt DEBUGVAR3( aFrequency ) ) |
24 | 157 |
{ |
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
158 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
159 |
LEVEL3( LOG_FORMAT( "aError: %d, aFrequency: %d ", aError, aFrequency ) ); |
24 | 160 |
} |
161 |
||
162 |
// --------------------------------------------------------------------------- |
|
163 |
// |
|
164 |
// --------------------------------------------------------------------------- |
|
165 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
166 |
void CRadioRdsReceiverBase::MrroStationSeekByTAComplete( TInt DEBUGVAR3( aError ), |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
167 |
TInt DEBUGVAR3( aFrequency ) ) |
24 | 168 |
{ |
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
169 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
170 |
LEVEL3( LOG_FORMAT( "aError: %d, aFrequency: %d ", aError, aFrequency ) ); |
24 | 171 |
} |
172 |
||
173 |
// --------------------------------------------------------------------------- |
|
174 |
// |
|
175 |
// --------------------------------------------------------------------------- |
|
176 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
177 |
void CRadioRdsReceiverBase::MrroStationSeekByTPComplete( TInt DEBUGVAR3( aError ), |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
178 |
TInt DEBUGVAR3( aFrequency ) ) |
24 | 179 |
{ |
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
180 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
181 |
LEVEL3( LOG_FORMAT( "aError: %d, aFrequency: %d ", aError, aFrequency ) ); |
24 | 182 |
} |
183 |
||
184 |
// --------------------------------------------------------------------------- |
|
185 |
// |
|
186 |
// --------------------------------------------------------------------------- |
|
187 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
188 |
void CRadioRdsReceiverBase::MrroGetFreqByPTYComplete( TInt DEBUGVAR3( aError ), |
24 | 189 |
RArray<TInt>& /*aFreqList*/ ) |
190 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
191 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
192 |
LEVEL3( LOG_FORMAT( "aError: %d", aError ) ); |
24 | 193 |
} |
194 |
||
195 |
// --------------------------------------------------------------------------- |
|
196 |
// |
|
197 |
// --------------------------------------------------------------------------- |
|
198 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
199 |
void CRadioRdsReceiverBase::MrroGetFreqByTAComplete( TInt DEBUGVAR3( aError ), |
24 | 200 |
RArray<TInt>& /*aFreqList*/ ) |
201 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
202 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
203 |
LEVEL3( LOG_FORMAT( "aError: %d", aError ) ); |
24 | 204 |
} |
205 |
||
206 |
// --------------------------------------------------------------------------- |
|
207 |
// |
|
208 |
// --------------------------------------------------------------------------- |
|
209 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
210 |
void CRadioRdsReceiverBase::MrroGetPSByPTYComplete( TInt DEBUGVAR3( aError ), |
24 | 211 |
RArray<TRdsPSName>& /*aPsList*/ ) |
212 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
213 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
214 |
LEVEL3( LOG_FORMAT( "aError: %d", aError ) ); |
24 | 215 |
} |
216 |
||
217 |
// --------------------------------------------------------------------------- |
|
218 |
// |
|
219 |
// --------------------------------------------------------------------------- |
|
220 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
221 |
void CRadioRdsReceiverBase::MrroGetPSByTAComplete( TInt DEBUGVAR3( aError ), |
24 | 222 |
RArray<TRdsPSName>& /*aPsList*/ ) |
223 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
224 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
225 |
LEVEL3( LOG_FORMAT( "aError: %d", aError ) ); |
24 | 226 |
} |
227 |
||
228 |
// --------------------------------------------------------------------------- |
|
229 |
// |
|
230 |
// --------------------------------------------------------------------------- |
|
231 |
// |
|
232 |
void CRadioRdsReceiverBase::MrroRdsDataPI( TInt aPi ) |
|
233 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
234 |
LEVEL2( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
235 |
LEVEL2( LOG_FORMAT( "aPi: %d", aPi ) ); |
24 | 236 |
const TInt observerCount = iObservers.Count(); |
237 |
const TUint32 frequency = iSettings.TunedFrequency(); |
|
238 |
for ( TInt i = 0; i < observerCount; ++i ) |
|
239 |
{ |
|
240 |
iObservers[i]->RdsDataPiCode( frequency, aPi ); |
|
241 |
} |
|
242 |
} |
|
243 |
||
244 |
// --------------------------------------------------------------------------- |
|
245 |
// |
|
246 |
// --------------------------------------------------------------------------- |
|
247 |
// |
|
248 |
void CRadioRdsReceiverBase::MrroRdsDataPTY( TRdsProgrammeType aPty ) |
|
249 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
250 |
LEVEL2( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
251 |
LEVEL2( LOG_FORMAT( "aPty: %d", aPty ) ); |
24 | 252 |
const TInt observerCount = iObservers.Count(); |
253 |
const TUint32 frequency = iSettings.TunedFrequency(); |
|
254 |
for ( TInt i = 0; i < observerCount; ++i ) |
|
255 |
{ |
|
256 |
iObservers[i]->RdsDataGenre( frequency, aPty ); |
|
257 |
} |
|
258 |
} |
|
259 |
||
260 |
// --------------------------------------------------------------------------- |
|
261 |
// Notifies of the New Programme Service data |
|
262 |
// --------------------------------------------------------------------------- |
|
263 |
// |
|
264 |
void CRadioRdsReceiverBase::MrroRdsDataPS( TRdsPSName& aPs ) |
|
265 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
266 |
LEVEL2( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
267 |
LEVEL2( LOG_FORMAT( "aPs: %S", &aPs ) ); |
24 | 268 |
const TUint32 frequency = iSettings.TunedFrequency(); |
269 |
iPsName->Des().Copy( aPs ); |
|
270 |
const TInt observerCount = iObservers.Count(); |
|
271 |
for ( TInt i = 0; i < observerCount; ++i ) |
|
272 |
{ |
|
273 |
iObservers[i]->RdsDataProgrammeService( frequency, *iPsName ); |
|
274 |
} |
|
275 |
} |
|
276 |
||
277 |
// --------------------------------------------------------------------------- |
|
278 |
// |
|
279 |
// --------------------------------------------------------------------------- |
|
280 |
// |
|
281 |
void CRadioRdsReceiverBase::MrroRdsDataRT( TRdsRadioText& aRt ) |
|
282 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
283 |
LEVEL2( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
284 |
LEVEL2( LOG_FORMAT( "aRt: %S", &aRt ) ); |
24 | 285 |
iRadioText.Close(); |
286 |
iRadioText.Create( aRt ); |
|
287 |
||
288 |
const TUint32 frequency = iSettings.TunedFrequency(); |
|
289 |
const TInt observerCount = iObservers.Count(); |
|
290 |
for ( TInt i = 0; i < observerCount; ++i ) |
|
291 |
{ |
|
292 |
iObservers[i]->RdsDataRadioText( frequency, iRadioText ); |
|
293 |
} |
|
294 |
} |
|
295 |
||
296 |
// --------------------------------------------------------------------------- |
|
297 |
// |
|
298 |
// --------------------------------------------------------------------------- |
|
299 |
// |
|
300 |
void CRadioRdsReceiverBase::MrroRdsDataCT( TDateTime& /*aCt*/ ) |
|
301 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
302 |
LEVEL2( LOG_METHOD_AUTO ); |
24 | 303 |
} |
304 |
||
305 |
// --------------------------------------------------------------------------- |
|
306 |
// |
|
307 |
// --------------------------------------------------------------------------- |
|
308 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
309 |
void CRadioRdsReceiverBase::MrroRdsDataTA( TBool DEBUGVAR2( aTaOn ) ) |
24 | 310 |
{ |
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
311 |
LEVEL2( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
312 |
LEVEL2( LOG_FORMAT( "aTaOn: %d", aTaOn ) ); |
24 | 313 |
} |
314 |
||
315 |
// --------------------------------------------------------------------------- |
|
316 |
// |
|
317 |
// --------------------------------------------------------------------------- |
|
318 |
// |
|
319 |
void CRadioRdsReceiverBase::MrroRdsDataRTplus( TRdsRTplusClass aRtPlusClass, |
|
320 |
TRdsRadioText& aRtPlusData ) |
|
321 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
322 |
LOG_METHOD_AUTO; |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
323 |
LOG_FORMAT( "Class: %d, data: %S", aRtPlusClass, &aRtPlusData ); |
24 | 324 |
const TUint32 frequency = iSettings.TunedFrequency(); |
325 |
const TInt observerCount = iObservers.Count(); |
|
326 |
for ( TInt i = 0; i < observerCount; ++i ) |
|
327 |
{ |
|
328 |
iObservers[i]->RdsDataRadioTextPlus( frequency, aRtPlusClass, aRtPlusData ); |
|
329 |
} |
|
330 |
} |
|
331 |
||
332 |
// --------------------------------------------------------------------------- |
|
333 |
// Notifies of the start of Alternate Frequency search |
|
334 |
// --------------------------------------------------------------------------- |
|
335 |
// |
|
336 |
void CRadioRdsReceiverBase::MrroRdsSearchBeginAF() |
|
337 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
338 |
LEVEL3( LOG_METHOD_AUTO ); |
24 | 339 |
const TInt observerCount = iObservers.Count(); |
340 |
for ( TInt i = 0; i < observerCount; ++i ) |
|
341 |
{ |
|
342 |
iObservers[i]->RdsAfSearchBegin(); |
|
343 |
} |
|
344 |
} |
|
345 |
||
346 |
// --------------------------------------------------------------------------- |
|
347 |
// Notifies of the end of Alternate Frequency search |
|
348 |
// --------------------------------------------------------------------------- |
|
349 |
// |
|
350 |
void CRadioRdsReceiverBase::MrroRdsSearchEndAF( TInt aError, TInt aFrequency ) |
|
351 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
352 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
353 |
LEVEL3( LOG_FORMAT( "aError: %d, aFrequency: %d", aError, aFrequency ) ); |
24 | 354 |
const TInt observerCount = iObservers.Count(); |
355 |
for ( TInt i = 0; i < observerCount; ++i ) |
|
356 |
{ |
|
357 |
// Radio utility uses Hz, UI uses kHz. It's ok to divide with 1000, possible lost fractions are useless. |
|
358 |
iObservers[i]->RdsAfSearchEnd( aFrequency, aError ); |
|
359 |
} |
|
360 |
} |
|
361 |
||
362 |
// --------------------------------------------------------------------------- |
|
363 |
// |
|
364 |
// --------------------------------------------------------------------------- |
|
365 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
366 |
void CRadioRdsReceiverBase::MrroRdsStationChangeTA( TInt DEBUGVAR3( aFrequency ) ) |
24 | 367 |
{ |
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
368 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
369 |
LEVEL3( LOG_FORMAT( "aFrequency: %d", aFrequency ) ); |
24 | 370 |
} |
371 |
||
372 |
// --------------------------------------------------------------------------- |
|
373 |
// |
|
374 |
// --------------------------------------------------------------------------- |
|
375 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
376 |
void CRadioRdsReceiverBase::MrroRdsEventAutomaticSwitchingChange( TBool DEBUGVAR3( aAuto ) ) |
24 | 377 |
{ |
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
378 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
379 |
LEVEL3( LOG_FORMAT( "aAuto: %d", aAuto ) ); |
24 | 380 |
} |
381 |
||
382 |
// --------------------------------------------------------------------------- |
|
383 |
// |
|
384 |
// --------------------------------------------------------------------------- |
|
385 |
// |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
386 |
void CRadioRdsReceiverBase::MrroRdsEventAutomaticTrafficAnnouncement( TBool DEBUGVAR3( aAuto ) ) |
24 | 387 |
{ |
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
388 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
389 |
LEVEL3( LOG_FORMAT( "aAuto: %d", aAuto ) ); |
24 | 390 |
} |
391 |
||
392 |
// --------------------------------------------------------------------------- |
|
393 |
// |
|
394 |
// --------------------------------------------------------------------------- |
|
395 |
// |
|
396 |
void CRadioRdsReceiverBase::MrroRdsEventSignalChange( TBool aSignal ) |
|
397 |
{ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
398 |
LEVEL3( LOG_METHOD_AUTO ); |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
399 |
LEVEL3( LOG_FORMAT( "aSignal: %d", aSignal ) ); |
24 | 400 |
iSignalAvailable = aSignal; |
401 |
const TUint32 frequency = iSettings.TunedFrequency(); |
|
402 |
const TInt observerCount = iObservers.Count(); |
|
403 |
for ( TInt i = 0; i < observerCount; ++i ) |
|
404 |
{ |
|
405 |
iObservers[i]->RdsAvailable( frequency, iSignalAvailable ); |
|
406 |
} |
|
407 |
} |