os/ossrv/genericopenlibs/cstdlib/INC/REDIRCLIINTERNAL.H
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // EPOC Server for redirecting stdin/stdout/stderr to a stream-like object 
    15 // (console, file or serial port)
    16 // 
    17 //
    18 
    19 #ifndef _REDIRCLIINTERNAL_H_
    20 #define _REDIRCLIINTERNAL_H_
    21 
    22 #include <e32std.h>
    23 #include <e32base.h>
    24 #include <redirstr.h>
    25 
    26 
    27 /**
    28 Client side session for Redirection server
    29 
    30 @internalAll
    31 */
    32 class RRedirSession2 : public RSessionBase
    33 	{
    34 public:
    35 	IMPORT_C TInt Connect();
    36 	IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes);
    37 	IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes, TInt aLength);
    38 	IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes);
    39 	IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes, TInt aLength);
    40 	IMPORT_C void Flush(TRequestStatus& aStatus);
    41 private:
    42 //TO DO: do we really need this function??
    43 	TInt CheckEOF(TRequestStatus& aStatus);
    44 	};
    45 
    46 
    47 #endif