contextengine/plugins/contextplugininterface/src/contextplugin.cpp
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2006-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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <ecom.h>
       
    20 #include "contextplugin.h"
       
    21 	
       
    22 // ---------------------------------------------------------------------------
       
    23 // 
       
    24 // ---------------------------------------------------------------------------
       
    25 //
       
    26 EXPORT_C CContextPlugin* CContextPlugin::NewL( const TUid& aUid )
       
    27 	{
       
    28 	TAny* contextPlugin = REComSession::CreateImplementationL(
       
    29 		aUid, _FOFF( CContextPlugin, iDtor_ID_Key ) );
       
    30 	return ( reinterpret_cast<CContextPlugin*>(contextPlugin) );
       
    31 	}
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // 
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 EXPORT_C void CContextPlugin::ListImplementationsL( RImplInfoPtrArray& aImplInfoArray )
       
    38 	{
       
    39 	REComSession::ListImplementationsL( KCContextPluginInterfaceUid, aImplInfoArray );
       
    40 	}
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // Destructor
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 EXPORT_C CContextPlugin::~CContextPlugin()
       
    47 	{
       
    48 	// Destroy any instance variables and then
       
    49 	// inform the framework that this specific
       
    50 	// instance of the interface has been destroyed.
       
    51 	REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    52 	}
       
    53 
       
    54 // ---------------------------------------------------------------------------
       
    55 // Main function of the DLL.
       
    56 // ---------------------------------------------------------------------------
       
    57 //
       
    58 GLDEF_C TInt E32Dll()
       
    59 	{
       
    60 	return( KErrNone );
       
    61 	}