diff -r 8e6fa1719340 -r 4455192101e4 pushmtm/plugins/PushContentHandler/si_dict.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pushmtm/plugins/PushContentHandler/si_dict.c Mon Sep 13 17:13:53 2010 +0100 @@ -0,0 +1,225 @@ +/* +* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +/* +** WARNING +** +** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED +** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM +** +** This file generated on Fri Sep 26 19:53:43 2003 +** (coordinated universal time) +** +** Command line: dict_creator si.dict si_dict.c si_dict.h +*/ + +/* + * Dictionary = SI + * Public id = 5 + * Doc Type = -//WAPFORUM//DTD SI 1.0//EN + */ + +#include "si_dict.h" + + +static const NW_Ucs2 NW_SI_ElementTag_si[] = {'s','i','\0'}; +static const NW_Ucs2 NW_SI_ElementTag_indication[] = {'i','n','d','i','c','a','t','i','o','n','\0'}; +static const NW_Ucs2 NW_SI_ElementTag_info[] = {'i','n','f','o','\0'}; +static const NW_Ucs2 NW_SI_ElementTag_item[] = {'i','t','e','m','\0'}; + +/* +** WARNING +** +** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED +** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM +** +** This file generated on Fri Sep 26 19:53:43 2003 +** (coordinated universal time) +** +** Command line: dict_creator si.dict si_dict.c si_dict.h +*/ + +/* + * tag entries - sorted by token + */ +static const +NW_WBXML_DictEntry_t NW_SI_tag_token_0[4] = { + {0x05, (NW_String_UCS2Buff_t *) NW_SI_ElementTag_si}, + {0x06, (NW_String_UCS2Buff_t *) NW_SI_ElementTag_indication}, + {0x07, (NW_String_UCS2Buff_t *) NW_SI_ElementTag_info}, + {0x08, (NW_String_UCS2Buff_t *) NW_SI_ElementTag_item} +}; + +/* +** WARNING +** +** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED +** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM +** +** This file generated on Fri Sep 26 19:53:43 2003 +** (coordinated universal time) +** +** Command line: dict_creator si.dict si_dict.c si_dict.h +*/ + +/* + * tag entries - sorted by name + */ +static const +NW_Byte NW_SI_tag_name_0[4] = { + 1, + 2, + 3, + 0, +}; + +static const NW_Ucs2 NW_SI_AttributeTag_action_signal_none[] = {'a','c','t','i','o','n','=','s','i','g','n','a','l','-','n','o','n','e','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_action_signal_low[] = {'a','c','t','i','o','n','=','s','i','g','n','a','l','-','l','o','w','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_action_signal_medium[] = {'a','c','t','i','o','n','=','s','i','g','n','a','l','-','m','e','d','i','u','m','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_action_signal_high[] = {'a','c','t','i','o','n','=','s','i','g','n','a','l','-','h','i','g','h','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_action_delete[] = {'a','c','t','i','o','n','=','d','e','l','e','t','e','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_created[] = {'c','r','e','a','t','e','d','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_href[] = {'h','r','e','f','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_href_http___[] = {'h','r','e','f','=','h','t','t','p',':','/','/','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_href_http___www_[] = {'h','r','e','f','=','h','t','t','p',':','/','/','w','w','w','.','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_href_https___[] = {'h','r','e','f','=','h','t','t','p','s',':','/','/','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_href_https___www_[] = {'h','r','e','f','=','h','t','t','p','s',':','/','/','w','w','w','.','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_si_expires[] = {'s','i','-','e','x','p','i','r','e','s','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_si_id[] = {'s','i','-','i','d','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_class[] = {'c','l','a','s','s','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag_action[] = {'a','c','t','i','o','n','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag__com_[] = {'.','c','o','m','/','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag__edu_[] = {'.','e','d','u','/','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag__net_[] = {'.','n','e','t','/','\0'}; +static const NW_Ucs2 NW_SI_AttributeTag__org_[] = {'.','o','r','g','/','\0'}; + +/* +** WARNING +** +** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED +** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM +** +** This file generated on Fri Sep 26 19:53:43 2003 +** (coordinated universal time) +** +** Command line: dict_creator si.dict si_dict.c si_dict.h +*/ + +/* + * attribute entries - sorted by token + */ +static const +NW_WBXML_DictEntry_t NW_SI_attribute_token_0[19] = { + {0x05, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_action_signal_none}, + {0x06, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_action_signal_low}, + {0x07, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_action_signal_medium}, + {0x08, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_action_signal_high}, + {0x09, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_action_delete}, + {0x0a, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_created}, + {0x0b, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_href}, + {0x0c, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_href_http___}, + {0x0d, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_href_http___www_}, + {0x0e, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_href_https___}, + {0x0f, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_href_https___www_}, + {0x10, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_si_expires}, + {0x11, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_si_id}, + {0x12, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_class}, + {0x13, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag_action}, + {0x85, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag__com_}, + {0x86, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag__edu_}, + {0x87, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag__net_}, + {0x88, (NW_String_UCS2Buff_t *) NW_SI_AttributeTag__org_} +}; + +/* +** WARNING +** +** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED +** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM +** +** This file generated on Fri Sep 26 19:53:43 2003 +** (coordinated universal time) +** +** Command line: dict_creator si.dict si_dict.c si_dict.h +*/ + +/* + * attribute entries - sorted by name + */ +static const +NW_Byte NW_SI_attribute_name_0[19] = { + 15, + 16, + 17, + 18, + 14, + 4, + 3, + 1, + 2, + 0, + 13, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, +}; + +/* + * Tag codepage table + */ +static const +NW_WBXML_Codepage_t NW_SI_tag_codepages[1] = { + {4, (NW_WBXML_DictEntry_t*)&NW_SI_tag_token_0[0], (NW_Byte *)&NW_SI_tag_name_0[0]}, +}; + +/* + * Attribute codepage table + */ +static const +NW_WBXML_Codepage_t NW_SI_attribute_codepages[1] = { + {19, (NW_WBXML_DictEntry_t*)&NW_SI_attribute_token_0[0], (NW_Byte *)&NW_SI_attribute_name_0[0]}, +}; + +static const NW_Ucs2 NW_SI_docType[] = {'-','/','/','W','A','P','F','O','R','U','M','/','/','D','T','D',' ','S','I',' ','1','.','0','/','/','E','N','\0'}; + +/* + * Dictionary + */ +const NW_WBXML_Dictionary_t NW_SI_WBXMLDictionary = { + NW_SI_PublicId, + (NW_Ucs2 *)NW_SI_docType, + 1, (NW_WBXML_Codepage_t*)&NW_SI_tag_codepages[0], + 1, (NW_WBXML_Codepage_t*)&NW_SI_attribute_codepages[0], +}; + +/* +** WARNING +** +** DO NOT EDIT - THIS CODE IS AUTOMATICALLY GENERATED +** FROM A DATA FILE BY THE DICTIONARY CREATION PROGRAM +** +** This file generated on Fri Sep 26 19:53:43 2003 +** (coordinated universal time) +** +** Command line: dict_creator si.dict si_dict.c si_dict.h +*/