EDataServer.Module

g EDataServer.Module EDataServer.Module GObject.GInterface GObject.GInterface GObject.TypePlugin GObject.TypePlugin GObject.GInterface->GObject.TypePlugin GObject.Object GObject.Object GObject.TypeModule GObject.TypeModule GObject.Object->GObject.TypeModule GObject.TypeModule->EDataServer.Module GObject.TypePlugin->GObject.TypeModule

Subclasses:

None

Methods

Inherited:

GObject.TypeModule (7), GObject.Object (37), GObject.TypePlugin (4)

Structs:

GObject.ObjectClass (5)

class

load_all_in_directory (dirname)

class

load_all_in_directory_and_prefixes (dirname, dirprefix)

class

load_file (filename)

class

new (filename)

get_filename ()

Virtual Methods

Inherited:

GObject.TypeModule (2), GObject.Object (7)

Properties

Name

Type

Flags

Short Description

filename

str

r/w/co

The filename of the module

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.TypeModule

r

Class Details

class EDataServer.Module(**kwargs)
Bases:

GObject.TypeModule

Abstract:

No

Structure:

EDataServer.ModuleClass

Contains only private data that should be read and manipulated using the functions below.

New in version 3.4.

classmethod load_all_in_directory(dirname)
Parameters:

dirname (str) – pathname for a directory containing modules to load

Returns:

a list of EDataServer.Modules loaded from dirname

Return type:

[EDataServer.Module]

Loads all the modules in the specified directory into memory. If you want to unload them (enabling on-demand loading) you must call GObject.TypeModule.unuse() on all the modules. Free the returned list with g_list_free().

New in version 3.4.

classmethod load_all_in_directory_and_prefixes(dirname, dirprefix)
Parameters:
  • dirname (str) – pathname for a directory containing modules to load

  • dirprefix (str or None) – prefix of dirname, which can be replaced by custom prefixes, or None

Returns:

a list of EDataServer.Modules loaded from dirname and any extra prefix directory.

Return type:

[EDataServer.Module]

Loads all the modules in the specified directory into memory and the other custom prefixes returned by EDataServer.util_get_directory_variants(). If you want to unload them (enabling on-demand loading) you must call GObject.TypeModule.unuse() on all the modules. Free the returned list with g_list_free().

When dirprefix is None, or not a prefix of dirname, behaves the same as EDataServer.Module.load_all_in_directory().

New in version 3.40.

classmethod load_file(filename)
Parameters:

filename (str) – filename of the module to load

Returns:

an EDataServer.Module loaded from filename

Return type:

EDataServer.Module

Load the module from the specified filename into memory. If you want to unload it (enabling on-demand loading) you must call GObject.TypeModule.unuse() on the module.

New in version 3.16.

classmethod new(filename)
Parameters:

filename (str) – filename of the shared library module

Returns:

a new EDataServer.Module for filename

Return type:

EDataServer.Module

Creates a new EDataServer.Module that will load the specific shared library when in use.

New in version 3.4.

get_filename()
Returns:

the filename for self

Return type:

str

Returns the filename of the shared library for self. The string is owned by self and should not be modified or freed.

New in version 3.4.

Property Details

EDataServer.Module.props.filename
Name:

filename

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The filename of the module.