sl@0: /* sl@0: * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Name : nullstream.h sl@0: * Part of : stdio server sl@0: * Null File stream for Stdio Redirection app sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: #ifndef _NULLSTREAM_H_ sl@0: #define _NULLSTREAM_H_ sl@0: sl@0: #include "streambase.h" sl@0: sl@0: //----------------------------------------------------------------------- sl@0: //Class name: CNullStream sl@0: //Description: This class represents the Null File stream abstraction. sl@0: //----------------------------------------------------------------------- sl@0: class CNullStream : public CStreamBase sl@0: { sl@0: public: sl@0: static CNullStream* NewL( ); sl@0: ~CNullStream(); sl@0: virtual void WriteL(TDes8& aDes); sl@0: virtual void Read(TRequestStatus& aStatus, const TInt aLength); sl@0: virtual void ReadCancel() {} sl@0: TStreamType Type() { return ENull;} sl@0: sl@0: private: sl@0: CNullStream( ); sl@0: }; sl@0: sl@0: sl@0: #endif //_NULLSTREAM_H_