CRadioUtility::CBody Class Reference
class CRadioUtility::CBody : public CBase
|
This class encapsulates the implementation body of the
CRadioUtility
interface.
radio_utility.lib
-
Since
-
S60 3.2
Private Member Functions
|
|
CBody
()
|
void
|
ConstructL
(
TBool
)
|
void
|
GetFreqByPTYComplete
(
TInt
,
RArray
<
TInt
> &)
|
void
|
GetFreqByTAComplete
(
TInt
,
RArray
<
TInt
> &)
|
void
|
GetPSByPTYComplete
(
TInt
,
RArray
<
TRsRdsPSName
> &)
|
void
|
GetPSByTAComplete
(
TInt
,
RArray
<
TRsRdsPSName
> &)
|
void
|
RadioEventAntennaStatusChange
(
TBool
)
|
void
|
RadioEventBalanceChange
(
TInt
,
TInt
)
|
void
|
RadioEventForcedMonoChanged
(
TBool
)
|
void
|
RadioEventFrequencyChange
(
TInt
)
|
void
|
RadioEventFrequencyRangeChanged
(
TRsFrequencyRange
)
|
void
|
RadioEventMuteChange
(
TBool
)
|
void
|
RadioEventOfflineModeChange
(
TBool
)
|
void
|
RadioEventRdsAutomaticSwitchingChange
(
TBool
)
|
void
|
RadioEventRdsAutomaticTrafficAnnouncement
(
TBool
)
|
void
|
RadioEventRdsDataCT
(
TDateTime
&)
|
void
|
RadioEventRdsDataPI
(
TInt
)
|
void
|
RadioEventRdsDataPS
(
TRsRdsPSName
&)
|
void
|
RadioEventRdsDataPTY
(
TRsRdsProgrammeType
)
|
void
|
RadioEventRdsDataRT
(
TRsRdsRadioText
&)
|
void
|
RadioEventRdsDataRTplus
(
TRsRdsRTplusClass
,
TRsRdsRadioText
&)
|
void
|
RadioEventRdsDataTA
(
TBool
)
|
void
|
RadioEventRdsSearchBeginAF
()
|
void
|
RadioEventRdsSearchEndAF
(
TRadioServerError
,
TInt
)
|
void
|
RadioEventRdsSignalChange
(
TBool
)
|
void
|
RadioEventRdsStationChangeTA
(
TInt
)
|
void
|
RadioEventSquelchChanged
(
TBool
)
|
void
|
RadioEventStateChange
(
TBool
,
TInt
)
|
void
|
RadioEventTransmitterStatusChange
(
TBool
)
|
void
|
RadioEventVolumeChange
(
TInt
)
|
void
|
RequestTunerControlComplete
(
TRadioServerError
)
|
void
|
SetFrequencyComplete
(
TRadioServerError
)
|
void
|
SetFrequencyRangeComplete
(
TRadioServerError
)
|
void
|
StationSeekByPTYComplete
(
TInt
,
TInt
)
|
void
|
StationSeekByTAComplete
(
TInt
,
TInt
)
|
void
|
StationSeekByTPComplete
(
TInt
,
TInt
)
|
void
|
StationSeekComplete
(
TRadioServerError
,
TInt
)
|
Constructor & Destructor Documentation
Member Functions Documentation
ConstructL(TBool)
void
|
ConstructL
|
(
|
TBool
|
aPrimaryClient
|
)
|
[private]
|
GetFreqByPTYComplete(TInt, RArray< TInt > &)
void
|
GetFreqByPTYComplete
|
(
|
TInt
|
aError,
|
|
RArray
<
TInt
> &
|
aFreqList
|
|
)
|
[private]
|
Parameters
TInt
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
RArray
<
TInt
> & aFreqList
|
Array of frequencies (Hz), valid only if aError is KErrNone.
|
GetFreqByTAComplete(TInt, RArray< TInt > &)
void
|
GetFreqByTAComplete
|
(
|
TInt
|
aError,
|
|
RArray
<
TInt
> &
|
aFreqList
|
|
)
|
[private]
|
Parameters
TInt
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
RArray
<
TInt
> & aFreqList
|
Array of frequencies (Hz), valid only if aError is KErrNone.
|
GetPSByPTYComplete(TInt, RArray< TRsRdsPSName > &)
Parameters
TInt
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
RArray
<
TRsRdsPSName
> & aPsList
|
Array of programme service names, valid only if aError is KErrNone.
|
GetPSByTAComplete(TInt, RArray< TRsRdsPSName > &)
Parameters
TInt
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
RArray
<
TRsRdsPSName
> & aPsList
|
Array of programme service names, valid only if aError is KErrNone.
|
RadioEventAntennaStatusChange(TBool)
void
|
RadioEventAntennaStatusChange
|
(
|
TBool
|
aAttached
|
)
|
[private]
|
Parameters
TBool
aAttached
|
ETrue if antenna is attached.
|
RadioEventBalanceChange(TInt, TInt)
void
|
RadioEventBalanceChange
|
(
|
TInt
|
aLeftPercentage,
|
|
TInt
|
aRightPercentage
|
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating balance setting change.
Parameters
TInt
aLeftPercentage
|
Left speaker volume percentage. This value ranges from 0 to 100.
|
TInt
aRightPercentage
|
Right speaker volume percentage. This value ranges from 0 to 100.
|
RadioEventForcedMonoChanged(TBool)
void
|
RadioEventForcedMonoChanged
|
(
|
TBool
|
aForcedMono
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating forced mono status change.
Parameters
TBool
aForcedMono
|
ETrue if forced mode is enabled; EFalse otherwise.
|
RadioEventFrequencyChange(TInt)
void
|
RadioEventFrequencyChange
|
(
|
TInt
|
aFrequency
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating frequency(Hz) change. This may be caused by other applications or RDS if AF/TA is enabled.
Parameters
TInt
aFrequency
|
New frequency where tuner is currently tuned.
|
RadioEventFrequencyRangeChanged(TRsFrequencyRange)
void
|
RadioEventFrequencyRangeChanged
|
(
|
TRsFrequencyRange
|
aNewRange
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating frequency range change. This may be caused by other applications.
Parameters
TRsFrequencyRange
aNewRange
|
New frequency range.
|
RadioEventMuteChange(TBool)
void
|
RadioEventMuteChange
|
(
|
TBool
|
aMute
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating mute setting change.
Parameters
TBool
aMute
|
ETrue indicates audio is muted.
|
RadioEventOfflineModeChange(TBool)
void
|
RadioEventOfflineModeChange
|
(
|
TBool
|
aOfflineMode
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating offline mode change.
Parameters
TBool
aOfflineMode
|
ETrue if device is in offline mode.
|
RadioEventRdsAutomaticSwitchingChange(TBool)
void
|
RadioEventRdsAutomaticSwitchingChange
|
(
|
TBool
|
aAuto
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating automatic switching (AF) setting change.
Parameters
TBool
aAuto
|
ETrue indicates that automatic switching is on.
|
RadioEventRdsAutomaticTrafficAnnouncement(TBool)
void
|
RadioEventRdsAutomaticTrafficAnnouncement
|
(
|
TBool
|
aAuto
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating automatic traffic announcement setting change.
Parameters
TBool
aAuto
|
ETrue indicates that automatic traffic announcement is on.
|
RadioEventRdsDataCT(TDateTime &)
void
|
RadioEventRdsDataCT
|
(
|
TDateTime
&
|
aCt
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating new Clock Time(CT) is available.
RadioEventRdsDataPI(TInt)
void
|
RadioEventRdsDataPI
|
(
|
TInt
|
aPi
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating new Programme Identification(PI) is available.
Parameters
TInt
aPi
|
Programme identification
|
RadioEventRdsDataPS(TRsRdsPSName &)
From
MRadioObserver
Event notification indicating new Programme Service(PS) is available.
RadioEventRdsDataPTY(TRsRdsProgrammeType)
From
MRadioObserver
Event notification indicating new Programme Type(PTY) is available.
RadioEventRdsDataRT(TRsRdsRadioText &)
From
MRadioObserver
Event notification indicating new Radio Text(RT) is available.
RadioEventRdsDataRTplus(TRsRdsRTplusClass, TRsRdsRadioText &)
void
|
RadioEventRdsDataRTplus
|
(
|
TRsRdsRTplusClass
|
aRtPlusClass,
|
|
TRsRdsRadioText
&
|
aRtPlusData
|
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating new Radio Text+(RT+) is available.
Parameters
TRsRdsRTplusClass
aRtPlusClass
|
Radio text plus class
|
TRsRdsRadioText
& aRtPlusData
|
Radio text plus data
|
RadioEventRdsDataTA(TBool)
void
|
RadioEventRdsDataTA
|
(
|
TBool
|
aTaOn
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating Traffice Announcement(TA) status change.
Parameters
TBool
aTaOn
|
ETrue indicates that Traffic Announcement is on.
|
RadioEventRdsSearchBeginAF()
void
|
RadioEventRdsSearchBeginAF
|
(
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating the beginning of Alternate Frequency(AF) search.
RadioEventRdsSearchEndAF(TRadioServerError, TInt)
From
MRadioObserver
Event notification indicating the end of Alternate Frequency(AF) search.
Parameters
TRadioServerError
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
TInt
aFrequency
|
The frequency(Hz) of the radio station that was found.
|
RadioEventRdsSignalChange(TBool)
void
|
RadioEventRdsSignalChange
|
(
|
TBool
|
aSignal
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating RDS signal status change (i.e. signal is lost/restored).
Parameters
TBool
aSignal
|
ETrue indicates that RDS signal is available in the tuned frequency.
|
RadioEventRdsStationChangeTA(TInt)
void
|
RadioEventRdsStationChangeTA
|
(
|
TInt
|
aFrequency
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating station change to another frequency(Hz) that is broadcasting Traffic Announcement(TA).
Parameters
TInt
aFrequency
|
The frequency(Hz) of the radio station that was found.
|
RadioEventSquelchChanged(TBool)
void
|
RadioEventSquelchChanged
|
(
|
TBool
|
aSquelch
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating squelch (muting the frequencies without broadcast) status change.
Parameters
TBool
aSquelch
|
ETrue if squelch is enabled; EFalse otherwise.
|
RadioEventStateChange(TBool, TInt)
void
|
RadioEventStateChange
|
(
|
TBool
|
aRadioOn,
|
|
TInt
|
aError
|
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating radio player state change. This may be caused by other applications.
Parameters
TBool
aRadioOn
|
ETrue if radio is playing, otherwise radio is off.
|
TInt
aError
|
Valid only if aRadioOn is EFalse. Contains the reason why radio is off.
|
RadioEventTransmitterStatusChange(TBool)
void
|
RadioEventTransmitterStatusChange
|
(
|
TBool
|
aActive
|
)
|
[private]
|
From
MRadioObserver
Event notification indicating FM transmitter status change. Radio receiver is turned off when FM transmitter is active.
Parameters
TBool
aActive
|
ETrue if FM transmitter is active; EFalse otherwise.
|
RadioEventVolumeChange(TInt)
void
|
RadioEventVolumeChange
|
(
|
TInt
|
aVolume
|
)
|
[private]
|
RadioFmTunerUtilityL(MRadioFmTunerObserver &)
Returns a reference to FM Tuner Utility class for controlling the tuner settings.
RadioPlayerUtilityL(MRadioPlayerObserver &)
Returns a reference to Radio Player Utility class for controlling the radio playback.
RadioRdsUtilityL(MRadioRdsObserver &)
Returns a reference to Radio RDS Utility class for accessing the Radio Data System (RDS).
Parameters
MRadioRdsObserver
& aObserver
|
The observer object for receiving async completion callbacks
|
RequestTunerControlComplete(TRadioServerError)
From
MRadioObserver
Completion message for RequestTunerControl request.
Parameters
TRadioServerError
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
SetFrequencyComplete(TRadioServerError)
Parameters
TRadioServerError
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
SetFrequencyRangeComplete(TRadioServerError)
Parameters
TRadioServerError
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
StationSeekByPTYComplete(TInt, TInt)
void
|
StationSeekByPTYComplete
|
(
|
TInt
|
aError,
|
|
TInt
|
aFrequency
|
|
)
|
[private]
|
Parameters
TInt
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
TInt
aFrequency
|
The frequency(Hz) of the radio station that was found.
|
StationSeekByTAComplete(TInt, TInt)
void
|
StationSeekByTAComplete
|
(
|
TInt
|
aError,
|
|
TInt
|
aFrequency
|
|
)
|
[private]
|
Parameters
TInt
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
TInt
aFrequency
|
The frequency(Hz) of the radio station that was found.
|
StationSeekByTPComplete(TInt, TInt)
void
|
StationSeekByTPComplete
|
(
|
TInt
|
aError,
|
|
TInt
|
aFrequency
|
|
)
|
[private]
|
Parameters
TInt
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
TInt
aFrequency
|
The frequency(Hz) of the radio station that was found.
|
StationSeekComplete(TRadioServerError, TInt)
Parameters
TRadioServerError
aError
|
KErrNone if successful, otherwise one of the system/RadioServer errors.
|
TInt
aFrequency
|
Valid only if aError is KErrNone. Contains the new frequency in Hz.
|
Member Data Documentation
CRadioFmTunerUtility * iFmTunerUtility
MRadioPlayerObserver * iPlayerObserver
CRadioPlayerUtility * iPlayerUtility
RRadioSession * iRadioSession
MRadioRdsObserver * iRdsObserver
CRadioRdsUtility * iRdsUtility
MRadioFmTunerObserver * iTunerObserver
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.