Ufo.PluginManager

g GObject.Object GObject.Object Ufo.PluginManager Ufo.PluginManager GObject.Object->Ufo.PluginManager

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

error_quark ()

class

new ()

get_all_task_names ()

get_plugin (func_name, module_name)

get_task (name)

get_task_from_package (package_name, name)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Ufo.PluginManager(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ufo.PluginManagerClass

Creates #UfoFilter instances by loading corresponding shared objects. The contents of the Ufo.PluginManager structure are private and should only be accessed via the provided API.

classmethod error_quark()
Return type:

int

classmethod new()
Returns:

A new Ufo.PluginManager object.

Return type:

Ufo.PluginManager

Create a plugin manager object to instantiate filter objects.

get_all_task_names()
Returns:

List of strings with filter names

Return type:

[str]

Return a list with potential filter names that match shared objects in all search paths.

get_plugin(func_name, module_name)
Parameters:
  • func_name (str) – Name of the constructor function.

  • module_name (str) – Filename of the shared object.

Raises:

GLib.Error

Returns:

(allow-none): A loaded plugin or None if module cannot be found.

Return type:

GObject.Object

Load a module and return an instance.

get_task(name)
Parameters:

name (str) – Name of the plugin.

Raises:

GLib.Error

Returns:

(allow-none): #UfoFilter or None if module cannot be found

Return type:

Ufo.TaskNode

Load a #UfoFilter module and return an instance. The shared object name must be * constructed as “libfilter`name`.so”.

New in version 0.2.

get_task_from_package(package_name, name)
Parameters:
  • package_name (str) – Name of library package

  • name (str) – Name of the plugin.

Raises:

GLib.Error

Returns:

(allow-none): Ufo.TaskNode or None if module cannot be found

Return type:

Ufo.TaskNode

Load a Ufo.TaskNode module and return an instance. The shared object name must be in package_name subfolder and constructed as “lib`name`.so”.

New in version 0.2.