File procedures implement file support.
They cannot be created directly. Instead, you will create an instance of one of the subclasses (such as export or load procedures). This
provides a common interface for file-related functions on these objects.
- public unowned string get_extensions ()
Returns the procedure's extensions as set with [method@FileProcedure.
- public unowned string get_format_name ()
Returns the procedure's format name, as set with [
method@FileProcedure.
- public bool get_handles_remote ()
Returns the procedure's 'handles remote' flags as set with [
method@FileProcedure.
- public unowned string get_magics ()
Returns the procedure's magics as set with [method@FileProcedure.
- public bool get_meta (out string? meta_extensions)
Returns whether this is a meta file
procedure as set with [method@FileProcedure.
- public unowned string get_mime_types ()
Returns the procedure's mime-type as set with [method@FileProcedure.
- public unowned string get_prefixes ()
Returns the procedure's prefixes as set with [method@FileProcedure.
- public int get_priority ()
Returns the procedure's priority as set with [method@FileProcedure.
- public void set_extensions (string extensions)
Registers the given list of extensions as something this procedure can
handle.
- public void set_format_name (string format_name)
Associates a format name with a file handler procedure.
- public void set_handles_remote (bool handles_remote)
Registers a file procedure as capable of handling arbitrary remote
URIs via GIO.
- public void set_magics (string magics)
Registers the list of magic file information this procedure can
handle.
- public void set_meta (bool is_meta, string meta_extensions)
Some [class@Gimp.
- public void set_mime_types (string mime_types)
Associates MIME types with a file handler procedure.
- public void set_prefixes (string prefixes)
It should almost never be necessary to register prefixes with file
procedures, because most sorts of URIs should be handled by GIO.
- public void set_priority (int priority)
Sets the priority of a file handler procedure.