|
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 #ifndef MRADIORDSDATAOBSERVER_H |
|
19 #define MRADIORDSDATAOBSERVER_H |
|
20 |
|
21 #include <e32std.h> |
|
22 |
|
23 NONSHARABLE_CLASS( MRadioRdsDataObserver ) |
|
24 { |
|
25 public: |
|
26 |
|
27 /** |
|
28 * Notifies of the status of RDS signal |
|
29 */ |
|
30 virtual void RdsAvailable( TUint32 aFrequency, TBool aAvailable ) = 0; |
|
31 |
|
32 /** |
|
33 * Notifies of the beginning of Alternate Frequency search |
|
34 */ |
|
35 virtual void RdsAfSearchBegin() = 0; |
|
36 |
|
37 /** |
|
38 * Notifies of the completed Alternate Frequency search |
|
39 * |
|
40 * @param aFrequency The new frequency |
|
41 * @param aError A standard system error code |
|
42 */ |
|
43 virtual void RdsAfSearchEnd( TUint32 aFrequency, TInt aError ) = 0; |
|
44 |
|
45 /** |
|
46 * Notifies of the changed Alternate Frequency search state |
|
47 * |
|
48 * @param aEnabled ETrue if AF search was enabled, otherwise EFalse |
|
49 */ |
|
50 virtual void RdsAfSearchStateChange( TBool aEnabled ) = 0; |
|
51 |
|
52 /** |
|
53 * Programme Service data available |
|
54 * |
|
55 * @param aProgramService The new Programme Service data |
|
56 */ |
|
57 virtual void RdsDataProgrammeService( TUint32 aFrequency, const TDesC& aProgramService ) = 0; |
|
58 |
|
59 /** |
|
60 * Radio text data available |
|
61 * |
|
62 * @param aRt The new radio text data |
|
63 */ |
|
64 virtual void RdsDataRadioText( TUint32 aFrequency, const TDesC& aRt ) = 0; |
|
65 |
|
66 /** |
|
67 * Radio text plus data available. |
|
68 * |
|
69 * @param aRtPlusClass The class of the radio text plus data. Radio text plus classes are |
|
70 * specified in TRdsRTplusClass enumeration. |
|
71 * @param aRtPlusData The new radio text plus data. |
|
72 */ |
|
73 virtual void RdsDataRadioTextPlus( TUint32 aFrequency, const TInt aRtPlusClass, const TDesC& aRtPlusData ) = 0; |
|
74 |
|
75 /** |
|
76 * Radio genre available |
|
77 */ |
|
78 virtual void RdsDataGenre( TUint32 aFrequency, const TInt aGenre ) = 0; |
|
79 |
|
80 /** |
|
81 * Radio PI code available |
|
82 */ |
|
83 virtual void RdsDataPiCode( TUint32 aFrequency, const TInt aPiCode ) = 0; |
|
84 |
|
85 }; |
|
86 |
|
87 #endif // MRADIORDSDATAOBSERVER_H |