fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/src/AknFepUiAvkonPlugin.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 10:15:25 +0300
branchRCL_3
changeset 19 ac7e4d1d9209
parent 0 eb1f2e154e89
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* Copyright (c) 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:           
*       Boilerplate for FEP's Avkon UI plugin.
*
*/











#include <e32std.h>
#include <ecom/implementationproxy.h>

#include "AknFepUiAvkonImpl.h"
#include <AknFepUiInterfacePlugin.h>

class CFepUiAvkonImplPlugin : public CFepUiInterfacePlugin
	{
public:
	static CFepUiAvkonImplPlugin* NewL();
	TBool UseThisPlugin() const;
	CAknFepUIInterface* NewImplL();
	};


// Map the interface UIDs to implementation factory functions
const TImplementationProxy ImplementationTable[] = 
    {
    IMPLEMENTATION_PROXY_ENTRY(0x10285839, CFepUiAvkonImplPlugin::NewL)    
    };

// Exported proxy for instantiation method resolution
EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
    {
    aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);

    return ImplementationTable;
    }


CFepUiAvkonImplPlugin* CFepUiAvkonImplPlugin::NewL()
	{
	return new(ELeave) CFepUiAvkonImplPlugin;
	}

TBool CFepUiAvkonImplPlugin::UseThisPlugin() const
	{
	// AknFepUiInterface will try to load this plugin last, so it should
	// always be used if asked.
	return ETrue;
	}

CAknFepUIInterface* CFepUiAvkonImplPlugin::NewImplL()
	{
	return CAknFepUIAvkonImpl::NewL();
	}