harvester/monitorplugins/monitorplugininterface/src/monitorplugin.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:  Base class for monitor plug-ins.*
       
    15 */
       
    16 
       
    17 
       
    18 #include "monitorplugin.h"
       
    19 
       
    20 EXPORT_C CMonitorPlugin* CMonitorPlugin::NewL(const TUid& aUid)
       
    21 	{
       
    22 	TAny* monitorPlugin = REComSession::CreateImplementationL(
       
    23 			aUid, _FOFF( CMonitorPlugin, iDtor_ID_Key ) );
       
    24 	return (reinterpret_cast<CMonitorPlugin*>(monitorPlugin));
       
    25 	}
       
    26 
       
    27 EXPORT_C void CMonitorPlugin::ListImplementationsL(RImplInfoPtrArray& aImplInfoArray)
       
    28 	{
       
    29 	REComSession::ListImplementationsL(
       
    30 			KMonitorPluginInterfaceUid, aImplInfoArray );
       
    31 	}
       
    32 	
       
    33 // Destructor
       
    34 EXPORT_C CMonitorPlugin::~CMonitorPlugin()
       
    35 	{
       
    36 	REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    37 	}
       
    38 
       
    39 GLDEF_C TInt E32Dll()
       
    40 	{
       
    41 	return(KErrNone);
       
    42 	}
       
    43