vpnengine/ikeutils/inc/vpnaddrinfo.h
changeset 0 33413c0669b9
child 10 68dc8923de26
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 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:  Utility for building internal address info.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VPNADDRINFO_H
       
    20 #define VPNADDRINFO_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CInternalAddress;
       
    26 class MIkeDebug;
       
    27 class TInetAddr;
       
    28 class TVPNAddress;
       
    29 
       
    30 /**
       
    31  *  VPN address info utility.
       
    32  *
       
    33  *  Utility class for building internal address info.
       
    34  *
       
    35  *  @lib internal (kmdserver.exe)
       
    36  */
       
    37 class VPNAddrInfo
       
    38     {
       
    39 public:    
       
    40 
       
    41     /**
       
    42      * Builds internal address info object.
       
    43      * @param aInternalAddr Internal address
       
    44      * @param aDnsServerAddr DNS server address
       
    45      * @param aVPNAddress Internal address info (returned)
       
    46      * @param aDebug Debug trace interface
       
    47      */
       
    48     EXPORT_C static void BuildVPNAddrInfo( const CInternalAddress* aInternalAddr,
       
    49                                            const TInetAddr& aDnsServerAddr,
       
    50                                            TVPNAddress& aVPNAddress,
       
    51                                            MIkeDebug& aDebug );        
       
    52     
       
    53     };
       
    54 
       
    55 
       
    56 #endif // VPNADDRINFO_H