RWsBuffer Class Reference

class RWsBuffer

Nested Classes and Structures

Public Member Functions
RWsBuffer(RWsSession *)
voidAddToBitmapArray(TInt)
voidAsyncRequest(TInt, TUint, TRequestStatus &)
TInt BufferSize()
TInt CachedWindowSize(TInt, TSize &)
voidCancelCallBack()
voidClose()
TInt Connect(TUint32)
voidDestroy()
voidDestroyWindowSizeCacheEntry(TInt)
voidEnableWindowSizeCacheL()
TInt Flush(const TIpcArgs *, TBool)
voidFlushAllBuffers(TInt)
TBool IsEmpty()
voidMarkWindowSizeCacheDirty(TInt)
TInt Open()
voidRefreshWindowSizeCache(TInt, const TSize &)
RWsSession *Session()
TBool SetAutoFlush(TBool)
voidSetBufferSizeL(TInt)
voidSetCallBack()
voidSetMaxBufferSizeL(TInt)
voidSetWsGraphicManager(CWsGraphic::CManager *)
TBool WindowSizeCacheEnabled()
voidWrite(TInt, TUint, const TAny *, TInt, const TAny *, TInt)
voidWrite(TInt, TUint, const TAny *, TInt)
voidWrite(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)
voidGrowBuffer(TInt, TInt)
TBool ReAllocBuffer(TInt)
voidReAllocBufferL(TInt)
voidSetAndLimitMaxBufSize(TInt)
Public Member Enumerations
enumbufferSizes { 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)

voidAddToBitmapArray(TIntaBitmapHandle)

Parameters

TInt aBitmapHandle

AsyncRequest(TInt, TUint, TRequestStatus &)

voidAsyncRequest(TIntaHandle,
TUintaOpcode,
TRequestStatus &aStatus
)

Parameters

TInt aHandle
TUint aOpcode
TRequestStatus & aStatus

BufferSize()

TInt BufferSize()const [inline]

CachedWindowSize(TInt, TSize &)

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

Parameters

TInt aHandle
TSize & aSize

CancelCallBack()

voidCancelCallBack()

Close()

voidClose()

Connect(TUint32)

TInt Connect(TUint32handle)

Parameters

TUint32 handle

Destroy()

voidDestroy()

DestroyWindowSizeCacheEntry(TInt)

voidDestroyWindowSizeCacheEntry(TIntaHandle)[inline]

Parameters

TInt aHandle

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

TInt DoWrite(TIntaHandle,
TUintaOpcode,
TBoolaFlush,
const TIpcArgs *aIpcArgs,
const TAny *aData1 = NULL,
TIntaLength1 = 0,
const TAny *aData2 = NULL,
TIntaLength2 = 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()

voidEnableWindowSizeCacheL()

Flush(const TIpcArgs *, TBool)

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

Parameters

const TIpcArgs * aIpcArgs = NULL
TBool aRequestFinish = EFalse

FlushAllBuffers(TInt)

voidFlushAllBuffers(TIntaBitmapHandle)[static]

Parameters

TInt aBitmapHandle

GrowBuffer(TInt, TInt)

voidGrowBuffer(TIntaRequiredSpace,
TIntaMsgSize
)[private]

Parameters

TInt aRequiredSpace
TInt aMsgSize

IsEmpty()

TBool IsEmpty()const [inline]

MarkWindowSizeCacheDirty(TInt)

voidMarkWindowSizeCacheDirty(TIntaHandle)[inline]

Parameters

TInt aHandle

Open()

TInt Open()

ReAllocBuffer(TInt)

TBool ReAllocBuffer(TIntaNewSize)[private]

Parameters

TInt aNewSize

ReAllocBufferL(TInt)

voidReAllocBufferL(TIntaNewSize)[private]

Parameters

TInt aNewSize

RefreshWindowSizeCache(TInt, const TSize &)

voidRefreshWindowSizeCache(TIntaHandle,
const TSize &aNewSize
)[inline]

Parameters

TInt aHandle
const TSize & aNewSize

Session()

RWsSession *Session()[inline]

SetAndLimitMaxBufSize(TInt)

voidSetAndLimitMaxBufSize(TIntaMaxBufSize)[private, inline]

Parameters

TInt aMaxBufSize

SetAutoFlush(TBool)

TBool SetAutoFlush(TBoolaState)

Parameters

TBool aState

SetBufferSizeL(TInt)

voidSetBufferSizeL(TIntaBufSize)

Parameters

TInt aBufSize

SetCallBack()

voidSetCallBack()

SetMaxBufferSizeL(TInt)

voidSetMaxBufferSizeL(TIntaMaxBufSize)

Parameters

TInt aMaxBufSize

SetWsGraphicManager(CWsGraphic::CManager *)

voidSetWsGraphicManager(CWsGraphic::CManager *aManager)

Parameters

CWsGraphic::CManager * aManager

WindowSizeCacheEnabled()

TBool WindowSizeCacheEnabled()const [inline]

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

voidWrite(TInthandle,
TUintopcode,
const TAny *pData,
TIntlength,
const TAny *pData2,
TIntlength2
)

Parameters

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

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

voidWrite(TInthandle,
TUintopcode,
const TAny *buf,
TIntbufLen
)

Parameters

TInt handle
TUint opcode
const TAny * buf
TInt bufLen

Write(TInt, TUint)

voidWrite(TInthandle,
TUintopcode
)

Parameters

TInt handle
TUint opcode

WriteReply(TInt, TUint, const TIpcArgs *)

TInt WriteReply(TInthandle,
TUintopcode,
const TIpcArgs *aIpcArgs = NULL
)

Parameters

TInt handle
TUint opcode
const TIpcArgs * aIpcArgs = NULL

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

TInt WriteReply(TInthandle,
TUintopcode,
const TAny *buf,
TIntbufLen,
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(TInthandle,
TUintopcode,
const TAny *buf,
TIntbufLen,
const TAny *buf2,
TIntbuflen2,
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(TIntaHandle,
TUintaOpcode,
const TAny *aData,
TIntaLength,
const TReadDescriptorType &aRemoteReadBuffer
)

Parameters

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

WriteReplyP(TInt, TUint, const TWriteDescriptorType &)

TInt WriteReplyP(TIntaHandle,
TUintaOpcode,
const TWriteDescriptorType &aReplyBuffer
)

Parameters

TInt aHandle
TUint aOpcode
const TWriteDescriptorType & aReplyBuffer

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

TInt WriteReplyP(TIntaHandle,
TUintaOpcode,
const TAny *aData,
TIntaLength,
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(TIntaHandle,
TUintaOpcode,
const TAny *aData1,
TIntaLengthData1,
const TAny *aData2,
TIntaLengthData2,
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(TUintopcode)

Parameters

TUint opcode

WriteReplyWs(const TAny *, TInt, TUint)

TInt WriteReplyWs(const TAny *pData,
TIntlength,
TUintopcode
)

Parameters

const TAny * pData
TInt length
TUint opcode

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

TInt WriteReplyWs(const TAny *pData,
TIntlength,
const TAny *pData2,
TIntlength2,
TUintopcode
)

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]