MRadioPreset Class Reference

class MRadioPreset

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

RadioPresetUtility.lib
Since
S60 3.2

Member Functions Documentation

DeletePresetL(TInt)

voidDeletePresetL(TIntaIndex)[pure virtual]

Delete the specified preset. Has not effect if specified index contains no preset.

NOTE: Specifying aIndex == 0, will delete all presets.

Since
S60 3.2

Parameters

TInt aIndexA preset index.

GetFirstPresetL(TInt &)

voidGetFirstPresetL(TInt &aIndex)const [pure virtual]

Get the first preset index that has been set. Leaves with KErrNone if no preset exists.

Since
S60 3.2

Parameters

TInt & aIndexOn return contains the index of the first preset.

GetMaxNumberOfPresets(TInt &)

TInt GetMaxNumberOfPresets(TInt &aMaxNumOfPresets)const [pure virtual]

Get the maximum number of presets supported by this utility. The numbering of presets starts from 1 and the largest preset number equals the value returned from this function.

Since
S60 3.2

Parameters

TInt & aMaxNumOfPresetsOn return contains the maximum number of presets.

GetNextPresetL(TInt, TInt &)

voidGetNextPresetL(TIntaIndex,
TInt &aNextIndex
)const [pure virtual]

Get the next preset index that has been set, given the current index. Leaves with KErrNone if no other preset exists.

Since
S60 3.2

Parameters

TInt aIndexCurrent preset index.
TInt & aNextIndexOn return contains the index of next preset.

GetNumberOfPresets(TInt &)

TInt GetNumberOfPresets(TInt &aNumOfPresets)const [pure virtual]

Get the number of presets already set by the client (i.e. contains data).

Since
S60 3.2

Parameters

TInt & aNumOfPresetsOn return contains the current number of presets.