epoc32/include/estw32.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     8 // which accompanies this distribution, and is available
     9 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.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 
    23 /**
    24  @file
    25  @internalComponent
    26 */
    27 
    28 #include <e32std.h>
    29 
    30 const TInt Kstdin=0;
    31 const TInt Kstdout=1;
    32 const TInt Kstderr=2;
    33 
    34 class RWin32Stream : public RSessionBase
    35 	{
    36 public:
    37 	IMPORT_C static void StartServer();
    38 	IMPORT_C TInt Open(TInt aStream);
    39 	IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes);
    40 	IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes, TInt aLength);
    41 	IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes);
    42 	IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes, TInt aLength);
    43 	IMPORT_C void Flush(TRequestStatus& aStatus);
    44 private:
    45 	TInt CheckEOF(TRequestStatus& aStatus);
    46 	};
    47 
    48 //
    49 #endif