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)

void DeletePresetL ( TInt aIndex ) [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 aIndex A preset index.

GetFirstPresetL(TInt &)

void GetFirstPresetL ( 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 & aIndex On 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 & aMaxNumOfPresets On return contains the maximum number of presets.

GetNextPresetL(TInt, TInt &)

void GetNextPresetL ( TInt aIndex,
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 aIndex Current preset index.
TInt & aNextIndex On 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 & aNumOfPresets On return contains the current number of presets.