equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Redirector redirects standard outs and log messages |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef JAVAREDIRECTOR_H |
|
20 #define JAVAREDIRECTOR_H |
|
21 |
|
22 #include <e32std.h> |
|
23 #include "javaosheaders.h" |
|
24 |
|
25 namespace java |
|
26 { |
|
27 namespace util |
|
28 { |
|
29 |
|
30 OS_NONSHARABLE_CLASS(Redirector) : public RSessionBase |
|
31 { |
|
32 public: |
|
33 OS_IMPORT Redirector(); |
|
34 OS_IMPORT virtual ~Redirector(); |
|
35 |
|
36 OS_IMPORT TInt connect(); |
|
37 OS_IMPORT void close(); |
|
38 |
|
39 OS_IMPORT TInt systemOut(const TDesC8& aData); |
|
40 OS_IMPORT TInt systemErr(const TDesC8& aData); |
|
41 OS_IMPORT static TInt log(const TDesC8& aData); |
|
42 |
|
43 private: |
|
44 TInt send(TInt aFunction, const TDesC8& aData); |
|
45 |
|
46 TInt mStatus; |
|
47 }; |
|
48 |
|
49 |
|
50 } // end namespace util |
|
51 } // end namespace java |
|
52 |
|
53 #endif // JAVAREDIRECTOR_H |