textinput/peninputfingerhwr/src/peninputfingerhwrproxy.cpp
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2009 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 "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:  ECom entry point for finger hwr
       
    15 *
       
    16 */
       
    17 
       
    18 #include <e32std.h>
       
    19 #include <implementationproxy.h>
       
    20 #include <peninputlayoutplugininterface.h>
       
    21 #include "peninputfingerhwrlayout.h"
       
    22 
       
    23 
       
    24 /******************************************************
       
    25 
       
    26 	CFepUiLayoutInterface Implementation
       
    27 
       
    28 *******************************************************/
       
    29 
       
    30 // An implementation of the CFepUiLayoutInterface definition
       
    31 class CPeninputFingerHwrLayoutImpl : public CFepUiLayoutInterface
       
    32     {
       
    33 public:
       
    34     // Standardised safe construction which leaves nothing the cleanup stack.
       
    35     static CPeninputFingerHwrLayoutImpl* NewL( TAny* aInitParams );
       
    36 
       
    37     // Implementation of CFepUiLayoutInterface::CreateFepUiLayoutL
       
    38     MPenUiLayoutBase* CreateFepUiLayoutL( MLayoutOwner* aLayoutOwner, 
       
    39         const TAny*  aInitData );
       
    40     };
       
    41 
       
    42 // Construction and destruction functions
       
    43 CPeninputFingerHwrLayoutImpl* 
       
    44     CPeninputFingerHwrLayoutImpl::NewL( TAny* /*aInitParams*/ )
       
    45     {
       
    46     CPeninputFingerHwrLayoutImpl* self = new( ELeave ) CPeninputFingerHwrLayoutImpl();
       
    47     return self;
       
    48     }
       
    49 
       
    50 // Implementation of CPeninputFingerHwrLayout
       
    51 MPenUiLayoutBase* CPeninputFingerHwrLayoutImpl::CreateFepUiLayoutL( 
       
    52     MLayoutOwner* aLayoutOwner,
       
    53     const TAny* aInitData )
       
    54     {
       
    55     CPeninputFingerHwrLayout* uiLayout = 
       
    56         CPeninputFingerHwrLayout::NewL( aLayoutOwner, aInitData );
       
    57     return uiLayout;
       
    58     }
       
    59 
       
    60 /******************************************************
       
    61 
       
    62 	ECom Implementation Proxy
       
    63 
       
    64 *******************************************************/
       
    65 
       
    66 // Map the interface UIDs to implementation factory functions
       
    67 const TImplementationProxy ImplementationTable[] =
       
    68     {
       
    69     IMPLEMENTATION_PROXY_ENTRY( 0x2001CB83, CPeninputFingerHwrLayoutImpl::NewL )
       
    70     };
       
    71 
       
    72 // Exported proxy for instantiation method resolution
       
    73 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount )
       
    74     {
       
    75     aTableCount = sizeof( ImplementationTable ) / sizeof( TImplementationProxy );
       
    76 
       
    77     return ImplementationTable;
       
    78     }
       
    79 
       
    80 //End of file