eapol/eapol_framework/eapol_symbian/eap_server/include/EapSession.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-2010 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:  EAP-session inside the EAP-server.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 15 %
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef EAPSESSION_H_
       
    24 #define EAPSESSION_H_
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <e32svr.h>
       
    28 #include <ecom/implementationinformation.h>
       
    29 #include <ecom/ecom.h>
       
    30 #include "AbsEapProcessSendInterface.h"
       
    31 
       
    32 
       
    33 class CEapServer;
       
    34 class CEapServerProcessHandler;
       
    35 class EapMessageBuffer;
       
    36 
       
    37 class CEapSession
       
    38 : public CSession2
       
    39 , public AbsEapProcessSendInterface
       
    40     {
       
    41 
       
    42 public:
       
    43 
       
    44     CEapSession();
       
    45 
       
    46     void ConstructL(CEapServer& aServer, abs_eap_am_tools_c * const tools);
       
    47 
       
    48     virtual ~CEapSession();
       
    49 
       
    50     // service dispatcher - from CSession2
       
    51     void ServiceL(const RMessage2& aMessage);
       
    52 
       
    53     void ReceiveAll();
       
    54 
       
    55     void Receive(RMessage2& aBuffer);
       
    56 
       
    57     void CancelReceive();
       
    58 
       
    59     eap_status_e SendData(EapMessageBuffer * const message);
       
    60 
       
    61 	TBool GetReceiveActive();
       
    62 
       
    63  private:
       
    64 
       
    65     CEapServer* Server() const;
       
    66 
       
    67 	void CheckCapabilityL(
       
    68 		const RMessage2& aMessage,
       
    69 		const TBool aMustHaveCapabilityWhenTrue,
       
    70 		const TCapability aCapability,
       
    71 		const char *aDiagnostic);
       
    72 
       
    73     // receive support
       
    74     TBool iReceiveActive;
       
    75 
       
    76     RMessage2 iReceiveMessage;
       
    77 
       
    78     CEapServerProcessHandler* iEapProcessHandler;
       
    79 
       
    80     TRequestStatus iStatus;
       
    81 
       
    82     abs_eap_am_tools_c * iTools;
       
    83     };
       
    84 
       
    85 #endif /* EAPSESSION_H_ */