Gio.IOExtensionPoint¶
Fields¶
None
Methods¶
| class | implement(extension_point_name, type, extension_name, priority) | 
| class | lookup(name) | 
| class | register(name) | 
| get_extension_by_name(name) | |
| get_extensions() | |
| get_required_type() | |
| set_required_type(type) | 
Details¶
- 
class Gio.IOExtensionPoint¶
- Gio.IOExtensionPointis an opaque data structure and can only be accessed using the following functions.- 
classmethod implement(extension_point_name, type, extension_name, priority)[source]¶
- Parameters: - extension_point_name (str) – the name of the extension point
- type (GObject.GType) – theGObject.GTypeto register as extension
- extension_name (str) – the name for the extension
- priority (int) – the priority for the extension
 - Returns: - a - Gio.IOExtensionobject for- GObject.GType- Return type: - Registers type as extension for the extension point with name extension_point_name. - If type has already been registered as an extension for this extension point, the existing - Gio.IOExtensionobject is returned.
- extension_point_name (
 - 
classmethod lookup(name)[source]¶
- Parameters: - name ( - str) – the name of the extension point- Returns: - the - Gio.IOExtensionPoint, or- Noneif there is no registered extension point with the given name.- Return type: - Gio.IOExtensionPoint- Looks up an existing extension point. 
 - 
classmethod register(name)[source]¶
- Parameters: - name ( - str) – The name of the extension point- Returns: - the new - Gio.IOExtensionPoint. This object is owned by GIO and should not be freed.- Return type: - Gio.IOExtensionPoint- Registers an extension point. 
 - 
get_extension_by_name(name)[source]¶
- Parameters: - name ( - str) – the name of the extension to get- Returns: - the - Gio.IOExtensionfor self that has the given name, or- Noneif there is no extension with that name- Return type: - Gio.IOExtension- Finds a - Gio.IOExtensionfor an extension point by name.
 - 
get_extensions()[source]¶
- Returns: - a - GLib.Listof- Gio.IOExtensions. The list is owned by GIO and should not be modified.- Return type: - [ - Gio.IOExtension]- Gets a list of all extensions that implement this extension point. The list is sorted by priority, beginning with the highest priority. 
 - 
get_required_type()[source]¶
- Returns: - the - GObject.GTypethat all implementations must have, or- GObject.TYPE_INVALIDif the extension point has no required type- Return type: - GObject.GType- Gets the required type for self. 
 - 
set_required_type(type)[source]¶
- Parameters: - type ( - GObject.GType) – the- GObject.GTypeto require- Sets the required type for self to type. All implementations must henceforth have this type. 
 
- 
classmethod