diff -r 5b6f26637ad3 -r f4a778e096c2 phonebookengines/VirtualPhonebook/VPbkCntModel/src/VPbkCntModelEntryPoint.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookengines/VirtualPhonebook/VPbkCntModel/src/VPbkCntModelEntryPoint.cpp Wed Sep 01 12:29:52 2010 +0100 @@ -0,0 +1,54 @@ +/* +* Copyright (c) 2004-2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Virtual Phonebook cnt model entry point +* +*/ + + +// INCLUDES +#include +#include +#include "CContactStoreDomain.h" +#include "CSpeedDialAttributeManager.h" +#include "CDefaultAttributeManager.h" +#include "CContactIdConverter.h" + +#include +#include + +typedef VPbkCntModel::CContactStoreDomain* (*NewLPtr)(TAny*); +typedef VPbkCntModel::CSpeedDialAttributeManager* (*AttributeNewLPtr)(TAny*); +typedef VPbkCntModel::CDefaultAttributeManager* (*DefaultAttributeNewLPtr)(TAny*); +typedef VPbkCntModel::CContactIdConverter* (*ConverterNewLPtr)(TAny*); + +// Define the interface UIDs +const TImplementationProxy ImplementationTable[] = + { + IMPLEMENTATION_PROXY_ENTRY(KVPbkCntModelStoreDomainImplementationUID, + static_cast(VPbkCntModel::CContactStoreDomain::NewL)), + IMPLEMENTATION_PROXY_ENTRY(KVPbkSpeedDialAttributeImplementationUID, + static_cast(VPbkCntModel::CSpeedDialAttributeManager::NewL)), + IMPLEMENTATION_PROXY_ENTRY(KVPbkDefaultAttributeImplementationUID, + static_cast(VPbkCntModel::CDefaultAttributeManager::NewL)), + IMPLEMENTATION_PROXY_ENTRY(KVPbkContactIdConverterImplementationUid, + static_cast(VPbkCntModel::CContactIdConverter::NewL)), + }; + +EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) + { + aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); + return ImplementationTable; + } + +// end if file