sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #include sl@0: sl@0: /** Signals the destruction of the plug-in to ECom. sl@0: */ sl@0: EXPORT_C CLogCntModel::~CLogCntModel() sl@0: { sl@0: REComSession::DestroyedImplementation(iDtor_ID_Key); sl@0: } sl@0: sl@0: /** Attempts to load a plugin implementation of the contacts matching functionality. sl@0: sl@0: @return A pointer to the implementation sl@0: sl@0: @leave KErrNotFound No implementation was found. sl@0: @capability ProtServ WriteDeviceData ReadDeviceData ReadUserData WriteUserData sl@0: */ sl@0: EXPORT_C CLogCntModel* CLogCntModel::NewL() sl@0: { sl@0: // Use default resolver parameters. sl@0: const TEComResolverParams noResolverParams; sl@0: TAny* ptr = REComSession::CreateImplementationL(KUidEComLogCntInterface, sl@0: _FOFF(CLogCntModel,iDtor_ID_Key), sl@0: noResolverParams); sl@0: return reinterpret_cast(ptr); sl@0: } sl@0: sl@0: