eapol/eapol_framework/eapol_symbian/eap_if/include/EapProcessInterface.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     1 /*
       
     2 * Copyright (c) 2001-2006 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 the License "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:  Wrapper class for instantiating an implementation of
       
    15 *                MWlanEapolInterface via ECom framework.
       
    16 *
       
    17 */
       
    18 
       
    19 /*
       
    20 * %version: 9 %
       
    21 */
       
    22 
       
    23 #ifndef EAP_PROCESS_INTERFACE_H
       
    24 #define EAP_PROCESS_INTERFACE_H
       
    25 
       
    26 #include <ecom/ecom.h>
       
    27 #include "abs_eap_am_tools.h"
       
    28 #include "EapSendInterface.h"
       
    29 
       
    30 //const TInt KCWlanEapolClientUid = 0x2000B05C;
       
    31 //const TInt KCWlanWapiClientUid = 0x200195A1;
       
    32 
       
    33 /**
       
    34  * @brief Class for instantiating an implementation of MWlanEapolInterface 
       
    35  *
       
    36  * @since S60 v3.2
       
    37  */
       
    38 class CEapProcessInterface: public CBase
       
    39     {
       
    40 
       
    41 public:
       
    42 
       
    43     /**
       
    44      * Static constructor.
       
    45      * @param aUid UID of implementation to instantiate.
       
    46      * @param aPartner Pointer to callback instance.
       
    47      * @return Pointer to the constructed instance.
       
    48      */
       
    49     inline static CEapProcessInterface* NewL(
       
    50         TInt aUid,
       
    51         MEapSendInterface* aPartner);
       
    52 
       
    53     /**
       
    54      * Destructor.
       
    55      */
       
    56     inline virtual ~CEapProcessInterface();
       
    57 
       
    58 
       
    59 		virtual TInt SetEnv(abs_eap_am_tools_c * const tools, const u32_t MTU) = 0;
       
    60 
       
    61     /**
       
    62       * Configure plugin implementation.
       
    63       *
       
    64       * @since S60 v3.2
       
    65       * @param aHeaderOffset Offset of EAP-header in packet_send.
       
    66       * @param aMTU Maximum transfer unit (MTU).
       
    67       * @param aTrailerLength Length of trailer needed by lower levels..
       
    68       * @return Return value is specified in interface specification.
       
    69       */
       
    70 	virtual TInt Configure(
       
    71 		const TInt aHeaderOffset,
       
    72 		const TInt aMTU,
       
    73 		const TInt aTrailerLength,
       
    74 		const void * const aConfigurationData,
       
    75 		const TInt aConfigurationDataLength
       
    76 		) = 0;
       
    77 
       
    78      /**
       
    79       * Shutdown plugin implementation.
       
    80       *
       
    81       * @since S60 v3.2
       
    82       * @return Return value is specified in interface specification.
       
    83       */        
       
    84      virtual TInt Shutdown() = 0;
       
    85 
       
    86      /**
       
    87       * Send data to EAPOL.
       
    88       *
       
    89       * @since S60 v3.2
       
    90       * @param aData Pointer to the data to be sent.
       
    91       * @param aLength Length of the data to be sent.
       
    92       * @return Return value is specified in interface specification.
       
    93       */
       
    94      virtual TInt ProcessData(
       
    95          const void * const aData, 
       
    96          const TInt aLength ) = 0;
       
    97 
       
    98   private: // data
       
    99 
       
   100      /**
       
   101       * Identifies the instance of an implementation created by
       
   102       * the ECOM framework.
       
   103       */
       
   104      TUid iInstanceIdentifier;
       
   105 
       
   106     };
       
   107 
       
   108 #include "EapProcessInterface.inl"
       
   109 
       
   110 #endif // EAP_PROCESS_INTERFACE_H