diff -r 000000000000 -r dd21522fd290 webengine/device/inc/DeviceBridge.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webengine/device/inc/DeviceBridge.h Mon Mar 30 12:54:55 2009 +0300 @@ -0,0 +1,104 @@ +/* +* 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 + +// 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