Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Aiftool resource file format .rss


Overview

The resource file used by Aiftool specifies the application UID, captions, capabilities, the number of icons to be incorporated in the final aif file, and the priorities of supported MIME types. The structure of the resource file is as shown below. Each element of the file is described in its own section.

// include file - contains enumerations and resource structure
#include <aiftool.rh>

RESOURCE AIF_DATA
{
// Application UID
app_uid=application_uid;

// Application Captions list (captions in supported languages)
caption_list=
 {
 CAPTION { code=[ELangEnglish]; caption="Caption in English"; }, ...,
 CAPTION { code=[Enumeration_for_selected_language_n]; caption="Caption_in_selected_language_n"; },
 };

// number of icons to be loaded from the .mbm file
[num_icons=0; ]

// Application Capabilities
[embeddability= KAppNotEmbeddable | KAppEmbeddable | KAppEmbeddableOnly;]
[hidden= KAppNotHidden | KAppIsHidden ;]
[newfile= KAppDoesNotSupportNewFile | KAppSupportsNewFile;]

// MIME type priorities
[datatype_list=
 {
 DATATYPE { priority= EDataTypePriorityHigh | EDataTypePriorityNormal | EDataTypePriorityLow | EDataTypePriorityLastResort; type="MIME_type"; },
 DATATYPE { priority=priority_enumeration; type="another_MIME_type"; }
 };]
}

[Top]


Changes since v5

Note the following changes since v5:

[Top]


File details


Include file

The resource file includes a header file aiftool.rh. Aiftool expects the file to be located in \Epoc32\Include\, when it is installed as part of an SDK.

#include <aiftool.rh>

The file specifies:


Application UIDs

The application UID associates the .aif file with its parent application.

app_uid=application_uid;

For C++ SDK developers, the UID should match that specified in the project mmp file.


Caption list

A caption is the line of text, typically the application’s name, which appears below the application icon in the system shell.

Captions are specified in the caption_list section of the resource file. Captions are typically specified for each language supported by the application.

caption_list= { CAPTION { code=[ELangEnglish]; caption="Caption in English"; }, ..., CAPTION { code=[Enumeration_for_selected_language_n]; caption="Caption_in_selected_language_n"; }, };

The enumerators for supported languages, as defined in the included file, are given below. The code=[language_enumeration] definition associates each caption with a particular system language setting.

Supported language enumeration

The following codes are defined in an enumeration in aiftool.rh.

Code

Language

Code

Language

ELangTest

Test

ELangFarsi

Persian

ELangEnglish

British English

ELangCanadianFrench

Canadian French

ELangFrench

French

ELangScotsGaelic

Scottish Gaelic

ELangGerman

German

ELangGeorgian

Georgian

ELangSpanish

Spanish

ELangGreek

Greek

ELangItalian

Italian

ELangCyprusGreek

Cyprus Greek

ELangSwedish

Swedish

ELangGujarati

Gujarati

ELangDanish

Danish

ELangHebrew

Hebrew

ELangNorwegian

Norwegian

ELangHindi

Hindi

ELangFinnish

Finnish

ELangIndonesian

Indonesian

ELangAmerican

American English

ELangIrish

Irish

ELangSwissFrench

Swiss French

ELangSwissItalian

Swiss Italian

ELangSwissGerman

Swiss German

ELangKannada

Kannada

ELangPortuguese

Portuguese

ELangKazakh

Kazakh

ELangTurkish

Turkish

ELangKhmer

Khmer

ELangIcelandic

Icelandic

ELangKorean

Korean

ELangRussian

Russian

ELangLao

ELangLao

ELangHungarian

Hungarian

ELangLatvian

Latvian

ELangDutch

Dutch

ELangLithuanian

Lithuanian

ELangBelgianFlemish

Belgian Flemish

ELangMacedonian

Macedonian

ELangAustralian

Australian English

ELangMalay

Malay

ELangBelgianFrench

Belgian French

ELangMalayalam

Malayalam

ELangAustrian

Austrian German

ELangMarathi

Marathi

ELangNewZealand

New Zealand English

ELangMoldavian

Moldavian

ELangInternationalFrench

International French

ELangMongolian

Mongolian

ELangCzech

Czech

ELangNorwegianNynorsk

Norwegian Nynorsk

ELangSlovak

Slovak

ELangBrazilianPortuguese

Brazilian Portuguese

ELangPolish

Polish

ELangPunjabi

Panjabi

ELangSlovenian

Slovenian

ELangRomanian

Romanian

ELangTaiwanChinese

Taiwan Chinese

ELangSerbian

Serbian

ELangHongKongChinese

Hong Kong Chinese

ELangSinhalese

Sinhalese

ELangPrcChinese

PRC Chinese

ELangSomali

Somali

ELangJapanese

Japanese

ELangInternationalSpanish

International Spanish

ELangThai

Thai

ELangLatinAmericanSpanish

Latin American Spanish

ELangAfrikaans

Afrikaans

ELangSwahili

Swahili

ELangAlbanian

Albanian

ELangFinlandSwedish

Finland-Swedish

ELangAmharic

Amharic

ELangTajik

Tajik

ELangArabic

Arabic

ELangTamil

Tamil

ELangArmenian

Armenian

ELangTelugu

Telugu

ELangAzerbaijani

Azerbaijani

ELangTibetan

Tibetan

ELangBelarussian

Belarussian

ELangTigrinya

Tigrinya

ELangBengali

Bengali

ELangCyprusTurkish

Cyprus Turkish

ELangBulgarian

Bulgarian

ELangTurkmen

Turkmen

ELangBurmese

Burmese

ELangUkrainian

Ukrainian

ELangCatalan

Catalan

ELangUrdu

Urdu

ELangCroatian

Croatian

ELangUzbek

Uzbek

ELangCanadianEnglish

Canadian English

ELangVietnamese

Vietnamese

ELangInternationalEnglish

International English

ELangWelsh

Welsh

ELangSouthAfricanEnglish

South African English

ELangZulu

Zulu

ELangEstonian

Estonian

ELangOther

Other


Number of icons

The num_icons field defines the number of bitmaps to be included in the final aif file. If not specified, the number defaults to zero, and the aif file is displayed with the default icon. The default icon is typically a question mark.

[num_icons=0;]


Embeddability capability

The file can take one of three enumerated Embeddability values, as defined in the topic Application capabilities. If undefined, the Embeddability property defaults to KAppNotEmbeddable.

[embeddability= KAppNotEmbeddable | KAppEmbeddable | KAppEmbeddableOnly;]


Hidden capability

The file can take one of two enumerated hidden states, as defined in the topic Application capabilities. If undefined, the Hidden property defaults to KAppNotHidden.

[hidden= KAppNotHidden | KAppIsHidden;]


New file capability

The file can have one of two enumerated new file creation properties, as defined in the topic Application capabilities. If undefined, the New File property defaults to KAppDoesNotSupportNewFile.

[newfile= KAppDoesNotSupportNewFile | KAppSupportsNewFile];


Data-type list

MIME type priorities are specified in the datatype_list section of the resource file. The priority for each type, e.g. text/html, determines which application is launched to display a particular document. Priorities can take one of four enumerated levels, as described in the topic MIME support.

[datatype_list= { DATATYPE { priority= EDataTypePriorityHigh | EDataTypePriorityNormal | EDataTypePriorityLow | EDataTypePriorityLastResort; type="MIME_type";}, DATATYPE { priority=priority_enumeration; type="another_MIME_type"; } };]

Notes: