epoc32/include/redircli.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/redircli.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,89 +0,0 @@
     1.4 -// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.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
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -// EPOC Server for redirecting stdin/stdout/stderr to a stream-like object 
    1.18 -// (console, file or serial port)
    1.19 -// 
    1.20 -//
    1.21 -
    1.22 -#ifndef _REDIRCLI_H_
    1.23 -#define _REDIRCLI_H_
    1.24 -
    1.25 -#include <e32std.h>
    1.26 -#include <e32base.h>
    1.27 -#include <redirstr.h>
    1.28 -
    1.29 -// The following functions are defined to replace previous exports so def file 
    1.30 -// does not need reordering.
    1.31 -IMPORT_C void DummyReserved1();
    1.32 -IMPORT_C void DummyReserved2();
    1.33 -IMPORT_C void DummyReserved3();
    1.34 -IMPORT_C void DummyReserved4();
    1.35 -IMPORT_C void DummyReserved5();
    1.36 -IMPORT_C void DummyReserved6();
    1.37 -IMPORT_C void DummyReserved7();
    1.38 -IMPORT_C void DummyReserved8();
    1.39 -
    1.40 -class CStreamFactoryBase2;
    1.41 -class CStreamBase2;
    1.42 -
    1.43 -/** 
    1.44 -Redirection server class.
    1.45 - 
    1.46 -This class represents the Redir server itself. It is created through the 
    1.47 -factory function NewL. It is not intended for user derivation.
    1.48 -
    1.49 -@publishedPartner
    1.50 -@released
    1.51 -*/
    1.52 -class CRedirServer2 : public CServer2
    1.53 -	{
    1.54 -private:
    1.55 -	/**Priority flag
    1.56 -	*/
    1.57 -	enum {
    1.58 -	//mpt - need to explain the magic here!
    1.59 -	EPriority=950
    1.60 -	};
    1.61 -public:
    1.62 -	IMPORT_C static CRedirServer2* NewL(CStreamFactoryBase2* aStreamFactory);
    1.63 -	IMPORT_C void SetStreamFactory(CStreamFactoryBase2* aStreamFactory);
    1.64 -	virtual ~CRedirServer2();
    1.65 -private:
    1.66 -	CRedirServer2(CStreamFactoryBase2* aStreamFactory);
    1.67 -	virtual	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
    1.68 -private:
    1.69 -	CStreamFactoryBase2* iStreamFactory;
    1.70 -	};
    1.71 -
    1.72 -/**
    1.73 -Client side session for Redirection server
    1.74 -
    1.75 -@internalAll
    1.76 -*/
    1.77 -class RRedirSession2 : public RSessionBase
    1.78 -	{
    1.79 -public:
    1.80 -	IMPORT_C TInt Connect();
    1.81 -	IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes);
    1.82 -	IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes, TInt aLength);
    1.83 -	IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes);
    1.84 -	IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes, TInt aLength);
    1.85 -	IMPORT_C void Flush(TRequestStatus& aStatus);
    1.86 -private:
    1.87 -//TO DO: do we really need this function??
    1.88 -	TInt CheckEOF(TRequestStatus& aStatus);
    1.89 -	};
    1.90 -
    1.91 -
    1.92 -#endif