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) | 
|---|
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.NetworkMonitorinstance.- Return type: - Gio.NetworkMonitor- Gets the default - EDataServer.NetworkMonitor. The caller should not unref the returned instance. The- EDataServer.NetworkMonitorimplements the- Gio.NetworkMonitoriterface.- New in version 3.22. 
 - 
dup_gio_name()¶
- Returns: - A newly allocated string, a GIO name of the underlying - Gio.NetworkMonitorwhich 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.SListshould 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.NetworkMonitorimplementations. The strings can be used in- EDataServer.NetworkMonitor.set_gio_name().- New in version 3.22. 
 - 
set_gio_name(gio_name)¶
- Parameters: - gio_name ( - stror- None) – a GIO name of a- Gio.NetworkMonitorimplementation to use, or- None- Set a gio_name of the - Gio.NetworkMonitorimplementation 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.NetworkMonitorimplementation, as returned by the- Gio.NetworkMonitor.get_default(), will be used.- New in version 3.22. 
 
- 
classmethod 
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.NetworkMonitorto use.