|
1 /* |
|
2 * Copyright (c) 2005 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 * This file defines the struct which is used to predefine global landmark |
|
16 * categories. The file can be included only in resource file. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDES |
|
22 #include <EPos_LmCatDef.hrh> |
|
23 |
|
24 // STRUCTURE DEFINITIONS |
|
25 |
|
26 // --------------------------------------------------------- |
|
27 // POS_LM_CATEGORY_SPECIFICATION |
|
28 // Struct for declaring a set of predefined landmark |
|
29 // categories |
|
30 // --------------------------------------------------------- |
|
31 // |
|
32 |
|
33 STRUCT POS_LM_CATEGORY_SPECIFICATION |
|
34 { |
|
35 LEN BYTE LTEXT icon_files[]; |
|
36 STRUCT categories[]; |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------- |
|
40 // POS_LM_CATEGORY_INFO |
|
41 // Struct for defining attributes for a global landmark |
|
42 // category |
|
43 // --------------------------------------------------------- |
|
44 // |
|
45 STRUCT POS_LM_CATEGORY_INFO |
|
46 { |
|
47 LONG category_id; // The global landmark category ID |
|
48 LTEXT category_name; // The name of the category |
|
49 |
|
50 LONG icon_index = KPosLMCategoryNoIcon; |
|
51 // The index of the icon in the icon file. |
|
52 // If set to -1 or lower then no icon information is set. |
|
53 // In this case icon mask will be set to -1. |
|
54 // In this case icon file name will not be set. |
|
55 |
|
56 LONG icon_mask_index = KPosLMCategoryNoMask; |
|
57 // The index of the icon mask in the |
|
58 // icon file. |
|
59 // If set to -1 or lower then no icon mask index will be set. |
|
60 |
|
61 BYTE icon_file_index = 0; |
|
62 // The index of the icon_files, as declared in the |
|
63 // POS_LM_CATEGORY_SPECIFICATION icon_files list. |
|
64 } |
|
65 |
|
66 // End of File |