os/ossrv/genericopenlibs/openenvcore/backend/inc/StdioClient.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 * Name        : stdioclient.h
    16 * Part of     : stdio server
    17 * stdio Redirection Server - client interface DLL
    18 * 
    19 *
    20 */
    21 
    22 
    23 
    24 #ifndef __RSTDIO_SESSION__
    25 #define __RSTDIO_SESSION__
    26 
    27 #include<e32std.h> //RSessionBase
    28 
    29 
    30 enum TRedirStream 
    31 	{
    32 	ERead,
    33 	EWrite,
    34 	EFlush,
    35 	ECheckMedia,
    36 	ENotifyActivity,
    37 	ECancelNotify,
    38 	EEcho
    39 	};
    40 
    41 //-----------------------------------------------------------------------
    42 //Class name: RStdioSession
    43 //Description: It represents the seesion to Stdio Server. 
    44 //-----------------------------------------------------------------------
    45 
    46 class RStdioSession : public RSessionBase
    47 	{
    48 	public:
    49 		TInt Connect();
    50 		void Read(TRequestStatus& aStatus, TDes8& aDes, TInt aLength);
    51 		void Write(TRequestStatus& aStatus, const TDesC8& aDes, TInt aLength);
    52 		TInt CheckMedia(TDes8& aDes);
    53 		void NotifyActivity(TInt aEvents, TRequestStatus& aRequest);
    54 		void CancelNotify();
    55 		int SetEcho(TBool aEcho);
    56 	};	
    57 
    58 #endif //__RSTDIO_SESSION__