|
|
Previous Section |
|
Installing Applications and Sounds
This topic explains how to install applications onto the iPAQ. It also briefly explains how to add sounds to the ipaq-beep service. At this time this process is not automated, and involves some basic editing of configuration files.
ipaq-launcher
<IQData>The majority of this information should be straight foreword. The name is the human readable name which the launcher will display next to the icon. The version number, author and description will be used later to automatically generate an about box. The location is the path to the binary of the program to run. The command is the string to run.<Application</IQData>name="Web Browser"</Application>
version="1.0"
author="Unknown"
location="/system/apps/ipaq-web/"
command="ipaq-web"
description="This a sample QNX small-screen browser."
group="Applications"
licon="large_icon.gif"
sicon="small_icon.gif">
Note: At this time, the command attribute may not have command line arguments. The launcher runs the single command.The group is the category of this application. It used to filter other applications out, if many programs are installed. Finally, the icons may be .jpg, .gif or .png files. If these are not provided, the launcher will extract them from the binary, assuming the icons have been defined via. PhAB.Note: At this time, there is no way to signal the launcher that new programs have been installed, slay ipaq-launcher and re-run: 'ipaq-launcher &' via. the serial connection or by telnetting into the device over the network. You can log into the device through telnet using the 'root' account, without a password.
At this time, the easiest way to install these applications is to make the directories and copy the files via QNet. If you have set a hostname on your ipaq such as my_ipaq, it should be available in /net/my_ipaq.
ipaq-beep [-fname,file [,volume] ]
The service takes a list of sound name, sound file pairs with an optional volume setting. Each -f option adds a new sound to the ipaq-beep service. The value for the volume should be a number between 1-100.
Applications request sound to be played by writing a string to /dev/beep. (The service is a QNX Resource Manager, which allows it to take over the /dev/beep namespace.) When an application writes to this path, ipaq-beep responds if it understands the request.
For example, echo -n "click" > /dev/beep will request that a sound named "click" be played.
If you would like to create your own sounds, ipaq-beep uses the .ub format. These sounds have been converted using the open source SoX utility. More information can be found here: http://sox.sourceforge.net/.
Most of the sounds were converted
from the .wav format. For example, sox click.wav
-r 8000 click.ub
Previous Section |
|