mmuifw_plat/alf_widgetmodel_api/inc/alf/alfwidget.inl
changeset 17 3eca7e70b1b8
parent 3 4526337fb576
equal deleted inserted replaced
3:4526337fb576 17:3eca7e70b1b8
     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 "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:  Template interface getter for CAlfWidget class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // Template getter for interfaces provided by the widget, the control,
       
    21 // or the model. The type of the queried interface is specified by the
       
    22 // template parameter.
       
    23 // -----------------------------------------------------------------------------
       
    24 //
       
    25 template <class T>
       
    26 T* AlfWidget::makeInterface( AlfWidget* aWidget )
       
    27     {
       
    28     return static_cast< T* >( AlfWidget::makeInterface( aWidget, T::type() ) );
       
    29     }