Symbian3/PDK/Source/GUID-7CFE584D-B605-5A3E-9294-84A28003000B.dita
changeset 1 25a17d01db0c
child 3 46218c8b8afa
equal deleted inserted replaced
0:89d6a7a84779 1:25a17d01db0c
       
     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 xml:lang="en" id="GUID-7CFE584D-B605-5A3E-9294-84A28003000B"><title>Implementing a Filter</title><prolog><metadata><keywords/></metadata></prolog><conbody><p>A Filter authenticates incoming requests. It is an ECOM plug-in loaded by the PTP-IP Controller process. This section describes how to implement a Filter. </p> <section><title>Procedure</title> <ol id="GUID-220811B8-5875-57F1-BA13-5AD5A9D5F1EE"><li id="GUID-2451B847-E41F-54D9-99D5-CF9D31BD94EF"><p>implement the <codeph>MPTPIPHostFilter::Accept()</codeph> function. </p> <p>The filter examines the parameters such as <b>Host GUID</b> and <b>Host Friendly Name</b> from PTP-IP Controller process to filter the requests. </p> <codeblock id="GUID-40E8954E-956F-579A-8203-151B71F66430" xml:space="preserve">void Accept ( 
       
    13                   const TDesC&amp; aHostFriendlyName,
       
    14                   TDesC8&amp; aHostGUID,
       
    15                   TRequestStatus&amp; aStatus);</codeblock> <p>You must include the <filepath>ptpipfilterapi.lib</filepath> and <filepath>cptpiphostfilter.h</filepath> files. </p> <p> <b>Note</b>: A filter can also be used to invoke a dialog box to accept or reject an incoming request. </p> </li> </ol> </section> </conbody><related-links><link href="GUID-2D872656-7FD3-56D2-B084-8CC84E8453A4.dita"><linktext>MTP over
       
    16                 PTP-IP Overview</linktext> </link> <link href="GUID-143DAD71-9BCA-52D3-8BC8-AE80DBF05636.dita"><linktext>Using PTP-IP
       
    17                 Controller</linktext> </link> <link href="GUID-24CF2B94-5F10-57D9-B0D4-E56A80266595.dita"><linktext>Implementing a Listener</linktext> </link> </related-links></concept>