#include <textreader.h>
Link against: textreader.lib
class CTextReader : public CBase, public MTextReaderInput, public MTextReaderController |
Public Member Functions | |
---|---|
virtual | ~CTextReader() |
virtual IMPORT_C TInt | AppendAudioL(TInt, const RFile &) |
virtual IMPORT_C TInt | AppendGroupL() |
virtual IMPORT_C TInt | AppendPauseL(TInt, TTimeIntervalMicroSeconds) |
virtual IMPORT_C TInt | AppendTextL(TInt, const TDesC &, const TTtsStyle *) |
virtual IMPORT_C TInt | AppendToneL(TInt, TTimeIntervalMicroSeconds, TInt) |
virtual IMPORT_C TTimeIntervalMicroSeconds | Duration() |
virtual IMPORT_C TBool | ForwardL() |
IMPORT_C void | GetMessageReaderLanguagesL(RArray< TLanguage > &) |
IMPORT_C void | InitializeL() |
IMPORT_C TInt | InsertGroupL(TInt) |
virtual IMPORT_C TInt | MaxVolume() |
IMPORT_C CTextReader * | NewL(MTextReaderControllerObserver &) |
IMPORT_C CTextReader * | NewLC(MTextReaderControllerObserver &) |
virtual IMPORT_C TBool | NextL() |
virtual IMPORT_C void | Pause() |
IMPORT_C void | PlayL(TInt) |
virtual IMPORT_C TTimeIntervalMicroSeconds | Position() |
virtual IMPORT_C TBool | PreviousL() |
virtual IMPORT_C void | RemoveGroupL(TInt) |
virtual IMPORT_C void | ReplaceItemAudioL(TInt, TInt, const RFile &) |
virtual IMPORT_C void | ReplaceItemPauseL(TInt, TInt, TTimeIntervalMicroSeconds) |
virtual IMPORT_C void | ReplaceItemTextL(TInt, TInt, const TDesC &, const TTtsStyle *) |
virtual IMPORT_C void | ReplaceItemToneL(TInt, TInt, TTimeIntervalMicroSeconds, TInt) |
virtual IMPORT_C void | ResetGroupL(TInt) |
virtual IMPORT_C TBool | RewindL() |
virtual IMPORT_C void | SetAudioOutputL(TInt) |
virtual IMPORT_C void | SetSpeakingRateL(TInt) |
virtual IMPORT_C void | SetVolume(TInt) |
virtual IMPORT_C void | Stop() |
virtual IMPORT_C TInt | Volume() |
Text Reader
IMPORT_C | ~CTextReader | ( | ) | [virtual] |
Reimplemented from MTextReaderInput::AppendAudioL(TInt,const RFile &)
Append audio item to group
Parameters | |
---|---|
aGroupId | Identifier for group |
aFile | File handle to the audio file |
IMPORT_C TInt | AppendGroupL | ( | ) | [virtual] |
Reimplemented from MTextReaderInput::AppendGroupL()
Append a group to queue
IMPORT_C TInt | AppendPauseL | ( | TInt | aGroupId, |
TTimeIntervalMicroSeconds | aDuration = KDefaultPauseDuration | |||
) | [virtual] |
Reimplemented from MTextReaderInput::AppendPauseL(TInt,TTimeIntervalMicroSeconds)
Append pause item to group
Parameters | |
---|---|
aGroupId | Identifier for group |
Reimplemented from MTextReaderInput::AppendTextL(TInt,const TDesC &,const TTtsStyle *)
Append text item to group
Parameters | |
---|---|
aGroupId | Identifier for group |
aText | Text to be added (copied) |
aStyle | Synthesis settings |
IMPORT_C TInt | AppendToneL | ( | TInt | aGroupId, |
TTimeIntervalMicroSeconds | aDuration = KDefaultToneDuration , | |||
TInt | aFrequency = KDefaultToneFrequency | |||
) | [virtual] |
Reimplemented from MTextReaderInput::AppendToneL(TInt,TTimeIntervalMicroSeconds,TInt)
Append tone item to group
Parameters | |
---|---|
aGroupId | Identifier for group |
IMPORT_C TTimeIntervalMicroSeconds | Duration | ( | ) | [virtual] |
Reimplemented from MTextReaderController::Duration()
From MTextReaderController Give duration
IMPORT_C TBool | ForwardL | ( | ) | [virtual] |
Reimplemented from MTextReaderController::ForwardL()
Forward to next item.
For getting supported TTS languages to be used in MR (Klatt languages are ignored)
IMPORT_C void | InitializeL | ( | ) |
IMPORT_C TInt | MaxVolume | ( | ) | [virtual] |
Reimplemented from MTextReaderController::MaxVolume()
From MTextReaderController Max volume
IMPORT_C CTextReader * | NewL | ( | MTextReaderControllerObserver & | aObserver | ) | [static] |
IMPORT_C CTextReader * | NewLC | ( | MTextReaderControllerObserver & | aObserver | ) | [static] |
IMPORT_C TBool | NextL | ( | ) | [virtual] |
Reimplemented from MTextReaderController::NextL()
Move to the next group of items.
IMPORT_C TTimeIntervalMicroSeconds | Position | ( | ) | [virtual] |
Reimplemented from MTextReaderController::Position()
From MTextReaderController Gives position
IMPORT_C TBool | PreviousL | ( | ) | [virtual] |
Reimplemented from MTextReaderController::PreviousL()
Move to the previous group of items.
IMPORT_C void | RemoveGroupL | ( | TInt | aGroupId | ) | [virtual] |
Reimplemented from MTextReaderInput::RemoveGroupL(TInt)
Deletes a group from queue
Parameters | |
---|---|
aGroupId | Id of deleted group |
Reimplemented from MTextReaderInput::ReplaceItemAudioL(TInt,TInt,const RFile &)
Replace existing item with an audio item
Parameters | |
---|---|
aGroupId | Identifier for group |
aItemId | Identifier for item inside a group |
aFile | File handle to the audio file |
IMPORT_C void | ReplaceItemPauseL | ( | TInt | aGroupId, |
TInt | aItemId, | |||
TTimeIntervalMicroSeconds | aDuration = KDefaultPauseDuration | |||
) | [virtual] |
Reimplemented from MTextReaderInput::ReplaceItemPauseL(TInt,TInt,TTimeIntervalMicroSeconds)
Replace existing item with a pause item
Parameters | |
---|---|
aGroupId | Identifier for group |
aItemId | Identifier for item inside a group |
aDuration | Duration of pause |
IMPORT_C void | ReplaceItemTextL | ( | TInt | aGroupId, |
TInt | aItemId, | |||
const TDesC & | aText, | |||
const TTtsStyle * | aStyle = 0 | |||
) | [virtual] |
Replace existing item with a text item
Parameters | |
---|---|
aGroupId | Identifier for group |
aItemId | Identifier for item inside a group |
aText | Text to be added (copied) |
aStyle | Synthesis settings, ownership stays in client |
IMPORT_C void | ReplaceItemToneL | ( | TInt | aGroupId, |
TInt | aItemId, | |||
TTimeIntervalMicroSeconds | aDuration = KDefaultToneDuration , | |||
TInt | aFrequency = KDefaultToneFrequency | |||
) | [virtual] |
Reimplemented from MTextReaderInput::ReplaceItemToneL(TInt,TInt,TTimeIntervalMicroSeconds,TInt)
Replace existing item with a tone item
Parameters | |
---|---|
aGroupId | Identifier for group |
aItemId | Identifier for item inside a group |
aDuration | Duration of tone |
aFrequency | Frequency of tone |
IMPORT_C void | ResetGroupL | ( | TInt | aGroupId | ) | [virtual] |
Reimplemented from MTextReaderInput::ResetGroupL(TInt)
Resets a group, ie. removes all items it has.
Parameters | |
---|---|
aGroupId | Id of group to be resetted |
IMPORT_C TBool | RewindL | ( | ) | [virtual] |
Reimplemented from MTextReaderController::RewindL()
Go back to previous item.
IMPORT_C void | SetAudioOutputL | ( | TInt | aAudioOutput | ) | [virtual] |
Reimplemented from MTextReaderController::SetAudioOutputL(TInt)
From MTextReaderController Set audio output
IMPORT_C void | SetSpeakingRateL | ( | TInt | aValue | ) | [virtual] |
Reimplemented from MTextReaderController::SetSpeakingRateL(TInt)
From MTextReaderController Set speaking rate
IMPORT_C void | SetVolume | ( | TInt | aVolume | ) | [virtual] |
Reimplemented from MTextReaderController::SetVolume(TInt)
From MTextReaderController Set volume
IMPORT_C TInt | Volume | ( | ) | [virtual] |
Reimplemented from MTextReaderController::Volume()
From MTextReaderController Current volume