EDataServer.NetworkMonitor¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), Gio.Initable (2), Gio.NetworkMonitor (7)
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
GObject.Object (7), Gio.Initable (1), Gio.NetworkMonitor (4)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.NetworkMonitor(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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:
Gets the default
EDataServer.NetworkMonitor
. The caller should not unref the returned instance. TheEDataServer.NetworkMonitor
implements theGio.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 withGLib.free
(), when no longer needed.- Return type:
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. TheGLib.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 inEDataServer.NetworkMonitor.set_gio_name
().New in version 3.22.
- set_gio_name(gio_name)¶
- Parameters:
gio_name (
str
orNone
) – a GIO name of aGio.NetworkMonitor
implementation to use, orNone
Set a gio_name of the
Gio.NetworkMonitor
implementation to use, can beNone
. UseEDataServer.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 defaultGio.NetworkMonitor
implementation, as returned by theGio.NetworkMonitor.get_default
(), will be used.New in version 3.22.
Property Details¶
- EDataServer.NetworkMonitor.props.gio_name¶
- Name:
gio-name
- Type:
- Default Value:
- Flags:
The GIO name of the underlying
Gio.NetworkMonitor
to use.