extras/converter/Ui/Src/Converter.rh
branchRCL_3
changeset 15 2d0f9ab0ba18
parent 12 ddecbce3dc1f
child 16 82ca176301de
equal deleted inserted replaced
12:ddecbce3dc1f 15:2d0f9ab0ba18
     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 *     Defines resource structures for unit data storage.
       
    16 *     The file can be included in a resource file only.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef __CONVERTER_RH__
       
    23 #define __CONVERTER_RH__
       
    24 
       
    25 STRUCT CNV_MODEL
       
    26 	{
       
    27 	WORD modelVersion = 0;			// version number of this model 
       
    28 	WORD currencycategory = 0;		// id of the currency category
       
    29 	STRUCT categories[];			// CNV_CATEGORY array
       
    30 	}
       
    31 
       
    32 STRUCT CNV_CATEGORY
       
    33 	{
       
    34 	LTEXT name;				// textual name of this category
       
    35 	BYTE ischineseorder = 0;// is order of src/dest default or chinese special	
       
    36 	BYTE baseunit = 0;		// id of base unit (on which all unit factors are based)
       
    37 	BYTE unit1 = 0;			// id of default source unit (for conversion)
       
    38 	BYTE unit2 = 0;			// id of default destination unit (for conversion)
       
    39 	BYTE istemperature = 0;	// is this category temperatures (1 if yes) ?
       
    40 	STRUCT units[];			// CNV_UNIT array
       
    41 	}
       
    42 
       
    43 STRUCT CNV_UNIT
       
    44 	{
       
    45 	LTEXT name;				// textual name of this unit
       
    46 	DOUBLE factor = 0.0;	// factor for conversion (all units)
       
    47 	WORD id;				// id of the unit
       
    48 	}
       
    49 
       
    50 STRUCT CNV_UNIT_CURRENCY
       
    51 	{
       
    52 	LTEXT name;				// textual name of this unit
       
    53 	DOUBLE factor = 0.0;	// factor for conversion (all units)
       
    54 	WORD id;				// id of the unit
       
    55 	BYTE type = 0;	
       
    56 	}
       
    57 	
       
    58 STRUCT CNV_UNIT_TEMPERATURE
       
    59 	{
       
    60 	LTEXT name;				// textual name of this unit
       
    61 	DOUBLE factor = 0.0;	// factor for conversion (all units)
       
    62 	WORD id;
       
    63 	DOUBLE offset = 0.0;	// offset for conversion (temperature units)
       
    64 	DOUBLE min = 0.0;		// minimum acceptable value (all units)
       
    65 	}
       
    66 
       
    67 #endif	// __CONVERTER_RH__