epoc32/include/wldtools.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // Define constants relevant to the compressed world database
    15 // 
    16 //
    17 
    18 
    19 
    20 /**
    21  @file
    22  @internalComponent
    23  @released 
    24 */
    25 
    26 #if !defined(__WLDTOOLS_H__)
    27 #define __WLDTOOLS_H__
    28 #include <e32std.h>
    29 
    30 const TInt KWldToolsMajorVersionNumber=1;
    31 const TInt KWldToolsMinorVersionNumber=1;
    32 const TInt KWldToolsBuildVersionNumber=26;
    33 //
    34 const TInt KUidDataFile=268435920; // 0x100001D0
    35 const TInt KUidWorldRomData=268435884; // 0x100001AC
    36 const TInt KUidWorldRomDataCompression1=268435885; // 0x100001AD
    37 const TInt KUidWorldRomDataFormat2=0x1000AF57;
    38 //
    39 const TInt KWldToolsSizeID=1;
    40 const TInt KWldToolsSizeOffset=2;
    41 const TInt KWldToolsSizeUids=16;
    42 const TInt KWldToolsSizeHeader=20;
    43 const TInt KWldToolsSizeNameLen=1;
    44 const TInt KWldToolsSizeIndexChar=2;
    45 const TInt KWldToolsSizeNibDialLen=1;
    46 const TInt KWldToolsSizeDescription=32;
    47 const TInt KWldToolsSizeBitCity=8; // sizeof(TBitPackableCityData)
    48 //
    49 const TInt KWldToolsSizeOfFixedWidthCityEntry_Format2=(2*KWldToolsSizeOffset)+KWldToolsSizeBitCity; // data structure is: offset-to-variable-width-city-entry, offset-to-fixed-width-country-entry, TBitPackableCityData-data-structure
    50 const TInt KWldToolsSizeOfFixedWidthCountryEntry_Format2=3*KWldToolsSizeOffset; // data structure is: offset-to-variable-width-country-entry, offset-to-fixed-width-city-entry-of-capital, ISO-code
    51 const TInt KWldToolsOffsetToCities_Format2=8; // this replaces KWldToolsOffCityIndex - the data structure is: number-of-cities (2-bytes), all-the-fixed-width-city-entries-in-order
    52 const TInt KWldToolsOffsetToCountries_Format2=10; // this replaces KWldToolsOffCountryIndex - the data structure is: number-of-countries (2-bytes), all-the-fixed-width-country-entries-in-order
    53 //
    54 const TInt KWldToolsOffHeader=KWldToolsSizeUids;
    55 const TInt KWldToolsOffDescrip=KWldToolsOffHeader+KWldToolsSizeHeader;
    56 //
    57 const TInt KWldToolsOffReleaseId=0;
    58 const TInt KWldToolsOffDaysOffset=2;
    59 const TInt KWldToolsOffSpare1=4; // set to 1
    60 const TInt KWldToolsOffReleaseVersion=5;
    61 const TInt KWldToolsOffDescription=6;
    62 const TInt KWldToolsOffCityIndex=8; // superseded in format 2 by KWldToolsOffsetToCities_Format2
    63 const TInt KWldToolsOffCountryIndex=10; // superseded in format 2 by KWldToolsOffsetToCountries_Format2
    64 const TInt KWldToolsOffSpare2=12; // set to 0
    65 const TInt KWldToolsOffLanguageId=13;
    66 const TInt KWldToolsOffDefaultCity=14;
    67 const TInt KWldToolsOffDefaultCountry=16;
    68 const TInt KWldToolsOffDefaultAltCity=18;
    69 //
    70 const TInt KWldToolsDialSpacer=10;
    71 const TInt KWldToolsDialPause=11;
    72 const TInt KWldToolsDialSeparator=12;
    73 const TInt KWldToolsDialUnknown=13;
    74 const TInt KWldToolsCharLastIndex=0xffff;
    75 //
    76 const TInt KWldToolsMaxLat=90*60;
    77 const TInt KWldToolsMaxLong=180*60;
    78 const TInt KWldToolsMaxGmt=780;
    79 const TInt KWldToolsMaxMapX=640;
    80 const TInt KWldToolsMaxMapY=240;
    81 //
    82 enum TWldToolsDstZoneIndex
    83 	{
    84 	EWldToolsDstIndexNone,
    85 	EWldToolsDstIndexEurope,
    86 	EWldToolsDstIndexNorth,
    87 	EWldToolsDstIndexSouth,
    88 	EWldToolsDstIndexLast
    89 	};
    90 //
    91 enum TCityDataBitsSize 
    92 	{
    93 	ECityDataBitsLat=14,		// signed
    94 	ECityDataBitsX=10,			// unsigned
    95 	ECityDataBitsY=8,			// unsigned
    96 	ECityDataBitsLong=15,		// signed
    97 	ECityDataBitsGmt=11,		// signed
    98 	ECityDataBitsDst=3,			// unsigned
    99 	ECityDataBitsSpare=3,		
   100 	ECityDataBitsTotal=64 // Must be a multiple of 8
   101 	};
   102 
   103 #endif