javacommons/jvms/nativeportlayer/inc.s60/jvmnativeportlayer.h
branchRCL_3
changeset 19 04becd199f91
child 80 d6dafc5d983f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/javacommons/jvms/nativeportlayer/inc.s60/jvmnativeportlayer.h	Tue Apr 27 16:30:29 2010 +0300
@@ -0,0 +1,58 @@
+/*
+* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  CJvmNativePortLayer
+*
+*/
+
+#ifndef JVMNATIVEPORTLAYER_H
+#define JVMNATIVEPORTLAYER_H
+
+#include "javaosheaders.h"
+#include "javaredirector.h"
+using java::util::Redirector;
+
+namespace javaruntime
+{
+
+OS_NONSHARABLE_CLASS(CJvmNativePortLayer): public CBase, public MJvmNativePortLayer
+{
+public:
+    static MJvmNativePortLayer* NewL();
+    IMPORT_C static void SetPointerToCafMethod(TBool(*aUseCafForFileOpen)(const TDesC&));
+public:
+
+    virtual ~CJvmNativePortLayer();
+
+    virtual MJavaFile* GetJavaFileL();
+    virtual void WriteToStdoutL(const TDesC8& aData);
+    virtual void WriteToStderrL(const TDesC8& aData);
+
+private:
+
+    CJvmNativePortLayer();
+
+    void ConstructL();
+
+private:
+//        static  TBool (*iUseCafForFileOpen)(const TDesC&);
+    TBool   iLogging;
+    HBufC*  iStdOut;
+    HBufC*  iStdErr;
+    Redirector iRedirector;
+};
+} // end of namespace javaruntime
+
+#endif // JVMNATIVEPORTLAYER_H
+
+