eikappinfo Resource
The final part of the header is the definition of the EIK_APP_INFO resource. This is the standard resource that the application user interface will use. Not all of the fields are required; in fact there are only two main fields in the structure that are commonly used: menubar and CBA.
• Menubar defines the menu structure to use; it is handled by Han-dleCommandL() in the AppUi. We take a closer look at the menu structure in the next section.
• CBA is an abbreviation for Control Button Array, in other words, the name for the left and right softkey buttons. Predefined softkey names are stored in avkon.hrh, but there is a resource to define custom softkeys. Again, we will look at this later.
• Hotkeys are basically keyboard shortcuts. Key combinations can be defined to invoke particular commands. They are not widely used in S60.
• Toolbar has the same functionality as CBA. It was implemented in S60 1st Edition and quickly removed in S60 2nd Edition.
• Toolband is the horizontal tool bar at the top of the screen. It is currently not used in S60.
• Status_pane provides information on the current phone status, such as signal strength and battery level. Its default value is 0, which creates a default status pane.
For example:
RESOURCE EIK_APP_INFO {
hotkeys = r_cookbook_hotkeys; menubar = r_cookbook_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT; }
Average user rating: 5 stars out of 1 votes
Post a comment