idlefw/tsrc/wsplugin/stub/numerickeyhandler_stub.cpp
branchRCL_3
changeset 28 053c6c7c14f3
equal deleted inserted replaced
27:2c7f27287390 28:053c6c7c14f3
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Stub Numeric key forwarding handler implementation for Active Idle 
       
    15 *                WS Plug-in.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // System includes
       
    21 
       
    22 // User includes
       
    23 #include "numerickeyhandler_stub.h"
       
    24 
       
    25 #include "ut_aiwspluginanimtls.h"
       
    26 
       
    27 namespace AiWsPlugin {
       
    28 
       
    29 // Constants
       
    30 
       
    31 // ======== LOCAL FUNCTIONS ========
       
    32     
       
    33 // ======== MEMBER FUNCTIONS =======
       
    34 // ----------------------------------------------------------------------------
       
    35 // CNumericKeyHandler::CNumericKeyHandler()
       
    36 //
       
    37 // ----------------------------------------------------------------------------
       
    38 //
       
    39 CNumericKeyHandler::CNumericKeyHandler( TInt aTargetWgId, 
       
    40     MAnimGeneralFunctionsWindowExtension* aWindowExt ) :
       
    41     iTargetWgId( aTargetWgId ), iWindowExt( aWindowExt )     
       
    42     {
       
    43     }
       
    44 
       
    45 // ----------------------------------------------------------------------------
       
    46 // CNumericKeyHandler::NewLC()
       
    47 //
       
    48 // ----------------------------------------------------------------------------
       
    49 //        
       
    50 CNumericKeyHandler* CNumericKeyHandler::NewLC( TInt aTargetWgId, 
       
    51     MAnimGeneralFunctionsWindowExtension* aWindowExt )
       
    52     {
       
    53     CNumericKeyHandler* self = 
       
    54         new ( ELeave ) CNumericKeyHandler( aTargetWgId, aWindowExt );
       
    55            
       
    56     CleanupStack::PushL( self );
       
    57     
       
    58     UT_AiWsPluginAnimTls::Instance()->AddEventHandlerL( *self );
       
    59     
       
    60     return self;
       
    61     }
       
    62 
       
    63 // ----------------------------------------------------------------------------
       
    64 // CNumericKeyHandler::~CNumericKeyHandler()
       
    65 //
       
    66 // ----------------------------------------------------------------------------
       
    67 //        
       
    68 CNumericKeyHandler::~CNumericKeyHandler()
       
    69     {
       
    70     }
       
    71 
       
    72 } // namespace AiWsPlugin
       
    73 
       
    74 // End of file