webengine/device/inc/DeviceBridge.h
author Kiiskinen Klaus (Nokia-D-MSW/Tampere) <klaus.kiiskinen@nokia.com>
Mon, 30 Mar 2009 12:54:55 +0300
changeset 0 dd21522fd290
child 13 10e98eab6f85
permissions -rw-r--r--
Revision: 200911 Kit: 200912

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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: 
*
*/


#ifndef __DEVICEBRIDGE
#define __DEVICEBRIDGE

//  INCLUDES
#include <e32base.h>

// CONSTANTS

// MACROS

// DATA TYPES

// FUNCTION PROTOTYPES

// FORWARD DECLARATION
namespace KJS
    {
    class JSObject;
    class ExecState;
    class Device;
    }


// CLASS DECLARATION

// Calls from browser engine (implemented by DeviceBridge)

class MDeviceBridge
    {
    public:
        inline virtual void* Device( void* exec ) = 0;
        inline virtual ~MDeviceBridge() {};
        inline virtual void SetUid( const TUint& aValue) = 0;
    };

/**
*  TDeviceBridge
*
*  @lib jsdevice.dll
*  @since 3.1
*/

NONSHARABLE_CLASS( TDeviceBridge ): public MDeviceBridge
    {

    public:

       /**
        * Constructor
        * @since 5.0
        * @param
        */
        TDeviceBridge();

       /**
        * Destructor.
        * @since 5.0
        * @param
        */
        virtual ~TDeviceBridge();

    public: //From MDeviceBridge

       /**
        * Device
        * @since 5.0
        * @param
        * @return
        */
        void* Device( void* exec );

       /**
        * SetBlanketPermission
        * @since 5.0
        * @param 
        * @return none
        */
        void SetUid( const TUint& aValue);

    private:

        KJS::Device* m_device;// Not owned

 };

#endif