gba/inc/GbaCommon.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2007 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:  GBA Common definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GBACOMMON_H
       
    20 #define GBACOMMON_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 _LIT8( KHTTPFilterGBAName, "GBA2");
       
    25 _LIT(KGbaServerName,"gbaserver2");
       
    26 _LIT8(KHTTPTag,"http://");
       
    27 _LIT8(KHTTPSTag,"https://");
       
    28 
       
    29 //the server version. A version must be specified when 
       
    30 //creating a session with the server
       
    31 const TUint KGbaServMajorVersionNumber=0;
       
    32 const TUint KGbaServMinorVersionNumber=1;
       
    33 const TUint KGbaServBuildVersionNumber=1;
       
    34 
       
    35 // Dictionary store UID for GBA ini
       
    36 const TUid KGbaIniUid = { 0x00001 };
       
    37 const TUid KGbaBSFConfiguration = { 0x00002 };
       
    38 
       
    39 // Dictionary store UID for GBA credentials
       
    40 // IMPI, Ks, Rand, B-TID, key lifetime
       
    41 const TUid KUidGBACredRoot = { 0x00001 };
       
    42 const TUid KUidIMPI = { 0x00002 };
       
    43 const TUid KUidKs = { 0x00003 };
       
    44 const TUid KUidRand = { 0x00004 };
       
    45 const TUid KUidBTID = { 0x00005 };
       
    46 const TUid KUidkeylifetime = { 0x00006 };
       
    47 const TUid KUidGBARunType = { 0x00007 };
       
    48 const TUid KUidGBAUAvail = { 0x00008 };
       
    49 
       
    50 //opcodes used in message passing between client and server
       
    51 enum TGbaServRqst
       
    52     { 
       
    53     EGbaServRequestBootstrap,
       
    54     EGbaServCancelRequestBootstrap,
       
    55     EGbaServQueryOption,
       
    56     EGbaServWriteOption,
       
    57     EGbaServIsGBAUSupported,
       
    58     };
       
    59 
       
    60 #endif // GBACOMMON_H
       
    61 
       
    62 //EOF