Update contrib.
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 * To handle file read and write
18 * File stream for Stdio Redirection app
26 #ifndef _FILESTREAM_H_
27 #define _FILESTREAM_H_
29 #include "streambase.h"
32 //-----------------------------------------------------------------------
33 //Class name: CFileStream
34 //Description: This class represents the File stream abstraction.
35 // It is created through the factory class CFileStreamFactory
36 //-----------------------------------------------------------------------
37 class CFileStream : public CStreamBase
40 static CFileStream* NewL(TDesC& aFileName, TBool aIsWrite);
42 virtual void WriteL(TDes8& aDes);
43 virtual void Read(TRequestStatus& aStatus, const TInt aLength);
44 virtual void ReadCancel() {}
45 TStreamType Type() { return EFile;}
48 void ConstructL(TDesC& aFileName);
49 CFileStream(TBool aIsWrite);
52 //if file is used for write.
58 #endif //_FILESTREAM_H_