|
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 concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-7B4A78D8-64BB-550E-ABC0-255312351215" xml:lang="en"><title>InterfaceClient |
|
13 ECom Interface Client Example Code</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <section id="GUID-C1DBC0DD-E097-5052-80F9-F95E1CEE7E8E"><title>Download</title> <p>Click |
|
15 on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-4d91db5b-1dd7-43ba-9ce8-1c2a1f08a120.zip" scope="external">Ecom.zip</xref></p>Download some additional files required |
|
16 by the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-89fa6105-e749-4e5f-a233-a000e3b9390b.zip" scope="external">CommonFramework</xref><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-4d91db5b-1dd7-43ba-9ce8-1c2a1f08a120.html" scope="peer">browse</xref> to view the example code. </p>View the additional |
|
17 files: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-89fa6105-e749-4e5f-a233-a000e3b9390b.html" scope="peer">browse</xref>. </section> |
|
18 <section><title>Description</title> <p> <filepath>InterfaceClient</filepath> is |
|
19 a simple client program that exercises the interface and implementations provided |
|
20 by the <filepath>InterfaceDefinition</filepath> and <filepath>InterfaceImplementation</filepath> examples |
|
21 respectively. </p> <p>Its single class, <codeph>TInterfaceClient</codeph>, |
|
22 defines three functions: </p> <ul> |
|
23 <li id="GUID-CAD57044-B5C4-5B75-AF5E-AB3F0C5350DF"><p> <codeph>GetDefaultL()</codeph>, |
|
24 which gets the default implementation of the <codeph>CExampleInterface</codeph> interface </p> </li> |
|
25 <li id="GUID-DB392DB8-A876-54BD-9465-72B4A67592B0"><p> <codeph>GetBySpecificationL()</codeph>, |
|
26 which requests an implementation of the <codeph>CExampleInterface</codeph> interface |
|
27 with a specific types of capability </p> </li> |
|
28 <li id="GUID-36879D14-D2ED-5827-BD1B-B82CB9A9F0A2"><p> <codeph>GetByDiscoveryL()</codeph>, |
|
29 which gets all the implementations on the system of the <codeph>CExampleInterface</codeph> interface </p> </li> |
|
30 </ul> </section> |
|
31 <section><title>Usage</title> <p> <filepath>InterfaceClient</filepath> is |
|
32 a console program (<filepath>.exe</filepath>). It does not require any user |
|
33 input. </p> </section> |
|
34 </conbody></concept> |