1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
52 TInt WriteReplyWs(const TAny *pData, TInt length, const TAny *pData2, TInt length2, TUint opcode); |
52 TInt WriteReplyWs(const TAny *pData, TInt length, const TAny *pData2, TInt length2, TUint opcode); |
53 void SetBufferSizeL(TInt aBufSize); |
53 void SetBufferSizeL(TInt aBufSize); |
54 void SetMaxBufferSizeL(TInt aMaxBufSize); |
54 void SetMaxBufferSizeL(TInt aMaxBufSize); |
55 TInt Flush(const TIpcArgs* aIpcArgs=NULL,TBool aRequestFinish=EFalse); |
55 TInt Flush(const TIpcArgs* aIpcArgs=NULL,TBool aRequestFinish=EFalse); |
56 TBool SetAutoFlush(TBool aState); |
56 TBool SetAutoFlush(TBool aState); |
57 void Write(TInt handle,TUint opcode,const TAny *pData, TInt length,const TAny *pData2, TInt length2); |
57 void Write(TInt aHandle, TUint aOpcode, const TAny *aData, TInt aLength, const TAny *aData2, TInt aLength2, const TIpcArgs* aIpcArgs=NULL); |
58 void Write(TInt handle,TUint opcode,const TAny *buf, TInt bufLen); |
58 void Write(TInt aHandle, TUint aOpcode, const TAny *aData, TInt aLength, const TIpcArgs* aIpcArgs=NULL); |
59 void Write(TInt handle,TUint opcode); |
59 void Write(TInt handle,TUint opcode); |
|
60 void AppendData(const TAny *aData, TInt aLength, TBool aFinished); |
60 TInt WriteReply(TInt handle,TUint opcode, const TIpcArgs* aIpcArgs=NULL); |
61 TInt WriteReply(TInt handle,TUint opcode, const TIpcArgs* aIpcArgs=NULL); |
61 TInt WriteReply(TInt handle,TUint opcode,const TAny *buf, TInt bufLen, const TIpcArgs* aIpcArgs=NULL); |
62 TInt WriteReply(TInt handle,TUint opcode,const TAny *buf, TInt bufLen, const TIpcArgs* aIpcArgs=NULL); |
62 TInt WriteReply(TInt handle,TUint opcode,const TAny *buf, TInt bufLen,const TAny *buf2, TInt buflen2, const TIpcArgs* aIpcArgs=NULL); |
63 TInt WriteReply(TInt handle,TUint opcode,const TAny *buf, TInt bufLen,const TAny *buf2, TInt buflen2, const TIpcArgs* aIpcArgs=NULL); |
63 TInt WriteReplyP(TInt aHandle,TUint aOpcode,const TWriteDescriptorType& aReplyBuffer); |
64 TInt WriteReplyP(TInt aHandle,TUint aOpcode,const TWriteDescriptorType& aReplyBuffer); |
64 TInt WriteReplyP(TInt aHandle,TUint aOpcode,const TAny *aData,TInt aLength,const TWriteDescriptorType& aReplyBuffer); |
65 TInt WriteReplyP(TInt aHandle,TUint aOpcode,const TAny *aData,TInt aLength,const TWriteDescriptorType& aReplyBuffer); |
99 TPtr8 iBuf; |
100 TPtr8 iBuf; |
100 RWsBuffer *iNext; |
101 RWsBuffer *iNext; |
101 TInt iPreviousHandle; |
102 TInt iPreviousHandle; |
102 TInt iBufSize; // current buffer size, DoWrite can expand this up to iMaxBufize |
103 TInt iBufSize; // current buffer size, DoWrite can expand this up to iMaxBufize |
103 TInt iMaxBufSize; // maximum buffer size, set by SetBufferSizeL or SetMaxBufferSizeL |
104 TInt iMaxBufSize; // maximum buffer size, set by SetBufferSizeL or SetMaxBufferSizeL |
|
105 #if defined(_DEBUG) |
|
106 TInt iAppendDataLength; |
|
107 #endif |
104 private: //Added here as adding it to RWsSession breaks BC. |
108 private: //Added here as adding it to RWsSession breaks BC. |
105 TInt iDirectAcessCount; |
109 TInt iDirectAcessCount; |
106 RArray<TInt> iBitmapArray; |
110 RArray<TInt> iBitmapArray; |
107 TBool iInvalidBitmapArray; |
111 TBool iInvalidBitmapArray; |
108 |
112 |