| Classes | Functions | DevRef | Qt API | Qtopia Documentation |

## Qtopia - Distribution Packaging

Packages for Qtopia devices should be distributed in IPKG format.

Packages for Linux/X11 desktop systems (i.e. development systems) should be distributed in RPM format.

Both of these formats are supported by the `mkipks` program which is part of the Qtopia SDK. This program takes a control file and produces either an IPKG file or an RPM file. Sample control files are included in the Qtopia SDK, such as example.control.

For IPKG format, you may also have files with the same name as the control file, but with the .control suffix replaced by one of the following:

Suffix | Notes
--- | ---
.preinst | This script will execute before files are moved into place at installation.

.postinst

This script will execute after files are moved into place at installation. Common uses of this script are:

- `qtopia-addmimetype type/subtype extension` -- add a MIME type for your application.
- `/opt/Qtopia/bin/qcop QPE/TaskBar "reloadInputMethods()"` -- reload input methods if your software is an input method plugin.
- `/opt/Qtopia/bin/qcop QPE/TaskBar "reloadApplets()"` -- reload applets if your software is a taskbar applet.

.prerm | This script will execute before files are removed at de-installation.

.postrm

This script will execute after files are removed at de-installation. Common uses of this script are:

- `/opt/Qtopia/bin/qcop QPE/TaskBar "reloadInputMethods()"` -- reload input methods if your software was an input method plugin.
- `/opt/Qtopia/bin/qcop QPE/TaskBar "reloadApplets()"` -- reload applets if your software was a taskbar applet.