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