equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: CJvmNativePortLayer |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef JVMNATIVEPORTLAYER_H |
|
19 #define JVMNATIVEPORTLAYER_H |
|
20 |
|
21 #include "javaosheaders.h" |
|
22 #include "javaredirector.h" |
|
23 using java::util::Redirector; |
|
24 |
|
25 namespace javaruntime |
|
26 { |
|
27 |
|
28 OS_NONSHARABLE_CLASS(CJvmNativePortLayer): public CBase, public MJvmNativePortLayer |
|
29 { |
|
30 public: |
|
31 static MJvmNativePortLayer* NewL(); |
|
32 IMPORT_C static void SetPointerToCafMethod(TBool(*aUseCafForFileOpen)(const TDesC&)); |
|
33 public: |
|
34 |
|
35 virtual ~CJvmNativePortLayer(); |
|
36 |
|
37 virtual MJavaFile* GetJavaFileL(); |
|
38 virtual void WriteToStdoutL(const TDesC8& aData); |
|
39 virtual void WriteToStderrL(const TDesC8& aData); |
|
40 |
|
41 private: |
|
42 |
|
43 CJvmNativePortLayer(); |
|
44 |
|
45 void ConstructL(); |
|
46 |
|
47 private: |
|
48 // static TBool (*iUseCafForFileOpen)(const TDesC&); |
|
49 TBool iLogging; |
|
50 HBufC* iStdOut; |
|
51 HBufC* iStdErr; |
|
52 Redirector iRedirector; |
|
53 }; |
|
54 } // end of namespace javaruntime |
|
55 |
|
56 #endif // JVMNATIVEPORTLAYER_H |
|
57 |
|
58 |