39 static CMMFRadioBackendEngine* Instance(); |
39 static CMMFRadioBackendEngine* Instance(); |
40 void DeleteInstance(); |
40 void DeleteInstance(); |
41 ~CMMFRadioBackendEngine(); |
41 ~CMMFRadioBackendEngine(); |
42 |
42 |
43 void SetFrequency(TInt aFreq); |
43 void SetFrequency(TInt aFreq); |
44 TInt GetFrequency(TInt& aFreq); |
44 XAresult GetFrequency(TInt& aFreq); |
45 TInt GetSignalStrength(TInt& aFreq); |
45 XAresult GetSignalStrength(TInt& aFreq); |
46 void StationSeek(TBool aUpwards); |
46 void StationSeek(TBool aUpwards); |
47 void CancelSetFrequency(); |
47 void CancelSetFrequency(); |
48 void CancelStationSeek(); |
48 void CancelStationSeek(); |
49 void SetFreqRange(TFmRadioFrequencyRange aRange); |
49 void SetFreqRange(TFmRadioFrequencyRange aRange); |
50 TInt GetFreqRange(TFmRadioFrequencyRange& aRange); |
50 XAresult GetFreqRange(TFmRadioFrequencyRange& aRange); |
51 TInt GetFreqRangeProperties(TFmRadioFrequencyRange& aRange, TInt& aMinFreq, TInt& aMaxFreq); |
51 XAresult GetFreqRangeProperties(TFmRadioFrequencyRange& aRange, TInt& aMinFreq, TInt& aMaxFreq); |
52 TInt GetMaxVolume(TInt& aMaxVol); |
52 XAresult SetVolume(TInt aVol); |
53 TInt SetVolume(TInt aVol); |
53 XAresult GetVolume(TInt& aVol); |
54 TInt GetVolume(TInt& aVol); |
54 XAresult SetMute(TBool aMute); |
55 TInt SetMute(TBool aMute); |
55 XAresult GetForcedMonoReception(TUint& aForcedMono); |
56 TInt GetForcedMonoReception(TUint& aForcedMono); |
56 XAresult ForceMonoReception(TUint aForcedMono); |
57 TInt ForceMonoReception(TUint aForcedMono); |
|
58 void PlayRadio(); |
57 void PlayRadio(); |
59 void StopRadio(); |
58 void StopRadio(); |
60 TInt GetSquelch(TBool& aSquelch); |
59 XAresult GetSquelch(TBool& aSquelch); |
61 TInt SetSquelch(TBool aSquelch); |
60 XAresult SetSquelch(TBool aSquelch); |
62 void SetAdaptContext(void* adaptcontext); |
61 void SetAdaptContext(void* adaptcontext); |
63 |
62 |
64 /** |
63 /** |
65 * From MRadioPlayerObserver. |
64 * From MRadioPlayerObserver. |
66 * Called when Radio state changed. |
65 * Called when Radio state changed. |
229 void ConstructL(); |
228 void ConstructL(); |
230 XAresult TranslateError(TInt error); |
229 XAresult TranslateError(TInt error); |
231 XAresult SetForceMonoFlag(); |
230 XAresult SetForceMonoFlag(); |
232 |
231 |
233 private: |
232 private: |
234 CRadioUtility* iRadioUtility; |
233 CRadioUtility* iRadioUtility; |
235 CRadioFmTunerUtility* iFmTunerUtility; |
234 CRadioFmTunerUtility* iFmTunerUtility; |
236 CRadioPlayerUtility* iRadioPlayerUtility; |
235 CRadioPlayerUtility* iRadioPlayerUtility; |
237 TBool iForceStereo; |
236 TBool iForceStereo; |
238 void* iAdaptContext; |
237 void* iAdaptContext; |
239 TFmRadioFrequencyRange iDefaultFreqRange; |
238 TFmRadioFrequencyRange iDefaultFreqRange; |
240 TUint iDefaultFrequency; |
239 TUint iDefaultFrequency; |
241 TInt iDefaultMinFreq; |
240 TInt iDefaultMinFreq; |
242 TInt iDefaultMaxFreq; |
241 TInt iDefaultMaxFreq; |
243 |
242 |
244 }; |
243 }; |
245 |
244 |