|
1 /* |
|
2 * Copyright (c) 2004-2008 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: Private resource headers for project AVKON. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <AknPriv.hrh> |
|
20 #include <akntouchpane.hrh> |
|
21 |
|
22 |
|
23 STRUCT AKNPRIV_HARDWARE_STATE_KEY |
|
24 { |
|
25 // key press that triggers this state - will be captured by eiksrv |
|
26 WORD keycode; |
|
27 // state id, stored globally, meaning is product specific. |
|
28 WORD state; |
|
29 } |
|
30 |
|
31 STRUCT AKNPRIV_HARDWARE_STATE_KEY_MAP |
|
32 { |
|
33 STRUCT key_state_map[]; // AKNPRIV_HARDWARE_STATE_KEY |
|
34 } |
|
35 |
|
36 STRUCT AKNPRIV_HARDWARE_STATE_SCREEN |
|
37 { |
|
38 // state id that the following screen parameters apply to |
|
39 WORD state; |
|
40 // the screen width - will be the natural device screen width if not specified |
|
41 WORD screen_width = EAknPrivParameterNotSet; |
|
42 // the screen height - will be the natural device screen height if not specified |
|
43 WORD screen_height = EAknPrivParameterNotSet; |
|
44 // the screen rotation - will be the natural device screen height if not specified |
|
45 // see TAknPrivScreenRotation for values |
|
46 WORD screen_rotation = EAknPrivParameterNotSet; |
|
47 // rotation to use for apps that want the opposite orientation, eg portrait vs landscape. |
|
48 // default values will be used if not specified |
|
49 WORD rotation_for_other_orientation = EAknPrivParameterNotSet; |
|
50 } |
|
51 |
|
52 STRUCT AKNPRIV_HARDWARE_STATE_SCREEN_MAP |
|
53 { |
|
54 STRUCT state_screen_map[]; // AKNPRIV_HARDWARE_STATE_SCREEN |
|
55 WORD default_portrait_rotation = EAknPrivScreenRotationNormal; |
|
56 WORD default_landscape_rotation = EAknPrivScreenRotationNormal; |
|
57 } |
|
58 |
|
59 STRUCT AKNPRIV_HARDWARE_SOFTKEY_LOCATION |
|
60 { |
|
61 WORD location; |
|
62 } |
|
63 |
|
64 // --------------------------------------------------------------------------- |
|
65 // Resource strucure for default touch pane. |
|
66 // --------------------------------------------------------------------------- |
|
67 // |
|
68 STRUCT AKNPRIV_TOUCHPANE |
|
69 { |
|
70 // Possible flags are defined in @c TAknPrivTouchPaneResourceFlags |
|
71 // enumeration in aknpriv.hrh. |
|
72 LONG flags = 0; |
|
73 |
|
74 // Default touch pane items. This should be left empty, if product does |
|
75 // not use touch pane. |
|
76 STRUCT items[]; // AKNPRIV_TOUCHPANE_ITEM |
|
77 } |
|
78 |
|
79 // --------------------------------------------------------------------------- |
|
80 // Resource structure for default touch pane items. |
|
81 // --------------------------------------------------------------------------- |
|
82 // |
|
83 STRUCT AKNPRIV_TOUCHPANE_ITEM |
|
84 { |
|
85 BYTE version = 1; // Do not change! |
|
86 |
|
87 // Priority indicates the order in which the components in default |
|
88 // resource are replaced by customized touch pane content. Items with |
|
89 // lower priorities will be replaced before items with higher priorites. |
|
90 // 0 = Mandatory, 1 = Highest priority, ... , 255 = Lowest priority. |
|
91 BYTE priority; |
|
92 |
|
93 // One of the pre-defined element identifiers defined in akntouchpane.hrh |
|
94 BYTE id; |
|
95 |
|
96 // UID for specifying an implementation for touch pane ECom plug-in |
|
97 // interface. When plug-in implementation is used, the id field must be |
|
98 // set to value @c ETouchPaneElementPlugin. |
|
99 LONG plugin = 0; |
|
100 } |