Symbian3/SDK/Source/GUID-008F9006-8548-443D-A7ED-4A8233E051C6.dita
changeset 0 89d6a7a84779
equal deleted inserted replaced
-1:000000000000 0:89d6a7a84779
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
       
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
       
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
       
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     6 <!-- Initial Contributors:
       
     7     Nokia Corporation - initial contribution.
       
     8 Contributors: 
       
     9 -->
       
    10 <!DOCTYPE task
       
    11   PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
       
    12 <task id="GUID-008F9006-8548-443D-A7ED-4A8233E051C6" xml:lang="en"><title>Implement
       
    13 the ECom framework code</title><prolog><metadata><keywords/></metadata></prolog><taskbody>
       
    14 <context>       <p>Converters must provide the standard ECom factory code
       
    15 to create an instance of the converter. For example,</p> <codeblock xml:space="preserve">CConverterBase2* CExampleConverter::NewL()
       
    16     {
       
    17     CConverterBase2* conv = new( ELeave ) CExampleConverter();
       
    18     return conv;
       
    19     }
       
    20 // Standard ECOM factory code
       
    21 const TImplementationProxy ImplementationTable[] =
       
    22     {    
       
    23     IMPLEMENTATION_PROXY_ENTRY( KExampleConvImplementationUid, CExampleConverter::NewL )
       
    24     };
       
    25 // Standard ECOM factory code
       
    26 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt&amp; aTableCount )
       
    27     {
       
    28     aTableCount = sizeof( ImplementationTable ) / sizeof( TImplementationProxy );
       
    29     return ImplementationTable;
       
    30     }
       
    31 </codeblock><p> For more details on ECom factory code, see <xref href="GUID-895A685E-83E8-51A3-A823-3A0E07B1E609.dita">Exporting the implementation
       
    32 factories</xref>.</p></context>
       
    33 </taskbody></task>