Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // EPOC Server for redirecting stdin/stdout/stderr to a stream-like object
15 // (console, file or serial port)
26 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
27 #include <redircliinternal.h>
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();
41 class CStreamFactoryBase2;
45 Redirection server class.
47 This class represents the Redir server itself. It is created through the
48 factory function NewL. It is not intended for user derivation.
53 class CRedirServer2 : public CServer2
59 //mpt - need to explain the magic here!
63 IMPORT_C static CRedirServer2* NewL(CStreamFactoryBase2* aStreamFactory);
64 IMPORT_C void SetStreamFactory(CStreamFactoryBase2* aStreamFactory);
65 virtual ~CRedirServer2();
67 CRedirServer2(CStreamFactoryBase2* aStreamFactory);
68 virtual CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
70 CStreamFactoryBase2* iStreamFactory;