RWsBuffer Class Reference

class RWsBuffer

Nested Classes and Structures

Public Member Functions
RWsBuffer ( RWsSession *)
void AddToBitmapArray ( TInt )
void AsyncRequest ( TInt , TUint , TRequestStatus &)
TInt BufferSize ()
TInt CachedWindowSize ( TInt , TSize &)
void CancelCallBack ()
void Close ()
TInt Connect ( TUint32 )
void Destroy ()
void DestroyWindowSizeCacheEntry ( TInt )
void EnableWindowSizeCacheL ()
TInt Flush (const TIpcArgs *, TBool )
void FlushAllBuffers ( TInt )
TBool IsEmpty ()
void MarkWindowSizeCacheDirty ( TInt )
TInt Open ()
void RefreshWindowSizeCache ( TInt , const TSize &)
RWsSession * Session ()
TBool SetAutoFlush ( TBool )
void SetBufferSizeL ( TInt )
void SetCallBack ()
void SetMaxBufferSizeL ( TInt )
void SetWsGraphicManager (CWsGraphic::CManager *)
TBool WindowSizeCacheEnabled ()
void Write ( TInt , TUint , const TAny *, TInt , const TAny *, TInt )
void Write ( TInt , TUint , const TAny *, TInt )
void Write ( TInt , TUint )
TInt WriteReply ( TInt , TUint , const TIpcArgs *)
TInt WriteReply ( TInt , TUint , const TAny *, TInt , const TIpcArgs *)
TInt WriteReply ( TInt , TUint , const TAny *, TInt , const TAny *, TInt , const TIpcArgs *)
TInt WriteReplyByProvidingRemoteReadAccess ( TInt , TUint , const TAny *, TInt , const TReadDescriptorType &)
TInt WriteReplyP ( TInt , TUint , const TWriteDescriptorType &)
TInt WriteReplyP ( TInt , TUint , const TAny *, TInt , const TWriteDescriptorType &)
TInt WriteReplyP ( TInt , TUint , const TAny *, TInt , const TAny *, TInt , const TWriteDescriptorType &)
TInt WriteReplyWs ( TUint )
TInt WriteReplyWs (const TAny *, TInt , TUint )
TInt WriteReplyWs (const TAny *, TInt , const TAny *, TInt , TUint )
CWsGraphic::CManager * WsGraphicManager ()
Private Member Functions
TInt DoWrite ( TInt , TUint , TBool , const TIpcArgs *, const TAny *, TInt , const TAny *, TInt )
void GrowBuffer ( TInt , TInt )
TBool ReAllocBuffer ( TInt )
void ReAllocBufferL ( TInt )
void SetAndLimitMaxBufSize ( TInt )
Public Member Enumerations
enum bufferSizes { EDefBufferSize  = EClientBufferSize, EMinBufferSize  = EClientBufferSize, EMaxBufferSize  = EClientBufferMaxSize }
Private Attributes
TBool iAutoFlush
RArray < TInt > iBitmapArray
TPtr8 iBuf
TInt iBufSize
TInt iDirectAcessCount
TBool iInvalidBitmapArray
CWsGraphic::CManager * iManager
TInt iMaxBufSize
RWsBuffer * iNext
TInt iPreviousHandle
RWsSession * iSession
RHashMap < TInt , TWindowSizeCacheEntry > * iWindowSizeCache

Constructor & Destructor Documentation

RWsBuffer(RWsSession *)

RWsBuffer ( RWsSession * aSession )

Parameters

RWsSession * aSession

Member Functions Documentation

AddToBitmapArray(TInt)

void AddToBitmapArray ( TInt aBitmapHandle )

Parameters

TInt aBitmapHandle

AsyncRequest(TInt, TUint, TRequestStatus &)

void AsyncRequest ( TInt aHandle,
TUint aOpcode,
TRequestStatus & aStatus
)

Parameters

TInt aHandle
TUint aOpcode
TRequestStatus & aStatus

BufferSize()

TInt BufferSize ( ) const [inline]

CachedWindowSize(TInt, TSize &)

TInt CachedWindowSize ( TInt aHandle,
TSize & aSize
) [inline]

Parameters

TInt aHandle
TSize & aSize

CancelCallBack()

void CancelCallBack ( )

Close()

void Close ( )

Connect(TUint32)

TInt Connect ( TUint32 handle )

Parameters

TUint32 handle

Destroy()

void Destroy ( )

DestroyWindowSizeCacheEntry(TInt)

void DestroyWindowSizeCacheEntry ( TInt aHandle ) [inline]

Parameters

TInt aHandle

DoWrite(TInt, TUint, TBool, const TIpcArgs *, const TAny *, TInt, const TAny *, TInt)

TInt DoWrite ( TInt aHandle,
TUint aOpcode,
TBool aFlush,
const TIpcArgs * aIpcArgs,
const TAny * aData1 = NULL,
TInt aLength1 = 0,
const TAny * aData2 = NULL,
TInt aLength2 = 0
) [private]

Parameters

TInt aHandle
TUint aOpcode
TBool aFlush
const TIpcArgs * aIpcArgs
const TAny * aData1 = NULL
TInt aLength1 = 0
const TAny * aData2 = NULL
TInt aLength2 = 0

EnableWindowSizeCacheL()

void EnableWindowSizeCacheL ( )

Flush(const TIpcArgs *, TBool)

TInt Flush ( const TIpcArgs * aIpcArgs = NULL,
TBool aRequestFinish = EFalse
)

Parameters

const TIpcArgs * aIpcArgs = NULL
TBool aRequestFinish = EFalse

FlushAllBuffers(TInt)

void FlushAllBuffers ( TInt aBitmapHandle ) [static]

Parameters

TInt aBitmapHandle

GrowBuffer(TInt, TInt)

void GrowBuffer ( TInt aRequiredSpace,
TInt aMsgSize
) [private]

Parameters

TInt aRequiredSpace
TInt aMsgSize

IsEmpty()

TBool IsEmpty ( ) const [inline]

MarkWindowSizeCacheDirty(TInt)

void MarkWindowSizeCacheDirty ( TInt aHandle ) [inline]

Parameters

TInt aHandle

Open()

TInt Open ( )

ReAllocBuffer(TInt)

TBool ReAllocBuffer ( TInt aNewSize ) [private]

Parameters

TInt aNewSize

ReAllocBufferL(TInt)

void ReAllocBufferL ( TInt aNewSize ) [private]

Parameters

TInt aNewSize

RefreshWindowSizeCache(TInt, const TSize &)

void RefreshWindowSizeCache ( TInt aHandle,
const TSize & aNewSize
) [inline]

Parameters

TInt aHandle
const TSize & aNewSize

Session()

RWsSession * Session ( ) [inline]

SetAndLimitMaxBufSize(TInt)

void SetAndLimitMaxBufSize ( TInt aMaxBufSize ) [private, inline]

Parameters

TInt aMaxBufSize

SetAutoFlush(TBool)

TBool SetAutoFlush ( TBool aState )

Parameters

TBool aState

SetBufferSizeL(TInt)

void SetBufferSizeL ( TInt aBufSize )

Parameters

TInt aBufSize

SetCallBack()

void SetCallBack ( )

SetMaxBufferSizeL(TInt)

void SetMaxBufferSizeL ( TInt aMaxBufSize )

Parameters

TInt aMaxBufSize

SetWsGraphicManager(CWsGraphic::CManager *)

void SetWsGraphicManager ( CWsGraphic::CManager * aManager )

Parameters

CWsGraphic::CManager * aManager

WindowSizeCacheEnabled()

TBool WindowSizeCacheEnabled ( ) const [inline]

Write(TInt, TUint, const TAny *, TInt, const TAny *, TInt)

void Write ( TInt handle,
TUint opcode,
const TAny * pData,
TInt length,
const TAny * pData2,
TInt length2
)

Parameters

TInt handle
TUint opcode
const TAny * pData
TInt length
const TAny * pData2
TInt length2

Write(TInt, TUint, const TAny *, TInt)

void Write ( TInt handle,
TUint opcode,
const TAny * buf,
TInt bufLen
)

Parameters

TInt handle
TUint opcode
const TAny * buf
TInt bufLen

Write(TInt, TUint)

void Write ( TInt handle,
TUint opcode
)

Parameters

TInt handle
TUint opcode

WriteReply(TInt, TUint, const TIpcArgs *)

TInt WriteReply ( TInt handle,
TUint opcode,
const TIpcArgs * aIpcArgs = NULL
)

Parameters

TInt handle
TUint opcode
const TIpcArgs * aIpcArgs = NULL

WriteReply(TInt, TUint, const TAny *, TInt, const TIpcArgs *)

TInt WriteReply ( TInt handle,
TUint opcode,
const TAny * buf,
TInt bufLen,
const TIpcArgs * aIpcArgs = NULL
)

Parameters

TInt handle
TUint opcode
const TAny * buf
TInt bufLen
const TIpcArgs * aIpcArgs = NULL

WriteReply(TInt, TUint, const TAny *, TInt, const TAny *, TInt, const TIpcArgs *)

TInt WriteReply ( TInt handle,
TUint opcode,
const TAny * buf,
TInt bufLen,
const TAny * buf2,
TInt buflen2,
const TIpcArgs * aIpcArgs = NULL
)

Parameters

TInt handle
TUint opcode
const TAny * buf
TInt bufLen
const TAny * buf2
TInt buflen2
const TIpcArgs * aIpcArgs = NULL

WriteReplyByProvidingRemoteReadAccess(TInt, TUint, const TAny *, TInt, const TReadDescriptorType &)

TInt WriteReplyByProvidingRemoteReadAccess ( TInt aHandle,
TUint aOpcode,
const TAny * aData,
TInt aLength,
const TReadDescriptorType & aRemoteReadBuffer
)

Parameters

TInt aHandle
TUint aOpcode
const TAny * aData
TInt aLength
const TReadDescriptorType & aRemoteReadBuffer

WriteReplyP(TInt, TUint, const TWriteDescriptorType &)

TInt WriteReplyP ( TInt aHandle,
TUint aOpcode,
const TWriteDescriptorType & aReplyBuffer
)

Parameters

TInt aHandle
TUint aOpcode
const TWriteDescriptorType & aReplyBuffer

WriteReplyP(TInt, TUint, const TAny *, TInt, const TWriteDescriptorType &)

TInt WriteReplyP ( TInt aHandle,
TUint aOpcode,
const TAny * aData,
TInt aLength,
const TWriteDescriptorType & aReplyBuffer
)

Parameters

TInt aHandle
TUint aOpcode
const TAny * aData
TInt aLength
const TWriteDescriptorType & aReplyBuffer

WriteReplyP(TInt, TUint, const TAny *, TInt, const TAny *, TInt, const TWriteDescriptorType &)

TInt WriteReplyP ( TInt aHandle,
TUint aOpcode,
const TAny * aData1,
TInt aLengthData1,
const TAny * aData2,
TInt aLengthData2,
const TWriteDescriptorType & aReplyBuffer
)

Parameters

TInt aHandle
TUint aOpcode
const TAny * aData1
TInt aLengthData1
const TAny * aData2
TInt aLengthData2
const TWriteDescriptorType & aReplyBuffer

WriteReplyWs(TUint)

TInt WriteReplyWs ( TUint opcode )

Parameters

TUint opcode

WriteReplyWs(const TAny *, TInt, TUint)

TInt WriteReplyWs ( const TAny * pData,
TInt length,
TUint opcode
)

Parameters

const TAny * pData
TInt length
TUint opcode

WriteReplyWs(const TAny *, TInt, const TAny *, TInt, TUint)

TInt WriteReplyWs ( const TAny * pData,
TInt length,
const TAny * pData2,
TInt length2,
TUint opcode
)

Parameters

const TAny * pData
TInt length
const TAny * pData2
TInt length2
TUint opcode

WsGraphicManager()

CWsGraphic::CManager * WsGraphicManager ( ) [static]

Member Enumerations Documentation

Enum bufferSizes

Enumerators

EDefBufferSize = EClientBufferSize
EMinBufferSize = EClientBufferSize
EMaxBufferSize = EClientBufferMaxSize

Member Data Documentation

TBool iAutoFlush

TBool iAutoFlush [private]

RArray< TInt > iBitmapArray

RArray < TInt > iBitmapArray [private]

TPtr8 iBuf

TPtr8 iBuf [private]

TInt iBufSize

TInt iBufSize [private]

TInt iDirectAcessCount

TInt iDirectAcessCount [private]

TBool iInvalidBitmapArray

TBool iInvalidBitmapArray [private]

CWsGraphic::CManager * iManager

CWsGraphic::CManager * iManager [private]

TInt iMaxBufSize

TInt iMaxBufSize [private]

RWsBuffer * iNext

RWsBuffer * iNext [private]

TInt iPreviousHandle

TInt iPreviousHandle [private]

RWsSession * iSession

RWsSession * iSession [private]

RHashMap< TInt, TWindowSizeCacheEntry > * iWindowSizeCache

RHashMap < TInt , TWindowSizeCacheEntry > * iWindowSizeCache [private]