sl@0: // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // EPOC Server for redirecting stdin/stdout/stderr to a stream-like object sl@0: // (console, file or serial port) sl@0: // sl@0: // sl@0: sl@0: #ifndef _REDIRCLI_H_ sl@0: #define _REDIRCLI_H_ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS sl@0: #include sl@0: #endif sl@0: sl@0: // The following functions are defined to replace previous exports so def file sl@0: // does not need reordering. sl@0: IMPORT_C void DummyReserved1(); sl@0: IMPORT_C void DummyReserved2(); sl@0: IMPORT_C void DummyReserved3(); sl@0: IMPORT_C void DummyReserved4(); sl@0: IMPORT_C void DummyReserved5(); sl@0: IMPORT_C void DummyReserved6(); sl@0: IMPORT_C void DummyReserved7(); sl@0: IMPORT_C void DummyReserved8(); sl@0: sl@0: class CStreamFactoryBase2; sl@0: class CStreamBase2; sl@0: sl@0: /** sl@0: Redirection server class. sl@0: sl@0: This class represents the Redir server itself. It is created through the sl@0: factory function NewL. It is not intended for user derivation. sl@0: sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: class CRedirServer2 : public CServer2 sl@0: { sl@0: private: sl@0: /**Priority flag sl@0: */ sl@0: enum { sl@0: //mpt - need to explain the magic here! sl@0: EPriority=950 sl@0: }; sl@0: public: sl@0: IMPORT_C static CRedirServer2* NewL(CStreamFactoryBase2* aStreamFactory); sl@0: IMPORT_C void SetStreamFactory(CStreamFactoryBase2* aStreamFactory); sl@0: virtual ~CRedirServer2(); sl@0: private: sl@0: CRedirServer2(CStreamFactoryBase2* aStreamFactory); sl@0: virtual CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const; sl@0: private: sl@0: CStreamFactoryBase2* iStreamFactory; sl@0: }; sl@0: sl@0: #endif