1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cstdlib/INC/REDIRCLI.H Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,73 @@
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 "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.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 +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
1.30 +#include <redircliinternal.h>
1.31 +#endif
1.32 +
1.33 +// The following functions are defined to replace previous exports so def file
1.34 +// does not need reordering.
1.35 +IMPORT_C void DummyReserved1();
1.36 +IMPORT_C void DummyReserved2();
1.37 +IMPORT_C void DummyReserved3();
1.38 +IMPORT_C void DummyReserved4();
1.39 +IMPORT_C void DummyReserved5();
1.40 +IMPORT_C void DummyReserved6();
1.41 +IMPORT_C void DummyReserved7();
1.42 +IMPORT_C void DummyReserved8();
1.43 +
1.44 +class CStreamFactoryBase2;
1.45 +class CStreamBase2;
1.46 +
1.47 +/**
1.48 +Redirection server class.
1.49 +
1.50 +This class represents the Redir server itself. It is created through the
1.51 +factory function NewL. It is not intended for user derivation.
1.52 +
1.53 +@publishedPartner
1.54 +@released
1.55 +*/
1.56 +class CRedirServer2 : public CServer2
1.57 + {
1.58 +private:
1.59 + /**Priority flag
1.60 + */
1.61 + enum {
1.62 + //mpt - need to explain the magic here!
1.63 + EPriority=950
1.64 + };
1.65 +public:
1.66 + IMPORT_C static CRedirServer2* NewL(CStreamFactoryBase2* aStreamFactory);
1.67 + IMPORT_C void SetStreamFactory(CStreamFactoryBase2* aStreamFactory);
1.68 + virtual ~CRedirServer2();
1.69 +private:
1.70 + CRedirServer2(CStreamFactoryBase2* aStreamFactory);
1.71 + virtual CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
1.72 +private:
1.73 + CStreamFactoryBase2* iStreamFactory;
1.74 + };
1.75 +
1.76 +#endif