MRadioFmPreset Class Reference

class MRadioFmPreset

This class provides an interface for controlling the preset for an FM tuner. This is an abstract interface that must be implemented by all preset utilities supporting FM tuner preset.

RadioPresetUtility.lib
Since
S60 3.2

Member Functions Documentation

GetPresetFrequencyL(TInt, TInt &)

voidGetPresetFrequencyL(TIntaIndex,
TInt &aFrequency
)[pure virtual]

Get the preset frequency at the specified index. Leaves with KErrNotFound if invalid index is specified.

Since
S60 5.1

Parameters

TInt aIndexA preset index.
TInt & aFrequencyOn return, contains the preset name.

GetPresetL(TInt, TFmPresetName &, TInt &)

voidGetPresetL(TIntaIndex,
TFmPresetName &aName,
TInt &aFrequency
)[pure virtual]

Get the preset name and frequency at the specified index. Leaves with KErrNotFound if invalid index is specified.

Preset name is maximum of 32 characters. Client must allocate buffer big enough to hold the 32 characters. If not, characters will be truncated to fit the buffer.

Since
S60 3.2

Parameters

TInt aIndexA preset index.
TFmPresetName & aName
TInt & aFrequencyOn return, contains the preset name.

GetPresetNameL(TInt, TFmPresetName &)

voidGetPresetNameL(TIntaIndex,
TFmPresetName &aName
)[pure virtual]

Get the preset name at the specified index. Leaves with KErrNotFound if invalid index is specified.

Preset name is maximum of 32 characters. Client must allocate buffer big enough to hold the 32 characters. If not, characters will be truncated to fit the buffer.

Since
S60 5.1

Parameters

TInt aIndexA preset index.
TFmPresetName & aNameOn return, contains the preset name.

SetPresetL(TInt, const TFmPresetName &, TInt)

voidSetPresetL(TIntaIndex,
const TFmPresetName &aName,
TIntaFrequency
)[pure virtual]

Set the preset with specified frequency and name. Previous content in the specified index will be overwritten with the new information.

The maximum length for the preset name is 32 characters. Names longer than 32 characters will be truncated.

Since
S60 3.2

Parameters

TInt aIndexA preset index.
const TFmPresetName & aNamePreset name.
TInt aFrequencyFrequency in Hz.