menufw/menufwui/mmextensions/mmextensionmanager/inc/mmextensionplugin.inl
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     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:  Inline functions for Menu Framewrok extension plugins
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // -----------------------------------------------------------------------------
       
    21 // 
       
    22 // -----------------------------------------------------------------------------
       
    23 //
       
    24 inline CMMExtensionPlugin::CMMExtensionPlugin()
       
    25 	{
       
    26 	}
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // 
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 inline CMMExtensionPlugin::~CMMExtensionPlugin()
       
    33 	{
       
    34 	// Destroy any instance variables and then
       
    35 	// inform the framework that this specific 
       
    36 	// instance of the interface has been destroyed.
       
    37 	REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    38 	}
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // 
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 inline CMMExtensionPlugin* CMMExtensionPlugin::NewL( TUid aUid , TAny* aParams )
       
    45 	{
       
    46 	return REINTERPRET_CAST( CMMExtensionPlugin*, 
       
    47 		REComSession::CreateImplementationL( aUid, 
       
    48 		   _FOFF( CMMExtensionPlugin, iDtor_ID_Key ) , aParams ) ) ;
       
    49 	}   
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // 
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 inline void CMMExtensionPlugin::ListAllImplementationsL(
       
    56 	RImplInfoPtrArray& aImplInfoArray)
       
    57 	{
       
    58 	REComSession::ListImplementationsL( TUid::Uid( KCMMExtensionInterfaceUid ), 
       
    59 		aImplInfoArray );
       
    60 	}
       
    61 
       
    62 // End of File