EDataServer.NetworkMonitor

g EDataServer.NetworkMonitor EDataServer.NetworkMonitor GObject.GInterface GObject.GInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable Gio.NetworkMonitor Gio.NetworkMonitor GObject.GInterface->Gio.NetworkMonitor GObject.Object GObject.Object GObject.Object->EDataServer.NetworkMonitor Gio.Initable->EDataServer.NetworkMonitor Gio.NetworkMonitor->EDataServer.NetworkMonitor

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.Initable (2), Gio.NetworkMonitor (7)

Structs:

GObject.ObjectClass (5)

class

get_default ()

dup_gio_name ()

list_gio_names ()

set_gio_name (gio_name)

Virtual Methods

Inherited:

GObject.Object (7), Gio.Initable (1), Gio.NetworkMonitor (4)

Properties

Inherited:

Gio.NetworkMonitor (3)

Name

Type

Flags

Short Description

gio-name

str

r/w/en

Signals

Inherited:

GObject.Object (1), Gio.NetworkMonitor (1)

Fields

Inherited:

GObject.Object (1), Gio.NetworkMonitor (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class EDataServer.NetworkMonitor(**kwargs)
Bases:

GObject.Object, Gio.Initable, Gio.NetworkMonitor

Abstract:

No

Structure:

EDataServer.NetworkMonitorClass

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

New in version 3.22.

classmethod get_default()
Returns:

The default EDataServer.NetworkMonitor instance.

Return type:

Gio.NetworkMonitor

Gets the default EDataServer.NetworkMonitor. The caller should not unref the returned instance. The EDataServer.NetworkMonitor implements the Gio.NetworkMonitor iterface.

New in version 3.22.

dup_gio_name()
Returns:

A newly allocated string, a GIO name of the underlying Gio.NetworkMonitor which is set to be used. The returned string should be freed with GLib.free(), when no longer needed.

Return type:

str

Get currently set GIO name for the network availability checks. See EDataServer.NetworkMonitor.set_gio_name() for more details.

New in version 3.22.

list_gio_names()
Returns:

A newly allocated GLib.SList, with newly allocated strings, the GIO names. The GLib.SList should be freed with g_slist_free_full (gio_names, GLib.free); when no longer needed.

Return type:

[str]

Get a list of available GIO names for the Gio.NetworkMonitor implementations. The strings can be used in EDataServer.NetworkMonitor.set_gio_name().

New in version 3.22.

set_gio_name(gio_name)
Parameters:

gio_name (str or None) – a GIO name of a Gio.NetworkMonitor implementation to use, or None

Set a gio_name of the Gio.NetworkMonitor implementation to use, can be None. Use EDataServer.NetworkMonitor.list_gio_names() for a list of available implementations. A special value, EDataServer.NETWORK_MONITOR_ALWAYS_ONLINE_NAME, can be used to report the network as always reachable. When an unknown GIO name is used the default Gio.NetworkMonitor implementation, as returned by the Gio.NetworkMonitor.get_default(), will be used.

New in version 3.22.

Property Details

EDataServer.NetworkMonitor.props.gio_name
Name:

gio-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The GIO name of the underlying Gio.NetworkMonitor to use.