Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: gsmubuf.h
Link against: gsmu.lib

Class CSmsBuffer

class CSmsBuffer : public CSmsBufferBase;

Description

This is the simplest implementation of CSmsBufferBase.

It stores the buffer in an array of TTexts.

Derivation

Members

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

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

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


Construction and destruction


NewL()

Capability: Illegal

static IMPORT_C CSmsBuffer *NewL();

Description

Allocates and constructs the buffer.

Return value

CSmsBuffer *

New CSmsBuffer object


~CSmsBuffer()

Capability: Illegal

IMPORT_C ~CSmsBuffer();

Description

Destructor, frees resource.

[Top]


Member functions


Length()

Capability: Illegal

virtual IMPORT_C TInt Length() const;

Description

Gets the amount of space currently used in the buffer.

Return value

TInt

Amount of space currently used 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

Resets the buffer.