javacommons/jvms/nativeportlayer/inc.s60/jvmnativeportlayer.h
author hgs
Fri, 15 Oct 2010 12:29:39 +0300
changeset 80 d6dafc5d983f
parent 21 2a9601315dfc
permissions -rw-r--r--
v2.2.19_1

/*
* Copyright (c) 2008-2010 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();
public:

    virtual ~CJvmNativePortLayer();

    virtual MJavaFile* GetJavaFileL();
    virtual void WriteToStdoutL(const TDesC8& aData);
    virtual void WriteToStderrL(const TDesC8& aData);

private:

    CJvmNativePortLayer();

    void Construct();

private:
    TBool      iLogging;
    Redirector iRedirector;
};
} // end of namespace javaruntime

#endif // JVMNATIVEPORTLAYER_H