Symbian3/PDK/Source/GUID-7CFE584D-B605-5A3E-9294-84A28003000B.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Tue, 30 Mar 2010 11:56:28 +0100
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
child 14 578be2adaf3e
permissions -rw-r--r--
Week 12 contribution of PDK documentation_content. See release notes for details. Fixes Bug 2054, Bug 1583, Bug 381, Bug 390, Bug 463, Bug 1897, Bug 344, Bug 1319, Bug 394, Bug 1520, Bug 1522, Bug 1892"

<?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 concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<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 ( 
                  const TDesC&amp; aHostFriendlyName,
                  TDesC8&amp; aHostGUID,
                  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
                PTP-IP Overview</linktext> </link> <link href="GUID-143DAD71-9BCA-52D3-8BC8-AE80DBF05636.dita"><linktext>Using PTP-IP
                Controller</linktext> </link> <link href="GUID-24CF2B94-5F10-57D9-B0D4-E56A80266595.dita"><linktext>Implementing a Listener</linktext> </link> </related-links></concept>