IMPSengine/wvotaparser/inc/wvsettingsdef.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     Definitions of wbxml message tokens 
       
    16 *     for the WirelessVillage OTA settings parser.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef WvSettingsDef_H
       
    22 #define WvSettingsDef_H
       
    23 
       
    24 #include <e32def.h>
       
    25 #include <e32std.h>
       
    26 
       
    27 // *********      GENERAL WBXML TOKENS       *********
       
    28 // WBXML global tokens - applicable to all messages
       
    29 // See WAP Binary XML Content Format, 16-Jun-99, p16.  
       
    30 // These and our message specific tokens define our DTD
       
    31 
       
    32 #define KWV_STR_TERM				0x00	// Basically the NULL terminator character for a string
       
    33 #define KWV_END_TAG					0x01    // Code for the end of an element
       
    34 #define KWV_STR_I					0x03    // indicates the start of an inline string,
       
    35 											// terminated by '\0', OR STR_TERM
       
    36 #define KWV_TAG_CONTENT				0x40	// Bit 6 of the tag is set when a element has content
       
    37 #define KWV_TAG_ATTRIBUTES			0x80	// Bit 7 of tag is set when the element has attributes
       
    38 #define KWV_TAG_ATTRIBUTES_CONTENT	0xc0	// Bits 6 & 7 are set - attributes and content
       
    39 
       
    40 // **********    PARSER SPECIFIC CODE LEVEL TAG TOKENS    **********
       
    41 // WBXML tokens defined in Over The Air Settings Specification
       
    42 // version 7.x
       
    43 #define K_WVCOMMON					0x05 
       
    44 #define K_WVHTTP					0x06 
       
    45 #define K_WVOTAVERSION				0x07 
       
    46 #define K_WVPASSWORD				0x08 
       
    47 #define K_WVPREFERREDPROTOCOL		0x09 
       
    48 #define K_WVPROXY					0x0a 
       
    49 #define K_WVPROXYADDRESS			0x0b 
       
    50 #define K_WVPROXYPASSWORD			0x0c 
       
    51 #define K_WVPROXYPORT				0x0d 
       
    52 #define K_WVPROXYUSER				0x0e 
       
    53 #define K_WVREFNAME					0x0f 
       
    54 #define K_WVSAPFOURWAYSUPPORTED		0x10 
       
    55 #define K_WVSAPMOBILENUMBER			0x11 
       
    56 #define K_WVSAPURI					0x12 
       
    57 #define K_WVSETTINGS				0x13 
       
    58 #define K_WVSETTINGSNAME			0x14 
       
    59 #define K_WVSMS						0x15 
       
    60 #define K_WVSMSMOBILENUMBER			0x16 
       
    61 #define K_WVSUPPORTEDVERSION		0x17 
       
    62 #define K_WVUSERID					0x18 
       
    63 
       
    64 
       
    65 // Labels for use in xml element creation
       
    66 _LIT(KWVCommon, "WVCommon");
       
    67 _LIT(KWVHTTP, "WVHTTP");
       
    68 _LIT(KWVOTAVersion, "WVOTAVersion");
       
    69 _LIT(KWVPassword, "WVPassword");
       
    70 _LIT(KWVPreferredProtocol, "WVPreferredProtocol");
       
    71 _LIT(KWVProxy, "WVProxy");
       
    72 _LIT(KWVProxyAddress, "WVProxyAddress");
       
    73 _LIT(KWVProxyPassword, "WVProxyPassword");
       
    74 _LIT(KWVProxyPort, "WVProxyPort");
       
    75 _LIT(KWVProxyUser, "WVProxyUser");
       
    76 _LIT(KWVRefName, "WVRefName");
       
    77 _LIT(KWVSAPFourWaySupported, "WVSAPFourWaySupported");
       
    78 _LIT(KWVSAPMobileNumber, "WVSAPMobileNumber");
       
    79 _LIT(KWVSAPURI, "WVSAPURI");
       
    80 _LIT(KWVSettings, "WVSettings");
       
    81 _LIT(KWVSettingsName, "WVSettingsName");
       
    82 _LIT(KWVSMS, "WVSMS");
       
    83 _LIT(KWVSMSCMobileNumber, "WVSMSCMobileNumber");
       
    84 _LIT(KWVSupportedVersion, "WVSupportedVersion");
       
    85 _LIT(KWVUserID, "WVUserID");
       
    86 
       
    87 
       
    88 #endif