TAlfTextCommand Class Reference

class TAlfTextCommand : public TAlfObjectCommand

TAlfTextCommand is a command that operaters on a text visual.

Usage:

  //Create text command to set text in textvisual
   TAlfTextCommand command( *textVisual, _L( "Text" ) );
  
  //Send command , text will be set to textvisual
   iEnv->Send( command, 1 );

Inherits from

Constructor & Destructor Documentation

TAlfTextCommand(CAlfTextVisual &, const TDesC &, TAlfOp)

IMPORT_CTAlfTextCommand(CAlfTextVisual &aTextVisual,
const TDesC &aText,
TAlfOpaOperation = EAlfOpSetText
)

Constructs a new text command.

Parameters

CAlfTextVisual & aTextVisualText visual.
const TDesC & aTextText.
TAlfOp aOperation = EAlfOpSetTextOperation to perform.

Member Functions Documentation

CommandExtension(const TUid &, TAny **)

IMPORT_C voidCommandExtension(const TUid &aExtensionUid,
TAny **aExtensionParams
)[protected, virtual]

Parameters

const TUid & aExtensionUid
TAny ** aExtensionParams

ExecuteL(CAlfEnv &)

IMPORT_C voidExecuteL(CAlfEnv &aEnv)const [virtual]

Executes the command.

Parameters

CAlfEnv & aEnvThe environment in which the command is being executed.

Size()

IMPORT_C TIntSize()const [virtual]

Returns the size of the command.

Text()

IMPORT_C const TDesC &Text()const

Returns a reference to the text of the visual.

TextVisual()

IMPORT_C CAlfTextVisual &TextVisual()const

Returns the visual that the command operates on.

Member Data Documentation

TInt iSpare1

TInt iSpare1[private]

TInt iSpare2

TInt iSpare2[private]

const TDesC & iText

const TDesC &iText[private]

Text of the command.