networksecurity/ipsec/ipsecpol/inc/ipsecpolmanserver.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // IPSecPolicyManServer.h - IPSec Policy Manager Server main module
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @internalComponent
       
    21 */
       
    22 #ifndef __IPSECPOLICYMANSERVER_H__
       
    23 #define __IPSECPOLICYMANSERVER_H__
       
    24 #include <e32base.h>
       
    25 #include "ipsecpolmansession.h"
       
    26 
       
    27 
       
    28 class CIPSecPolicyManagerHandler;
       
    29 
       
    30 
       
    31 //
       
    32 //
       
    33 //
       
    34 class CIPSecPolicyManagerSession;
       
    35 class CIPSecPolicyManagerHandler;
       
    36 
       
    37 class CIPSecPolicyManagerServer:public CPolicyServer
       
    38 
       
    39     {
       
    40     public:
       
    41         static CIPSecPolicyManagerServer* NewL(void);
       
    42         static CIPSecPolicyManagerServer* NewLC(void);
       
    43         ~CIPSecPolicyManagerServer(void);
       
    44         CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& ) const;
       
    45         TInt RunError(TInt aError);
       
    46     private:
       
    47         CIPSecPolicyManagerServer(void);
       
    48     private:
       
    49         
       
    50         
       
    51         static const TUint ipsecRangeCount;
       
    52         static const CPolicyServer::TPolicyElement ipsecElements[];
       
    53         static const TInt ipsecRanges[];
       
    54         static const TUint8 elementIndex[];
       
    55         static const CPolicyServer::TPolicy ipsecPolicy;
       
    56         
       
    57         
       
    58     public:     
       
    59         void StopIPSecPolicyManagerServer(void);
       
    60         TInt            iSessionCount;
       
    61         CIPSecPolicyManagerHandler* iIPSecPolicyManagerHandler;
       
    62         
       
    63         
       
    64         CIPSecPolicyManagerSession* testing;
       
    65     };
       
    66 #endif