MRadioObserver Class Reference

class MRadioObserver

Defines functions that client must implement in order to receive events from the radio server.

RadioSession.lib
Since
S60 3.0
Public Member Functions
voidGetFreqByPTYComplete(TRadioServerError, RArray< TInt > &)
voidGetFreqByTAComplete(TRadioServerError, RArray< TInt > &)
voidGetPSByPTYComplete(TRadioServerError, RArray< TRsRdsPSName > &)
voidGetPSByTAComplete(TRadioServerError, RArray< TRsRdsPSName > &)
voidRadioEventAntennaStatusChange(TBool)
voidRadioEventBalanceChange(TInt, TInt)
voidRadioEventForcedMonoChanged(TBool)
voidRadioEventFrequencyChange(TInt)
voidRadioEventFrequencyRangeChanged(TRsFrequencyRange)
voidRadioEventMuteChange(TBool)
voidRadioEventOfflineModeChange(TBool)
voidRadioEventRdsAutomaticSwitchingChange(TBool)
voidRadioEventRdsAutomaticTrafficAnnouncement(TBool)
voidRadioEventRdsDataCT(TDateTime &)
voidRadioEventRdsDataPI(TInt)
voidRadioEventRdsDataPS(TRsRdsPSName &)
voidRadioEventRdsDataPTY(TRsRdsProgrammeType)
voidRadioEventRdsDataRT(TRsRdsRadioText &)
voidRadioEventRdsDataRTplus(TRsRdsRTplusClass, TRsRdsRadioText &)
voidRadioEventRdsDataTA(TBool)
voidRadioEventRdsSearchBeginAF()
voidRadioEventRdsSearchEndAF(TRadioServerError, TInt)
voidRadioEventRdsSignalChange(TBool)
voidRadioEventRdsStationChangeTA(TInt)
voidRadioEventSquelchChanged(TBool)
voidRadioEventStateChange(TBool, TRadioServerError)
voidRadioEventTransmitterStatusChange(TBool)
voidRadioEventVolumeChange(TInt)
voidRequestTunerControlComplete(TRadioServerError)
voidSetFrequencyComplete(TRadioServerError)
voidSetFrequencyRangeComplete(TRadioServerError)
voidStationSeekByPTYComplete(TRadioServerError, TInt)
voidStationSeekByTAComplete(TRadioServerError, TInt)
voidStationSeekByTPComplete(TRadioServerError, TInt)
voidStationSeekComplete(TRadioServerError, TInt)

Member Functions Documentation

GetFreqByPTYComplete(TRadioServerError, RArray< TInt > &)

voidGetFreqByPTYComplete(TRadioServerErroraError,
RArray< TInt > &aFreqList
)[pure virtual]

Completion message for GetFreqByPTY request.

Since
S60 3.2

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.
RArray< TInt > & aFreqListArray of frequencies (Hz), valid only if aError is KErrNone.

GetFreqByTAComplete(TRadioServerError, RArray< TInt > &)

voidGetFreqByTAComplete(TRadioServerErroraError,
RArray< TInt > &aFreqList
)[pure virtual]

Completion message for GetFreqByTA request.

Since
S60 3.2

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.
RArray< TInt > & aFreqListArray of frequencies (Hz), valid only if aError is KErrNone.

GetPSByPTYComplete(TRadioServerError, RArray< TRsRdsPSName > &)

voidGetPSByPTYComplete(TRadioServerErroraError,
RArray< TRsRdsPSName > &aPsList
)[pure virtual]

Completion message for StatGetPSByPTY request.

Since
S60 3.2

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.
RArray< TRsRdsPSName > & aPsListArray of programme service names, valid only if aError is KErrNone.

GetPSByTAComplete(TRadioServerError, RArray< TRsRdsPSName > &)

voidGetPSByTAComplete(TRadioServerErroraError,
RArray< TRsRdsPSName > &aPsList
)[pure virtual]

Completion message for GetPSByTA request.

Since
S60 3.2

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.
RArray< TRsRdsPSName > & aPsListArray of programme service names, valid only if aError is KErrNone.

RadioEventAntennaStatusChange(TBool)

voidRadioEventAntennaStatusChange(TBoolaAttached)[pure virtual]

Event notification indicating antenna status change.

Since
S60 3.0

Parameters

TBool aAttachedETrue if antenna is attached.

RadioEventBalanceChange(TInt, TInt)

voidRadioEventBalanceChange(TIntaLeftPercentage,
TIntaRightPercentage
)[pure virtual]

Event notification indicating balance setting change.

Since
S60 3.2

Parameters

TInt aLeftPercentageLeft speaker volume percentage. This value ranges from 0 to 100.
TInt aRightPercentageRight speaker volume percentage. This value ranges from 0 to 100.

RadioEventForcedMonoChanged(TBool)

voidRadioEventForcedMonoChanged(TBoolaForcedMono)[pure virtual]

Event notification indicating forced mono status change.

Since
S60 3.2

Parameters

TBool aForcedMonoETrue if forced mode is enabled; EFalse otherwise.

RadioEventFrequencyChange(TInt)

voidRadioEventFrequencyChange(TIntaFrequency)[pure virtual]

Event notification indicating frequency(Hz) change. This may be caused by other applications or RDS if AF/TA is enabled.

Since
S60 3.2

Parameters

TInt aFrequencyNew frequency where tuner is currently tuned.

RadioEventFrequencyRangeChanged(TRsFrequencyRange)

voidRadioEventFrequencyRangeChanged(TRsFrequencyRangeaNewRange)[pure virtual]

Event notification indicating frequency range change. This may be caused by other applications.

Since
S60 3.2

Parameters

TRsFrequencyRange aNewRangeNew frequency range.

RadioEventMuteChange(TBool)

voidRadioEventMuteChange(TBoolaMute)[pure virtual]

Event notification indicating mute setting change.

Since
S60 3.2

Parameters

TBool aMuteETrue indicates audio is muted.

RadioEventOfflineModeChange(TBool)

voidRadioEventOfflineModeChange(TBoolaOfflineMode)[pure virtual]

Event notification indicating offline mode change.

Since
S60 3.0

Parameters

TBool aOfflineModeETrue if device is in offline mode.

RadioEventRdsAutomaticSwitchingChange(TBool)

voidRadioEventRdsAutomaticSwitchingChange(TBoolaAuto)[pure virtual]

Event notification indicating automatic switching (AF) setting change.

Since
S60 3.2

Parameters

TBool aAutoETrue indicates that automatic switching is on.

RadioEventRdsAutomaticTrafficAnnouncement(TBool)

voidRadioEventRdsAutomaticTrafficAnnouncement(TBoolaAuto)[pure virtual]

Event notification indicating automatic traffic announcement setting change.

Since
S60 3.2

Parameters

TBool aAutoETrue indicates that automatic traffic announcement is on.

RadioEventRdsDataCT(TDateTime &)

voidRadioEventRdsDataCT(TDateTime &aCt)[pure virtual]

Event notification indicating new Clock Time(CT) is available.

Since
S60 3.2

Parameters

TDateTime & aCtClock time

RadioEventRdsDataPI(TInt)

voidRadioEventRdsDataPI(TIntaPi)[pure virtual]

Event notification indicating new Programme Identification(PI) is available.

Since
S60 3.2

Parameters

TInt aPiProgramme identification

RadioEventRdsDataPS(TRsRdsPSName &)

voidRadioEventRdsDataPS(TRsRdsPSName &aPs)[pure virtual]

Event notification indicating new Programme Service(PS) is available.

Since
S60 3.2

Parameters

TRsRdsPSName & aPsProgramme service

RadioEventRdsDataPTY(TRsRdsProgrammeType)

voidRadioEventRdsDataPTY(TRsRdsProgrammeTypeaPty)[pure virtual]

Event notification indicating new Programme Type(PTY) is available.

Since
S60 3.2

Parameters

TRsRdsProgrammeType aPtyProgramme type

RadioEventRdsDataRT(TRsRdsRadioText &)

voidRadioEventRdsDataRT(TRsRdsRadioText &aRt)[pure virtual]

Event notification indicating new Radio Text(RT) is available.

Since
S60 3.2

Parameters

TRsRdsRadioText & aRtRadio text

RadioEventRdsDataRTplus(TRsRdsRTplusClass, TRsRdsRadioText &)

voidRadioEventRdsDataRTplus(TRsRdsRTplusClassaRtPlusClass,
TRsRdsRadioText &aRtPlusData
)[pure virtual]

Event notification indicating new Radio Text+(RT+) is available.

Since
S60 3.2

Parameters

TRsRdsRTplusClass aRtPlusClassRadio text plus class
TRsRdsRadioText & aRtPlusDataRadio text plus data

RadioEventRdsDataTA(TBool)

voidRadioEventRdsDataTA(TBoolaTaOn)[pure virtual]

Event notification indicating Traffice Announcement(TA) status change.

Since
S60 3.2

Parameters

TBool aTaOnETrue indicates that Traffic Announcement is on.

RadioEventRdsSearchBeginAF()

voidRadioEventRdsSearchBeginAF()[pure virtual]

Event notification indicating the beginning of Alternate Frequency(AF) search.

Since
S60 3.2

RadioEventRdsSearchEndAF(TRadioServerError, TInt)

voidRadioEventRdsSearchEndAF(TRadioServerErroraError,
TIntaFrequency
)[pure virtual]

Event notification indicating the end of Alternate Frequency(AF) search.

Since
S60 3.2

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.
TInt aFrequencyThe frequency(Hz) of the radio station that was found.

RadioEventRdsSignalChange(TBool)

voidRadioEventRdsSignalChange(TBoolaSignal)[pure virtual]

Event notification indicating RDS signal status change (i.e. signal is lost/restored).

Since
S60 3.2

Parameters

TBool aSignalETrue indicates that RDS signal is available in the tuned frequency.

RadioEventRdsStationChangeTA(TInt)

voidRadioEventRdsStationChangeTA(TIntaFrequency)[pure virtual]

Event notification indicating station change to another frequency(Hz) that is broadcasting Traffic Announcement(TA).

Since
S60 3.2

Parameters

TInt aFrequencyThe frequency(Hz) of the radio station that was found.

RadioEventSquelchChanged(TBool)

voidRadioEventSquelchChanged(TBoolaSquelch)[pure virtual]

Event notification indicating squelch (muting the frequencies without broadcast) status change.

Since
S60 3.2

Parameters

TBool aSquelchETrue if squelch is enabled; EFalse otherwise.

RadioEventStateChange(TBool, TRadioServerError)

voidRadioEventStateChange(TBoolaRadioOn,
TRadioServerErroraError
)[pure virtual]

Event notification indicating radio player state change. This may be caused by other applications.

Since
S60 3.0

Parameters

TBool aRadioOnETrue if radio is playing, otherwise radio is off.
TRadioServerError aErrorValid only if aRadioOn is EFalse. Contains the reason why radio is off.

RadioEventTransmitterStatusChange(TBool)

voidRadioEventTransmitterStatusChange(TBoolaActive)[pure virtual]

Event notification indicating FM transmitter status change. Radio receiver is turned off when FM transmitter is active.

Since
S60 3.2

Parameters

TBool aActiveETrue if FM transmitter is active; EFalse otherwise.

RadioEventVolumeChange(TInt)

voidRadioEventVolumeChange(TIntaVolume)[pure virtual]

Event notification indicating volume change.

Since
S60 3.2

Parameters

TInt aVolumeNew volume.

RequestTunerControlComplete(TRadioServerError)

voidRequestTunerControlComplete(TRadioServerErroraError)[pure virtual]

Completion message for RequestTunerControl request.

Since
S60 3.2

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.

SetFrequencyComplete(TRadioServerError)

voidSetFrequencyComplete(TRadioServerErroraError)[pure virtual]

Completion message for SetFrequency request.

Since
S60 3.0

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.

SetFrequencyRangeComplete(TRadioServerError)

voidSetFrequencyRangeComplete(TRadioServerErroraError)[pure virtual]

Completion message for SetFrequencyRange request.

Since
S60 3.2

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.

StationSeekByPTYComplete(TRadioServerError, TInt)

voidStationSeekByPTYComplete(TRadioServerErroraError,
TIntaFrequency
)[pure virtual]

Completion message for StationSeekByPTY request.

Since
S60 3.2

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.
TInt aFrequencyThe frequency(Hz) of the radio station that was found.

StationSeekByTAComplete(TRadioServerError, TInt)

voidStationSeekByTAComplete(TRadioServerErroraError,
TIntaFrequency
)[pure virtual]

Completion message for StationSeekByTA request.

Since
S60 3.2

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.
TInt aFrequencyThe frequency(Hz) of the radio station that was found.

StationSeekByTPComplete(TRadioServerError, TInt)

voidStationSeekByTPComplete(TRadioServerErroraError,
TIntaFrequency
)[pure virtual]

Completion message for StationSeekByTP request.

Since
S60 3.2

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.
TInt aFrequencyThe frequency(Hz) of the radio station that was found.

StationSeekComplete(TRadioServerError, TInt)

voidStationSeekComplete(TRadioServerErroraError,
TIntaFrequency
)[pure virtual]

Completion message for StationSeek request.

Since
S60 3.0

Parameters

TRadioServerError aErrorKErrNone if successful, otherwise one of the system/RadioServer errors.
TInt aFrequencyValid only if aError is KErrNone. Contains the new frequency in Hz.