author | William Roberts <williamr@symbian.org> |
Tue, 16 Mar 2010 16:12:26 +0000 | |
branch | Symbian2 |
changeset 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
#ifndef __ESTW32_H__ |
williamr@2 | 2 |
#define __ESTW32_H__ |
williamr@2 | 3 |
|
williamr@2 | 4 |
// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 5 |
// All rights reserved. |
williamr@2 | 6 |
// This component and the accompanying materials are made available |
williamr@2 | 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 |
williamr@2 | 8 |
// which accompanies this distribution, and is available |
williamr@2 | 9 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
williamr@2 | 10 |
// |
williamr@2 | 11 |
// Initial Contributors: |
williamr@2 | 12 |
// Nokia Corporation - initial contribution. |
williamr@2 | 13 |
// |
williamr@2 | 14 |
// Contributors: |
williamr@2 | 15 |
// |
williamr@2 | 16 |
// Description: |
williamr@2 | 17 |
// EPOC Client interface for accessing Win32 stdin/stdout/stderr |
williamr@2 | 18 |
// |
williamr@2 | 19 |
// |
williamr@2 | 20 |
|
williamr@2 | 21 |
|
williamr@2 | 22 |
|
williamr@2 | 23 |
/** |
williamr@2 | 24 |
@file |
williamr@2 | 25 |
@internalComponent |
williamr@2 | 26 |
*/ |
williamr@2 | 27 |
|
williamr@2 | 28 |
#include <e32std.h> |
williamr@2 | 29 |
|
williamr@2 | 30 |
const TInt Kstdin=0; |
williamr@2 | 31 |
const TInt Kstdout=1; |
williamr@2 | 32 |
const TInt Kstderr=2; |
williamr@2 | 33 |
|
williamr@2 | 34 |
class RWin32Stream : public RSessionBase |
williamr@2 | 35 |
{ |
williamr@2 | 36 |
public: |
williamr@2 | 37 |
IMPORT_C static void StartServer(); |
williamr@2 | 38 |
IMPORT_C TInt Open(TInt aStream); |
williamr@2 | 39 |
IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes); |
williamr@2 | 40 |
IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes, TInt aLength); |
williamr@2 | 41 |
IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes); |
williamr@2 | 42 |
IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes, TInt aLength); |
williamr@2 | 43 |
IMPORT_C void Flush(TRequestStatus& aStatus); |
williamr@2 | 44 |
private: |
williamr@2 | 45 |
TInt CheckEOF(TRequestStatus& aStatus); |
williamr@2 | 46 |
}; |
williamr@2 | 47 |
|
williamr@2 | 48 |
// |
williamr@2 | 49 |
#endif |