Ok, here's the solution. It is in fact the same as desribed above, with a new file *_loc.rss added to the project and holding the localizable registration resource.
Code:
#include <appinfo.rh>
RESOURCE LOCALISABLE_APP_INFO r_local_qtmwappwithicon
{
short_caption = "AppIcon";
caption_and_icon =
{
CAPTION_AND_ICON_INFO
{
caption = "App With Icon";
number_of_icons = 1; // each icon must be a bitmap/mask pair
icon_file = "\\resource\\apps\\qtmwappwithicon.mif";
}
};
}
That is then linked to the *_reg.rss as described above.
Code:
#include <appinfo.rh>
#include <QtMWAppWithIcon_loc.rsg>
UID2 KUidAppRegistrationResourceFile
UID3 0xE44F599D
RESOURCE APP_REGISTRATION_INFO
{
app_file="QtMWAppWithIcon";
localisable_resource_file="\\resource\\apps\\QtMWAppWithIcon_loc";
localisable_resource_id = R_LOCAL_QTMWAPPWITHICON;
embeddability=KAppNotEmbeddable;
newfile=KAppDoesNotSupportNewFile;
}
The *.mif file I've used is one built already for the helloworldbasic example, I've just make a copy of it in place (at \epoc32\release\winscw\udeb\z\resource\apps ).
The additions to the MMP file:
Code:
...
SOURCEPATH .
start resource QtMWAppWithIcon_loc.rss
targetpath \resource\apps
lang 01
HEADER
end
START RESOURCE "QtMWAppWithIcon_reg.rss"
...
Finally, the new built files should be added to the package (*.pkg), in my case
Code:
"\S60\devices\S60_5th_Edition_SDK_v0.9\epoc32\data\z\resource\apps\QtMWAppWithIcon.mif" -"!:\resource\apps\QtMWAppWithIcon.mif"
"\S60\devices\S60_5th_Edition_SDK_v0.9\epoc32\data\z\resource\apps\QtMWAppWithIcon_loc.r01" -"!:\resource\apps\QtMWAppWithIcon_loc.r01"
Remember to set all modified files as read only and as you don't really want to prevent to make legitimate changes to them you will have to apply the hacks only when the project is otherwise completed.