Thunarx.ProviderPlugin¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Don’t unload the plugin from memory |
Signals¶
None
Fields¶
None
Class Details¶
- class Thunarx.ProviderPlugin¶
- Bases:
- Structure:
- add_interface(instance_type, interface_type, interface_info)¶
- Parameters:
instance_type (
GObject.GType
) – type to which to add the interface.interface_type (
GObject.GType
) – interface type to add.interface_info (
GObject.InterfaceInfo
) – type information structure.
Registers an additional interface for a type, whose interface lives in the given type self. If the interface was already registered for the type in this self, nothing will be done.
As long as any instances of the type exist, the type self will not be unloaded.
- get_resident()¶
-
Determines whether the application is allowed to unload self from memory when no longer needed and reload it on demand. If
False
is returned, then the application may unload self, else ifTrue
is returned the application will take care that self is never unloaded from memory during the lifetime of the application.
- register_enum(name, const_static_values)¶
- Parameters:
name (
str
) – the name for the type.const_static_values (
GObject.EnumValue
) – an array ofGObject.EnumValue
structs for the possible enumeration values. The array is terminated by a struct with all members being %0.
- Returns:
the new or existing type id.
- Return type:
Looks up or registers an enumeration that is implemented with a particular type self. If a type with name name was previously registered, the
GObject.GType
identifier for the type is returned, otherwise the type is newly registered, and the resultingGObject.GType
identifier returned.As long as any instances of the type exist, the type self will not be unloaded.
- register_flags(name, const_static_values)¶
- Parameters:
name (
str
) – name for the type.const_static_values (
GObject.FlagsValue
) – an array ofGObject.FlagsValue
structs for the possible flags values. The array is terminated by a struct with all members being %0.
- Returns:
the new or existing type id.
- Return type:
Looks up or registers a flags type that is implemented with a particular type self. If a type with name qname was previously registered, the
GObject.GType
identifier for the type is returned, otherwise the type is newly registered, and the resultingGObject.GType
identifier returned.As long as any instances of the type exist, the type self will not be unloaded.
- register_type(type_parent, type_name, type_info, type_flags)¶
- Parameters:
type_parent (
GObject.GType
) – the type for the parent class.type_name (
str
) – name for the type.type_info (
GObject.TypeInfo
) – type information structure.type_flags (
GObject.TypeFlags
) – flags field providing details about the type.
- Returns:
the new or existing type id.
- Return type:
Looks up or registers a type that is implemented with a particular type self. If a type with name type_name was previously registered, the
GObject.GType
identifier for the type is returned, otherwise the type is newly registered, and the resultingGObject.GType
identifier returned.When reregistering a type (typically because a module is unloaded then reloaded, and reinitialized), module and type_parent must be the same as they were previously.
- set_resident(resident)¶
-
This method is used to instruct the application that self must be kept in memory during the lifetime of the application. The default is to allow the application to unload self from the memory when no longer needed. If this method is invoked with a resident value of
True
then the application will never try to unload self.This method has no effect unless called from the %thunar_extension_initialize method of the self.
- do_add_interface(instance_type, interface_type, interface_info) virtual¶
- Parameters:
instance_type (
GObject.GType
) – type to which to add the interface.interface_type (
GObject.GType
) – interface type to add.interface_info (
GObject.InterfaceInfo
) – type information structure.
Registers an additional interface for a type, whose interface lives in the given type plugin. If the interface was already registered for the type in this plugin, nothing will be done.
As long as any instances of the type exist, the type plugin will not be unloaded.
- do_get_resident() virtual¶
-
Determines whether the application is allowed to unload plugin from memory when no longer needed and reload it on demand. If
False
is returned, then the application may unload plugin, else ifTrue
is returned the application will take care that plugin is never unloaded from memory during the lifetime of the application.
- do_register_enum(name, const_static_values) virtual¶
- Parameters:
name (
str
) – the name for the type.const_static_values (
GObject.EnumValue
) – an array ofGObject.EnumValue
structs for the possible enumeration values. The array is terminated by a struct with all members being %0.
- Returns:
the new or existing type id.
- Return type:
Looks up or registers an enumeration that is implemented with a particular type plugin. If a type with name name was previously registered, the
GObject.GType
identifier for the type is returned, otherwise the type is newly registered, and the resultingGObject.GType
identifier returned.As long as any instances of the type exist, the type plugin will not be unloaded.
- do_register_flags(name, const_static_values) virtual¶
- Parameters:
name (
str
) – name for the type.const_static_values (
GObject.FlagsValue
) – an array ofGObject.FlagsValue
structs for the possible flags values. The array is terminated by a struct with all members being %0.
- Returns:
the new or existing type id.
- Return type:
Looks up or registers a flags type that is implemented with a particular type plugin. If a type with name qname was previously registered, the
GObject.GType
identifier for the type is returned, otherwise the type is newly registered, and the resultingGObject.GType
identifier returned.As long as any instances of the type exist, the type plugin will not be unloaded.
- do_register_type(type_parent, type_name, type_info, type_flags) virtual¶
- Parameters:
type_parent (
GObject.GType
) – the type for the parent class.type_name (
str
) – name for the type.type_info (
GObject.TypeInfo
) – type information structure.type_flags (
GObject.TypeFlags
) – flags field providing details about the type.
- Returns:
the new or existing type id.
- Return type:
Looks up or registers a type that is implemented with a particular type plugin. If a type with name type_name was previously registered, the
GObject.GType
identifier for the type is returned, otherwise the type is newly registered, and the resultingGObject.GType
identifier returned.When reregistering a type (typically because a module is unloaded then reloaded, and reinitialized), module and type_parent must be the same as they were previously.
- do_set_resident(resident) virtual¶
-
This method is used to instruct the application that plugin must be kept in memory during the lifetime of the application. The default is to allow the application to unload plugin from the memory when no longer needed. If this method is invoked with a resident value of
True
then the application will never try to unload plugin.This method has no effect unless called from the %thunar_extension_initialize method of the plugin.
Property Details¶
- Thunarx.ProviderPlugin.props.resident¶
-
Tells whether a plugin must reside in memory once loaded for the first time. See
Thunarx.ProviderPlugin.get_resident
() andThunarx.ProviderPlugin.set_resident
() for more details.