genericopenlibs/cstdlib/INC/ESTW32.H
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 #ifndef __ESTW32_H__
       
     2 #define __ESTW32_H__
       
     3 
       
     4 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     5 // All rights reserved.
       
     6 // This component and the accompanying materials are made available
       
     7 // under the terms of "Eclipse Public License v1.0"
       
     8 // which accompanies this distribution, and is available
       
     9 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    10 //
       
    11 // Initial Contributors:
       
    12 // Nokia Corporation - initial contribution.
       
    13 //
       
    14 // Contributors:
       
    15 //
       
    16 // Description:
       
    17 // EPOC Client interface for accessing Win32 stdin/stdout/stderr
       
    18 // 
       
    19 //
       
    20 
       
    21 /**
       
    22  @file
       
    23  @internalComponent
       
    24 */
       
    25 
       
    26 #include <e32std.h>
       
    27 
       
    28 const TInt Kstdin=0;
       
    29 const TInt Kstdout=1;
       
    30 const TInt Kstderr=2;
       
    31 
       
    32 class RWin32Stream : public RSessionBase
       
    33 	{
       
    34 public:
       
    35 	IMPORT_C static void StartServer();
       
    36 	IMPORT_C TInt Open(TInt aStream);
       
    37 	IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes);
       
    38 	IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes, TInt aLength);
       
    39 	IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes);
       
    40 	IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes, TInt aLength);
       
    41 	IMPORT_C void Flush(TRequestStatus& aStatus);
       
    42 private:
       
    43 	TInt CheckEOF(TRequestStatus& aStatus);
       
    44 	};
       
    45 
       
    46 //
       
    47 #endif
       
    48