sl@0
|
1 |
// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// EPOC Server for redirecting stdin/stdout/stderr to a stream-like object
|
sl@0
|
15 |
// (console, file or serial port)
|
sl@0
|
16 |
//
|
sl@0
|
17 |
//
|
sl@0
|
18 |
|
sl@0
|
19 |
#ifndef _REDIRCLI_H_
|
sl@0
|
20 |
#define _REDIRCLI_H_
|
sl@0
|
21 |
|
sl@0
|
22 |
#include <e32std.h>
|
sl@0
|
23 |
#include <e32base.h>
|
sl@0
|
24 |
#include <redirstr.h>
|
sl@0
|
25 |
|
sl@0
|
26 |
#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
|
sl@0
|
27 |
#include <redircliinternal.h>
|
sl@0
|
28 |
#endif
|
sl@0
|
29 |
|
sl@0
|
30 |
// The following functions are defined to replace previous exports so def file
|
sl@0
|
31 |
// does not need reordering.
|
sl@0
|
32 |
IMPORT_C void DummyReserved1();
|
sl@0
|
33 |
IMPORT_C void DummyReserved2();
|
sl@0
|
34 |
IMPORT_C void DummyReserved3();
|
sl@0
|
35 |
IMPORT_C void DummyReserved4();
|
sl@0
|
36 |
IMPORT_C void DummyReserved5();
|
sl@0
|
37 |
IMPORT_C void DummyReserved6();
|
sl@0
|
38 |
IMPORT_C void DummyReserved7();
|
sl@0
|
39 |
IMPORT_C void DummyReserved8();
|
sl@0
|
40 |
|
sl@0
|
41 |
class CStreamFactoryBase2;
|
sl@0
|
42 |
class CStreamBase2;
|
sl@0
|
43 |
|
sl@0
|
44 |
/**
|
sl@0
|
45 |
Redirection server class.
|
sl@0
|
46 |
|
sl@0
|
47 |
This class represents the Redir server itself. It is created through the
|
sl@0
|
48 |
factory function NewL. It is not intended for user derivation.
|
sl@0
|
49 |
|
sl@0
|
50 |
@publishedPartner
|
sl@0
|
51 |
@released
|
sl@0
|
52 |
*/
|
sl@0
|
53 |
class CRedirServer2 : public CServer2
|
sl@0
|
54 |
{
|
sl@0
|
55 |
private:
|
sl@0
|
56 |
/**Priority flag
|
sl@0
|
57 |
*/
|
sl@0
|
58 |
enum {
|
sl@0
|
59 |
//mpt - need to explain the magic here!
|
sl@0
|
60 |
EPriority=950
|
sl@0
|
61 |
};
|
sl@0
|
62 |
public:
|
sl@0
|
63 |
IMPORT_C static CRedirServer2* NewL(CStreamFactoryBase2* aStreamFactory);
|
sl@0
|
64 |
IMPORT_C void SetStreamFactory(CStreamFactoryBase2* aStreamFactory);
|
sl@0
|
65 |
virtual ~CRedirServer2();
|
sl@0
|
66 |
private:
|
sl@0
|
67 |
CRedirServer2(CStreamFactoryBase2* aStreamFactory);
|
sl@0
|
68 |
virtual CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
|
sl@0
|
69 |
private:
|
sl@0
|
70 |
CStreamFactoryBase2* iStreamFactory;
|
sl@0
|
71 |
};
|
sl@0
|
72 |
|
sl@0
|
73 |
#endif
|