The action invocation API enables applications to invoke desktop
actions on file or buffer arguments. It chooses a suitable action
for the file or buffer based on the Class,
Type, Mode,
and Number of the action arguments.
For example, an Open action might invoke an image viewer for GIF
files, a word processor for complex documents, and a simple text
editor for ordinary ASCII files. Your application need not concern
itself with the details of action selection or invocation.
Use the action invocation API so that your application uses
the same mechanisms as the rest of the desktop. The user can then
experience uniform desktop behavior.
The action functions in the libDtSvc
library provide a way to invoke desktop actions (such as Open and
Print) for files or buffers. They contain parameters that enable
you to modify an action's behavior. The action invocation API consists
of the following functions:
Demo Programs |
 |
You can find the action invocation demos in /usr/dt/examples/dtaction.
Read the README file for detailed
information on the demos.
For more information on actions, see the relevant man pages
and the Programmer's Guide.