Source files

This section introduces the source files that you can use to create an S60 application.

Source files are divided into following groups:

  • Source code files

  • Resource files

  • Graphics files

  • Registration files

Source files are compiled during the build operation, as follows:

  • Source code file .cpp is compiled into an executable file (.exe).

  • Resource file .rss is compiled into .rsc.

  • Graphics file .svg is compiled into .mif.

  • Registration file _reg.rss is compiled into _reg.rsc.

Source code files

Source code files contain the code used in your application. Source code files include:

  • h – header files contain the class declarations for the classes used in the source files.

  • cpp – cpp source code files containing the classes used in the application implementation.

  • pan – file containing enumerations for panic codes.

    For information on panic codes, see System panic reference.

Resource files

In the S60 platform, resource files are used to define GUI components such as status panes, menu bars, views, and dialogs, among other structures.

The following resource files are typically used in S60 applications:

  • .rls – localisation files contain the strings used in the application UI. The S60 platform naming convention is loc and lNN, where NN is a language code from the S60 locale IDs.

  • .rss – resource files used for GUI components in the application.

  • .hrh – resource header file used to define flag values.

For more information on resource files, see Managing resource files.

Graphics files

Graphic files contain the graphics used in your application. Usually, uou need at least files for the icons used in the grid and list menus. Graphic files might include:

  • bmp – bitmap (pixel) files for graphics used in the application and for the grid map and navigation pane.

  • svg - SVG-tiny (vector) files for graphics used in the application and for the grid map and navigation pane.

    Note: The S60 C++ SDK provides the SVG to SVGT Converter tool for converting SVG to SVG-tiny (SVG-T) files in the SDK. For more information on the tool, see the SDK tools documentation.

For an example of using graphic files, see HelloWorldBasic graphics files.

Registration files

Registration files contain information on registering applications to make them visible in the application menu and to provide other information to the underlying operating system.

  • .xml - backup registration file.

  • _reg.rss – resource file used for registration.