genericopenlibs/cstdlib/INC/REDIRCLI.H
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     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 _REDIRCLI_H_
       
    20 #define _REDIRCLI_H_
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <redirstr.h>
       
    25 
       
    26 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    27 #include <redircliinternal.h>
       
    28 #endif
       
    29 
       
    30 // The following functions are defined to replace previous exports so def file 
       
    31 // does not need reordering.
       
    32 IMPORT_C void DummyReserved1();
       
    33 IMPORT_C void DummyReserved2();
       
    34 IMPORT_C void DummyReserved3();
       
    35 IMPORT_C void DummyReserved4();
       
    36 IMPORT_C void DummyReserved5();
       
    37 IMPORT_C void DummyReserved6();
       
    38 IMPORT_C void DummyReserved7();
       
    39 IMPORT_C void DummyReserved8();
       
    40 
       
    41 class CStreamFactoryBase2;
       
    42 class CStreamBase2;
       
    43 
       
    44 /** 
       
    45 Redirection server class.
       
    46  
       
    47 This class represents the Redir server itself. It is created through the 
       
    48 factory function NewL. It is not intended for user derivation.
       
    49 
       
    50 @publishedPartner
       
    51 @released
       
    52 */
       
    53 class CRedirServer2 : public CServer2
       
    54 	{
       
    55 private:
       
    56 	/**Priority flag
       
    57 	*/
       
    58 	enum {
       
    59 	//mpt - need to explain the magic here!
       
    60 	EPriority=950
       
    61 	};
       
    62 public:
       
    63 	IMPORT_C static CRedirServer2* NewL(CStreamFactoryBase2* aStreamFactory);
       
    64 	IMPORT_C void SetStreamFactory(CStreamFactoryBase2* aStreamFactory);
       
    65 	virtual ~CRedirServer2();
       
    66 private:
       
    67 	CRedirServer2(CStreamFactoryBase2* aStreamFactory);
       
    68 	virtual	CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
       
    69 private:
       
    70 	CStreamFactoryBase2* iStreamFactory;
       
    71 	};
       
    72 
       
    73 #endif