phonebookengines/VirtualPhonebook/VPbkCntModel/src/VPbkCntModelEntryPoint.cpp
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:29:52 +0100
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* 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 <e32std.h>
#include <ecom/implementationproxy.h>
#include "CContactStoreDomain.h"
#include "CSpeedDialAttributeManager.h"
#include "CDefaultAttributeManager.h"
#include "CContactIdConverter.h"

#include <VPbkPublicUid.h>
#include <VPbkPrivateUid.h>

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<NewLPtr>(VPbkCntModel::CContactStoreDomain::NewL)),
    IMPLEMENTATION_PROXY_ENTRY(KVPbkSpeedDialAttributeImplementationUID, 
        static_cast<AttributeNewLPtr>(VPbkCntModel::CSpeedDialAttributeManager::NewL)),
    IMPLEMENTATION_PROXY_ENTRY(KVPbkDefaultAttributeImplementationUID, 
        static_cast<DefaultAttributeNewLPtr>(VPbkCntModel::CDefaultAttributeManager::NewL)),
    IMPLEMENTATION_PROXY_ENTRY(KVPbkContactIdConverterImplementationUid, 
        static_cast<ConverterNewLPtr>(VPbkCntModel::CContactIdConverter::NewL)),
    };

EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
    {
    aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
    return ImplementationTable;
    }

// end if file