webengine/deviceextension/inc/DeviceExtension.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2007 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 the License "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:  Declaration of the Device Extension object
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __DEVICE_EXT_H__
       
    19 #define __DEVICE_EXT_H__
       
    20 
       
    21 //  INCLUDES
       
    22 #include <e32base.h>
       
    23 #include "DeviceBridge.h"
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 // MACROS
       
    28 
       
    29 // DATA TYPES
       
    30 
       
    31 // FUNCTION PROTOTYPES
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 class CWebKitView;
       
    35 
       
    36 
       
    37 // CLASS DECLARATION
       
    38 /**
       
    39 *  CDeviceExtension
       
    40 *
       
    41 *  @lib jsdevice.dll
       
    42 *  @since 5.0
       
    43 */
       
    44 
       
    45 /*
       
    46  * The device extension holds the browser engine's part of the device object implementation. 
       
    47  */
       
    48  
       
    49  
       
    50 class CDeviceExtension: public CBase
       
    51 {
       
    52     public:
       
    53         
       
    54         static CDeviceExtension* NewL( CWebKitView& aWebKitView );
       
    55         
       
    56         virtual ~CDeviceExtension();
       
    57         
       
    58     protected:
       
    59         
       
    60         void ConstructL();
       
    61 
       
    62         CDeviceExtension( CWebKitView& aWebKitView );
       
    63         
       
    64     public: // DeviceExtension public methods 
       
    65         
       
    66         void* createDeviceObject( void* aExec );
       
    67         
       
    68     private: // DeviceExtension private methods
       
    69     
       
    70         void LoadDeviceDllL();
       
    71         
       
    72             
       
    73     private: // Data members
       
    74     
       
    75     	CWebKitView* iWebKitView; // Reference to the browser control that created us
       
    76     	MDeviceBridge* iDeviceBridge; //Interface to the JS Device object
       
    77     	RLibrary dLibrary; // Handle to loaded device dll
       
    78 };
       
    79 
       
    80 #endif //__DEVICE_EXT_H__