|
1 /* |
|
2 * Copyright (c) 2006-2006 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: The RDS receiver implementation for FM Radio |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CFMRADIORDSRECEIVER_H |
|
20 #define CFMRADIORDSRECEIVER_H |
|
21 |
|
22 #include "fmradioengineradiosettings.h" |
|
23 #include "fmradiordsobserver.h" |
|
24 #include "fmradiordsreceiverbase.h" |
|
25 |
|
26 NONSHARABLE_CLASS( CFMRadioRdsReceiver ) : public CFMRadioRdsReceiverBase |
|
27 { |
|
28 public: |
|
29 |
|
30 /** |
|
31 * The two-phased constructor |
|
32 * |
|
33 * @param aSettings The radio settings |
|
34 */ |
|
35 static CFMRadioRdsReceiver* NewL( TRadioSettings& aSettings ); |
|
36 |
|
37 /** |
|
38 * The destructor |
|
39 */ |
|
40 virtual ~CFMRadioRdsReceiver(); |
|
41 |
|
42 // from CFMRadioRdsReceiverBase |
|
43 void InitL( CRadioUtility& aRadioUtility, CFMRadioPubSub* aPubSub ); |
|
44 void SetAutomaticSwitchingL( TBool aEnable ); |
|
45 void StartReceiver(); |
|
46 void StopReceiver(); |
|
47 |
|
48 private: |
|
49 |
|
50 /** |
|
51 * The default constructor |
|
52 * |
|
53 * @param aSettings The radio settings |
|
54 */ |
|
55 CFMRadioRdsReceiver( TRadioSettings& aSettings ); |
|
56 |
|
57 /** |
|
58 * Second phase constructor |
|
59 */ |
|
60 void ConstructL(); |
|
61 |
|
62 private: // data |
|
63 |
|
64 /** The RDS utility */ |
|
65 CRadioRdsUtility* iRdsUtility; |
|
66 |
|
67 /** State of the RDS receiver */ |
|
68 TBool iStarted; |
|
69 }; |
|
70 |
|
71 #endif // CFMRADIORDSRECEIVER_H |