vpnengine/kmdserver/inc/ikepluginif.h
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2008 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:  IKE protocol plugin interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_IKEPLUGINIF_H
       
    20 #define M_IKEPLUGINIF_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class MIkeDataInterface;
       
    26 class MIkeDebug;
       
    27 class MIkePluginSessionIf;
       
    28 class MKmdEventLoggerIf;
       
    29 
       
    30 /**
       
    31  *  IKE protocol plugin interface.
       
    32  *
       
    33  *  IKE protocol plugin interface provides functionality for creating IKE
       
    34  *  protocol plugin sessions.
       
    35  *
       
    36  *  @lib internal (kmdserver.exe)
       
    37  */
       
    38 class MIkePluginIf
       
    39     {        
       
    40 public:    
       
    41 
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45     virtual ~MIkePluginIf() {};
       
    46     
       
    47     /**
       
    48      * Creates IKE protocol plugin session.
       
    49      * @param aVpnIapId VPN IAP id
       
    50      * @param aVpnNetId VPN NET id
       
    51      * @param aVpnInterfaceIndex VPN interface index
       
    52      * @param aDataInterface IKE data interface
       
    53      * @return IKE protocol plugin session interface. Ownership transferred.
       
    54      */
       
    55     virtual MIkePluginSessionIf* CreateSessionL( TUint32 aVpnIapId,
       
    56                                                  TUint32 aVpnNetId,
       
    57                                                  TUint32 aVpnInterfaceIndex,
       
    58                                                  MIkeDataInterface& aIkeDataInterface ) = 0;    
       
    59     };
       
    60 
       
    61 
       
    62 /**
       
    63  * Method prototype to create new protocol plugin
       
    64  */
       
    65 typedef MIkePluginIf* (*CreateIkePluginL)(MKmdEventLoggerIf&, MIkeDebug&);
       
    66 
       
    67 #endif // M_IKEPLUGINIF_H