|
1 /* |
|
2 * Copyright (c) 2004-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: Virtual Phonebook cnt model entry point |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDES |
|
20 #include <e32std.h> |
|
21 #include <ecom/implementationproxy.h> |
|
22 #include "CContactStoreDomain.h" |
|
23 #include "CSpeedDialAttributeManager.h" |
|
24 #include "CDefaultAttributeManager.h" |
|
25 #include "CContactIdConverter.h" |
|
26 |
|
27 #include <VPbkPublicUid.h> |
|
28 #include <VPbkPrivateUid.h> |
|
29 |
|
30 typedef VPbkCntModel::CContactStoreDomain* (*NewLPtr)(TAny*); |
|
31 typedef VPbkCntModel::CSpeedDialAttributeManager* (*AttributeNewLPtr)(TAny*); |
|
32 typedef VPbkCntModel::CDefaultAttributeManager* (*DefaultAttributeNewLPtr)(TAny*); |
|
33 typedef VPbkCntModel::CContactIdConverter* (*ConverterNewLPtr)(TAny*); |
|
34 |
|
35 // Define the interface UIDs |
|
36 const TImplementationProxy ImplementationTable[] = |
|
37 { |
|
38 IMPLEMENTATION_PROXY_ENTRY(KVPbkCntModelStoreDomainImplementationUID, |
|
39 static_cast<NewLPtr>(VPbkCntModel::CContactStoreDomain::NewL)), |
|
40 IMPLEMENTATION_PROXY_ENTRY(KVPbkSpeedDialAttributeImplementationUID, |
|
41 static_cast<AttributeNewLPtr>(VPbkCntModel::CSpeedDialAttributeManager::NewL)), |
|
42 IMPLEMENTATION_PROXY_ENTRY(KVPbkDefaultAttributeImplementationUID, |
|
43 static_cast<DefaultAttributeNewLPtr>(VPbkCntModel::CDefaultAttributeManager::NewL)), |
|
44 IMPLEMENTATION_PROXY_ENTRY(KVPbkContactIdConverterImplementationUid, |
|
45 static_cast<ConverterNewLPtr>(VPbkCntModel::CContactIdConverter::NewL)), |
|
46 }; |
|
47 |
|
48 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
49 { |
|
50 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
51 return ImplementationTable; |
|
52 } |
|
53 |
|
54 // end if file |