fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/src/AknFepUiAvkonPlugin.cpp
changeset 36 a7632c26d895
parent 35 0f326f2e628e
child 42 b3eaa440ab06
equal deleted inserted replaced
35:0f326f2e628e 36:a7632c26d895
     1 /*
       
     2 * Copyright (c) 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:           
       
    15 *       Boilerplate for FEP's Avkon UI plugin.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 #include <e32std.h>
       
    30 #include <ecom/implementationproxy.h>
       
    31 
       
    32 #include "AknFepUiAvkonImpl.h"
       
    33 #include <AknFepUiInterfacePlugin.h>
       
    34 
       
    35 class CFepUiAvkonImplPlugin : public CFepUiInterfacePlugin
       
    36 	{
       
    37 public:
       
    38 	static CFepUiAvkonImplPlugin* NewL();
       
    39 	TBool UseThisPlugin() const;
       
    40 	CAknFepUIInterface* NewImplL();
       
    41 	};
       
    42 
       
    43 
       
    44 // Map the interface UIDs to implementation factory functions
       
    45 const TImplementationProxy ImplementationTable[] = 
       
    46     {
       
    47     IMPLEMENTATION_PROXY_ENTRY(0x10285839, CFepUiAvkonImplPlugin::NewL)    
       
    48     };
       
    49 
       
    50 // Exported proxy for instantiation method resolution
       
    51 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    52     {
       
    53     aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    54 
       
    55     return ImplementationTable;
       
    56     }
       
    57 
       
    58 
       
    59 CFepUiAvkonImplPlugin* CFepUiAvkonImplPlugin::NewL()
       
    60 	{
       
    61 	return new(ELeave) CFepUiAvkonImplPlugin;
       
    62 	}
       
    63 
       
    64 TBool CFepUiAvkonImplPlugin::UseThisPlugin() const
       
    65 	{
       
    66 	// AknFepUiInterface will try to load this plugin last, so it should
       
    67 	// always be used if asked.
       
    68 	return ETrue;
       
    69 	}
       
    70 
       
    71 CAknFepUIInterface* CFepUiAvkonImplPlugin::NewImplL()
       
    72 	{
       
    73 	return CAknFepUIAvkonImpl::NewL();
       
    74 	}