epoc32/include/wldtools.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/wldtools.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,103 @@
     1.4 +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// Define constants relevant to the compressed world database
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +
    1.22 +
    1.23 +/**
    1.24 + @file
    1.25 + @internalComponent
    1.26 + @released 
    1.27 +*/
    1.28 +
    1.29 +#if !defined(__WLDTOOLS_H__)
    1.30 +#define __WLDTOOLS_H__
    1.31 +#include <e32std.h>
    1.32 +
    1.33 +const TInt KWldToolsMajorVersionNumber=1;
    1.34 +const TInt KWldToolsMinorVersionNumber=1;
    1.35 +const TInt KWldToolsBuildVersionNumber=26;
    1.36 +//
    1.37 +const TInt KUidDataFile=268435920; // 0x100001D0
    1.38 +const TInt KUidWorldRomData=268435884; // 0x100001AC
    1.39 +const TInt KUidWorldRomDataCompression1=268435885; // 0x100001AD
    1.40 +const TInt KUidWorldRomDataFormat2=0x1000AF57;
    1.41 +//
    1.42 +const TInt KWldToolsSizeID=1;
    1.43 +const TInt KWldToolsSizeOffset=2;
    1.44 +const TInt KWldToolsSizeUids=16;
    1.45 +const TInt KWldToolsSizeHeader=20;
    1.46 +const TInt KWldToolsSizeNameLen=1;
    1.47 +const TInt KWldToolsSizeIndexChar=2;
    1.48 +const TInt KWldToolsSizeNibDialLen=1;
    1.49 +const TInt KWldToolsSizeDescription=32;
    1.50 +const TInt KWldToolsSizeBitCity=8; // sizeof(TBitPackableCityData)
    1.51 +//
    1.52 +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
    1.53 +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
    1.54 +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
    1.55 +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
    1.56 +//
    1.57 +const TInt KWldToolsOffHeader=KWldToolsSizeUids;
    1.58 +const TInt KWldToolsOffDescrip=KWldToolsOffHeader+KWldToolsSizeHeader;
    1.59 +//
    1.60 +const TInt KWldToolsOffReleaseId=0;
    1.61 +const TInt KWldToolsOffDaysOffset=2;
    1.62 +const TInt KWldToolsOffSpare1=4; // set to 1
    1.63 +const TInt KWldToolsOffReleaseVersion=5;
    1.64 +const TInt KWldToolsOffDescription=6;
    1.65 +const TInt KWldToolsOffCityIndex=8; // superseded in format 2 by KWldToolsOffsetToCities_Format2
    1.66 +const TInt KWldToolsOffCountryIndex=10; // superseded in format 2 by KWldToolsOffsetToCountries_Format2
    1.67 +const TInt KWldToolsOffSpare2=12; // set to 0
    1.68 +const TInt KWldToolsOffLanguageId=13;
    1.69 +const TInt KWldToolsOffDefaultCity=14;
    1.70 +const TInt KWldToolsOffDefaultCountry=16;
    1.71 +const TInt KWldToolsOffDefaultAltCity=18;
    1.72 +//
    1.73 +const TInt KWldToolsDialSpacer=10;
    1.74 +const TInt KWldToolsDialPause=11;
    1.75 +const TInt KWldToolsDialSeparator=12;
    1.76 +const TInt KWldToolsDialUnknown=13;
    1.77 +const TInt KWldToolsCharLastIndex=0xffff;
    1.78 +//
    1.79 +const TInt KWldToolsMaxLat=90*60;
    1.80 +const TInt KWldToolsMaxLong=180*60;
    1.81 +const TInt KWldToolsMaxGmt=780;
    1.82 +const TInt KWldToolsMaxMapX=640;
    1.83 +const TInt KWldToolsMaxMapY=240;
    1.84 +//
    1.85 +enum TWldToolsDstZoneIndex
    1.86 +	{
    1.87 +	EWldToolsDstIndexNone,
    1.88 +	EWldToolsDstIndexEurope,
    1.89 +	EWldToolsDstIndexNorth,
    1.90 +	EWldToolsDstIndexSouth,
    1.91 +	EWldToolsDstIndexLast
    1.92 +	};
    1.93 +//
    1.94 +enum TCityDataBitsSize 
    1.95 +	{
    1.96 +	ECityDataBitsLat=14,		// signed
    1.97 +	ECityDataBitsX=10,			// unsigned
    1.98 +	ECityDataBitsY=8,			// unsigned
    1.99 +	ECityDataBitsLong=15,		// signed
   1.100 +	ECityDataBitsGmt=11,		// signed
   1.101 +	ECityDataBitsDst=3,			// unsigned
   1.102 +	ECityDataBitsSpare=3,		
   1.103 +	ECityDataBitsTotal=64 // Must be a multiple of 8
   1.104 +	};
   1.105 +
   1.106 +#endif