equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Name : nullstream.h |
|
16 * Part of : stdio server |
|
17 * Null File stream for Stdio Redirection app |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef _NULLSTREAM_H_ |
|
25 #define _NULLSTREAM_H_ |
|
26 |
|
27 #include "streambase.h" |
|
28 |
|
29 //----------------------------------------------------------------------- |
|
30 //Class name: CNullStream |
|
31 //Description: This class represents the Null File stream abstraction. |
|
32 //----------------------------------------------------------------------- |
|
33 class CNullStream : public CStreamBase |
|
34 { |
|
35 public: |
|
36 static CNullStream* NewL( ); |
|
37 ~CNullStream(); |
|
38 virtual void WriteL(TDes8& aDes); |
|
39 virtual void Read(TRequestStatus& aStatus, const TInt aLength); |
|
40 virtual void ReadCancel() {} |
|
41 TStreamType Type() { return ENull;} |
|
42 |
|
43 private: |
|
44 CNullStream( ); |
|
45 }; |
|
46 |
|
47 |
|
48 #endif //_NULLSTREAM_H_ |