Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: gsmubuf.h
Link against: gsmu.lib

Class CSmsEditorBuffer

class CSmsEditorBuffer : public CSmsBufferBase;

Description

SMS buffer, implemented as a thin wrapper over CEditableText.

This class is designed to be used by the Message Server, which stores SMS text as CRichText, which is derived from CEditableText.

Derivation

Members

Defined in CSmsEditorBuffer:
DeleteL(), Extract(), InsertL(), Length(), NewL(), Reset(), ~CSmsEditorBuffer()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from CSmsBufferBase:
EMaxBufLength, ExternalizeL(), InternalizeL(), anonymous


Construction and destruction


NewL()

Capability: Illegal

static IMPORT_C CSmsEditorBuffer *NewL(CEditableText &aText);

Description

Allocates and constructs the buffer.

Parameters

CEditableText &aText

Text object to use as buffer

Return value

CSmsEditorBuffer *

New CSmsEditorBuffer object


~CSmsEditorBuffer()

Capability: Illegal

IMPORT_C ~CSmsEditorBuffer();

Description

Destructor.

[Top]


Member functions


Length()

Capability: Illegal

virtual IMPORT_C TInt Length() const;

Description

Gets the number of characters in the buffer.

Return value

TInt

The number of characters in the buffer.


Extract()

Capability: Illegal

virtual IMPORT_C void Extract(TDes &aBuf, TInt aPos, TInt aLength) const;

Description

Extracts buffer data to a descriptor.

Parameters

TDes &aBuf

On return, buffer data

TInt aPos

Position within buffer to begin reading

TInt aLength

The amount of data to read from the buffer


InsertL()

Capability: Illegal

virtual IMPORT_C void InsertL(TInt aPos, const TDesC &aBuf);

Description

Inserts data into the buffer.

Parameters

TInt aPos

Position in the buffer to insert the data

const TDesC &aBuf

The data to insert into the buffer


DeleteL()

Capability: Illegal

virtual IMPORT_C void DeleteL(TInt aPos, TInt aLength);

Description

Deletes data from the buffer.

Parameters

TInt aPos

Position in the buffer to delete the data

TInt aLength

The amount of data to delete from the buffer


Reset()

Capability: Illegal

virtual IMPORT_C void Reset();

Description

Reset the buffer.