1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This file contains the header file of the Sms socket Buffers.
25 #if !defined (__SMSUSTRM_H__)
26 #define __SMSUSTRM_H__
28 #if !defined(__E32STD_H__)
32 #if !defined(__S32BUF_H__)
36 #if !defined(__S32STRM_H__)
47 const TInt KSmsMaxSegmentLength=0x100;
51 * An SMS stream buffer to read and write over a socket.
55 class RSmsSocketBuf : public TStreamBuf
58 RSmsSocketBuf(RSocket& aSocket);
61 TInt UnderflowL(TInt aMaxLength);
67 inline TInt Lag(TRead) const;
68 inline TInt Lag(TWrite) const;
71 TUint8 iBuffer[KSmsMaxSegmentLength];
76 * Stream that reads a CSmsMessage object across a socket.
80 class RSmsSocketReadStream : public RReadStream
83 IMPORT_C RSmsSocketReadStream(RSocket& aSocket);
89 * Stream that writes a CSmsMessage object across a socket.
93 class RSmsSocketWriteStream : public RWriteStream
96 IMPORT_C RSmsSocketWriteStream(RSocket& aSocket);
101 #include "smsustrm.inl"
103 #endif // !defined __SMSUSTRM_H__