mtptransports/mtpptpiptransport/filterapi/interface/mptpiphostfilter.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 
       
     2 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 // Provides an interface to implement a filter(that filters the incoming requests), by mentioning 
       
    16 // a basic behaviour any filter has to exhibit. There has to be a method to authenticate or validate
       
    17 // an incoming request.This can be done by examining the Host GUID, or also, by prompting the user
       
    18 // to accept or reject the request, by giving the user the details of connection request.
       
    19 // 
       
    20 //
       
    21 
       
    22 /**
       
    23  @publishedPartner
       
    24  @released
       
    25 */
       
    26 
       
    27 
       
    28 #ifndef MPTPIPHOSTFILTER_H_
       
    29 #define MPTPIPHOSTFILTER_H_
       
    30  
       
    31  #include <e32def.h>
       
    32  #include <e32cmn.h>
       
    33 
       
    34 
       
    35 class MPTPIPHostFilter
       
    36 {
       
    37    public:
       
    38     		
       
    39    			/*Examine the parameters ,from PTPIP Controller i.e.,Host GUID,Host Friendly Name 
       
    40    			& filter out the requests that cannot be authenticated.The User can also be prompted using 
       
    41    			a dialog box asking whether to accept or reject the request by giving the details of connection request
       
    42    			@param HostFriendly Name, Host GUID and iStatus of the Caller,i.e PTP/IP Controller
       
    43    			 */
       
    44    			virtual void Accept(const TDesC& aHostFriendlyName,TDesC8& aHostGUID,TRequestStatus& aStatus)=0;
       
    45 };
       
    46 
       
    47 #endif
       
    48