vpnengine/vpnmanager/inc/vpnmanagerserverdefs.h
changeset 0 33413c0669b9
child 22 9f4e37332ce5
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2000-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 "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: 
       
    15 * Server component for VPN (Ext) Manager, used by VPN (Ext) API. 
       
    16 * VPN Ext API uses the definition, but provides its own implementation.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef __VPNMANAGERDEFS_H__
       
    23 #define __VPNMANAGERDEFS_H__
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 static const TUid KVpnManagerUid3 = {0x101F7993};
       
    28 
       
    29 _LIT(KVpnManagerFile, "vpnmanager");
       
    30 
       
    31 _LIT(KVpnManagerServer, "!VpnManagerServer");
       
    32 
       
    33 // The server version. A version must be specified when 
       
    34 // creating a session with the server
       
    35 const TUint KVpnManagerMajorVersionNumber = 0;
       
    36 const TUint KVpnManagerMinorVersionNumber = 1;
       
    37 const TUint KVpnManagerBuildVersionNumber = 1;
       
    38 
       
    39 // Opcodes used in message passing between client and server
       
    40 enum TVpnApiRequest
       
    41 	{
       
    42     EVpnImportPolicy = 1000, // To *not* conflict with VPN Connection API opcodes
       
    43     EVpnCancelImport,
       
    44     EVpnEnumeratePolicies,
       
    45     EVpnGetPolicyInfo,
       
    46     EVpnGetPolicyDetails,
       
    47     EVpnDeletePolicy,
       
    48     EVpnChangePassword,
       
    49     EVpnCancelChange,
       
    50     EVpnGetPolicySize,
       
    51     EVpnGetPolicyData,
       
    52     // New ones (to facilitate
       
    53     // OMA DM based policy management)
       
    54     EVpnAddPolicy,
       
    55     EVpnUpdatePolicyDetails,
       
    56     EVpnUpdatePolicyData
       
    57     };
       
    58 
       
    59 // Panic codes
       
    60 enum TVpnManagerPanic
       
    61     {
       
    62     ECreateTrapCleanup = 1,
       
    63     ECreateServer,
       
    64     EBadDescriptor,
       
    65     EBadRequest,
       
    66     EInvalidImportState
       
    67     };
       
    68 
       
    69 #endif // __VPNMANAGERDEFS_H__