CSmsBuffer Class Reference

#include <gsmubuf.h>

Link against: gsmu.lib

class CSmsBuffer : public CSmsBufferBase

Inherits from

Detailed Description

This is the simplest implementation of CSmsBufferBase.

It stores the buffer in an array of TTexts.

Constructor & Destructor Documentation

~CSmsBuffer ( )

IMPORT_C~CSmsBuffer()
Destructor, frees resource.
Capability
None

Member Function Documentation

DeleteL ( TInt, TInt )

IMPORT_C voidDeleteL(TIntaPos,
TIntaLength
)[virtual]

Reimplemented from CSmsBufferBase::DeleteL(TInt,TInt)

Deletes data from the buffer.

Parameters
aPosPosition in the buffer to delete the data
aLengthThe amount of data to delete from the buffer
Capability
None

Extract ( TDes &, TInt, TInt )

IMPORT_C voidExtract(TDes &aBuf,
TIntaPos,
TIntaLength
)const [virtual]

Reimplemented from CSmsBufferBase::Extract(TDes &,TInt,TInt)const

Extracts buffer data to a descriptor.

Parameters
aBufOn return, buffer data
aPosPosition within buffer to begin reading
aLengthThe amount of data to read from the buffer
Capability
None

InsertL ( TInt, const TDesC & )

IMPORT_C voidInsertL(TIntaPos,
const TDesC &aBuf
)[virtual]

Reimplemented from CSmsBufferBase::InsertL(TInt,const TDesC &)

Inserts data into the buffer.

Parameters
aPosPosition in the buffer to insert the data
aBufThe data to insert into the buffer
Capability
None

Length ( )

IMPORT_C TIntLength()const [virtual]

Reimplemented from CSmsBufferBase::Length()const

Gets the amount of space currently used in the buffer.

Return Value
Amount of space currently used in the buffer
Capability
None

NewL ( )

IMPORT_C CSmsBuffer *NewL()[static]

Allocates and constructs the buffer.

Return Value
New CSmsBuffer object
Capability
None

Reset ( )

IMPORT_C voidReset()[virtual]

Reimplemented from CSmsBufferBase::Reset()

Resets the buffer.
Capability
None