equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <logcntmodel.h> |
|
17 |
|
18 /** Signals the destruction of the plug-in to ECom. |
|
19 */ |
|
20 EXPORT_C CLogCntModel::~CLogCntModel() |
|
21 { |
|
22 REComSession::DestroyedImplementation(iDtor_ID_Key); |
|
23 } |
|
24 |
|
25 /** Attempts to load a plugin implementation of the contacts matching functionality. |
|
26 |
|
27 @return A pointer to the implementation |
|
28 |
|
29 @leave KErrNotFound No implementation was found. |
|
30 @capability ProtServ WriteDeviceData ReadDeviceData ReadUserData WriteUserData |
|
31 */ |
|
32 EXPORT_C CLogCntModel* CLogCntModel::NewL() |
|
33 { |
|
34 // Use default resolver parameters. |
|
35 const TEComResolverParams noResolverParams; |
|
36 TAny* ptr = REComSession::CreateImplementationL(KUidEComLogCntInterface, |
|
37 _FOFF(CLogCntModel,iDtor_ID_Key), |
|
38 noResolverParams); |
|
39 return reinterpret_cast<CLogCntModel*>(ptr); |
|
40 } |
|
41 |
|
42 |