Application source files

This section introduces the following file types that can be used to create an S60 application:

Source files

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

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

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

  • pan – file containing enumerations for panic codes.

    For information on panic codes, see System panic reference in the Symbian OS Library.

For a discussion of code files in an example, see "HelloWorldBasic source files"

Graphics source files

Graphic files contain the graphics used in your application. Note that, in most cases, there will be 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 SVT 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 graphic files".

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 source files used for GUI components in the application

  • _reg.rss – resource source file used for registration

  • .rh - resource header files.

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

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

For an example, see "HelloWorldBasic resource files"