Symbian3/SDK/Source/GUID-7F4692A0-1801-5D91-8F28-06075AC45DE2.dita
changeset 0 89d6a7a84779
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Symbian3/SDK/Source/GUID-7F4692A0-1801-5D91-8F28-06075AC45DE2.dita	Thu Jan 21 18:18:20 2010 +0000
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
+<!-- This component and the accompanying materials are made available under the terms of the License 
+"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: 
+-->
+<!DOCTYPE task
+  PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
+<task id="GUID-7F4692A0-1801-5D91-8F28-06075AC45DE2" xml:lang="en"><title>Filtering
+Implementations by Vendor ID </title><shortdesc>The Plug-in framework clients can be restricted to use plug-ins
+supplied by a particular company. This enables to enhance security and improve
+functionality of the framework. </shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody>
+<context><p>Platform security provides a mechanism to mark the plug-ins with
+a vendor identifier by using the <codeph>vendorid</codeph> keyword in the <xref href="GUID-641A276D-F618-50CE-BA5A-658DCC26BAB5.dita">project file</xref>. This
+information is used for plug-in selection. </p><p>To filter implementations
+by vendor id there is no need to use the <codeph>TEComResolverParams</codeph> object.
+Instead, follow the steps described below: </p> </context>
+<steps id="GUID-C7923C51-397D-5E3B-B47C-F19AD21743FF">
+<step id="GUID-7E2CAE34-C937-50E7-BA83-44CB02E95A1A"><cmd/>
+<info>Retrieve the list of available implementations of an interface using <xref href="GUID-1344F049-81C4-3D17-AF46-8B5584680ADB.dita#GUID-1344F049-81C4-3D17-AF46-8B5584680ADB/GUID-AE9D4F24-8554-3151-AAF3-D63F400821C4"><apiname>REComSession::ListImplementationsL()</apiname></xref>. </info>
+</step>
+<step id="GUID-82D683A5-7BE6-5E4D-9686-30869F71E617"><cmd/>
+<info>Retrieve the vendor ID of the implementation, using <xref href="GUID-3107B19B-0607-3E9E-AEA5-BAD07EEC59D0.dita#GUID-3107B19B-0607-3E9E-AEA5-BAD07EEC59D0/GUID-372E7F18-EAA3-3B85-950D-72E3C09072C8"><apiname>      
+          CImplementationInformation::VendorId()</apiname></xref>. </info>
+<info>If the matching vendor ID is returned, use the plug-in as required. </info>
+</step>
+</steps>
+<example id="GUID-F6140DF5-515F-5C42-B905-E8BC64380410"><title>Filtering implementations
+by vendor ID example</title> <codeblock id="GUID-21D942BD-CDC5-5976-A760-2607A1D88F7F" xml:space="preserve">// Specify interface for which to get implementations
+TUid interfaceUid={0111111111};
+RImplInfoPtrArray implArray;
+// get list of implementations into the array
+REComSession::ListImplementationsL(interfaceUid, implArray);
+
+// loop through implementations
+TInt implCount = implArray.Count();
+for(TInt count = 0; count &lt; implCount; count++)
+  {
+  // read vendor ID
+  const CImplementationInformation* implInfo = implArray[count];
+  TVendorId vid = implInfo-&gt;VendorId();
+
+   . . .
+
+  }
+
+   . . .
+
+implArray.ResetAndDestroy();
+REComSession::FinalClose();</codeblock> </example>
+</taskbody></task>
\ No newline at end of file