First public contribution.
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
16 * Part of : stdio server
17 * base implementation for media types
24 #ifndef _STREAMBASE_H_
25 #define _STREAMBASE_H_
27 #include <e32base.h>//CBase
30 const TInt KMaxStatusTextLength = 128;
40 //-----------------------------------------------------------------------
41 //Class name: CStreamBase
42 //Description: Abstract class that defines stream like objects.
43 //-----------------------------------------------------------------------
44 class CStreamBase : public CBase
47 virtual void WriteL(TDes8& aDes) = 0;
48 virtual void Read(TRequestStatus& aStatus, const TInt aLength) = 0;
50 virtual void ReadCancel() = 0;
51 virtual TStreamType Type() = 0;
52 virtual ~CStreamBase()
56 TBuf8<256> iBuf; // buffer for holding stdin characters
63 #endif //_STREAMBASE_H_