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.
Public Member Functions | |
---|---|
void | GetPresetFrequencyL(TInt, TInt &) |
void | GetPresetL(TInt, TFmPresetName &, TInt &) |
void | GetPresetNameL(TInt, TFmPresetName &) |
void | SetPresetL(TInt, const TFmPresetName &, TInt) |
void | GetPresetFrequencyL | ( | TInt | aIndex, |
TInt & | aFrequency | |||
) | [pure virtual] |
Get the preset frequency at the specified index. Leaves with KErrNotFound if invalid index is specified.
void | GetPresetL | ( | TInt | aIndex, |
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.
TInt aIndex | A preset index. |
TFmPresetName & aName | |
TInt & aFrequency | On return, contains the preset name. |
void | GetPresetNameL | ( | TInt | aIndex, |
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.
TInt aIndex | A preset index. |
TFmPresetName & aName | On return, contains the preset name. |
void | SetPresetL | ( | TInt | aIndex, |
const TFmPresetName & | aName, | |||
TInt | aFrequency | |||
) | [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.
TInt aIndex | A preset index. |
const TFmPresetName & aName | Preset name. |
TInt aFrequency | Frequency in Hz. |
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.