3.1.9 Content_handler Type
An instance of Content_handler handles data content by its MIME
type.
class Content_handler( |
[callback]) |
-
Creates a Content_handler instance. A Content_handler handles
data content by its MIME type. The optional
callback is called when the embedded handler application
started with the open method finishes.
Instances of Content_handler type have the following methods:
-
Opens the file filename (Unicode) in its handler
application if one has been registered for the particular MIME type. The
handler application is embedded in the caller's thread. The call to this
function returns immediately. When the handler application finishes, the
callback that was given to the Content_handler
constructor is called.
open_standalone( |
filename) |
-
Opens the file filename (Unicode) in its handler
application if one has been registered for the particular MIME type. The
handler application is started in its own process. The call to this function
returns immediately. Note that callback is not called for
applications started with this method.
Release 2.0.0 final , documentation updated on 10 Feb 2010.
See About this document... for information on suggesting changes.