ModemManager.ModemTime

g GObject.GInterface GObject.GInterface Gio.AsyncInitable Gio.AsyncInitable GObject.GInterface->Gio.AsyncInitable Gio.DBusInterface Gio.DBusInterface GObject.GInterface->Gio.DBusInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable ModemManager.GdbusModemTime ModemManager.GdbusModemTime GObject.GInterface->ModemManager.GdbusModemTime GObject.Object GObject.Object Gio.DBusProxy Gio.DBusProxy GObject.Object->Gio.DBusProxy Gio.AsyncInitable->Gio.DBusProxy Gio.DBusInterface->Gio.DBusProxy ModemManager.GdbusModemTimeProxy ModemManager.GdbusModemTimeProxy Gio.DBusProxy->ModemManager.GdbusModemTimeProxy Gio.Initable->Gio.DBusProxy ModemManager.GdbusModemTime->ModemManager.GdbusModemTimeProxy ModemManager.ModemTime ModemManager.ModemTime ModemManager.GdbusModemTimeProxy->ModemManager.ModemTime

Subclasses:

None

Methods

Inherited:

ModemManager.GdbusModemTimeProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModemTime (7)

Structs:

GObject.ObjectClass (5)

dup_path ()

get_network_time (cancellable, callback, *user_data)

get_network_time_finish (res)

get_network_time_sync (cancellable)

get_network_timezone ()

get_path ()

peek_network_timezone ()

Virtual Methods

Inherited:

Gio.DBusProxy (2), GObject.Object (7), Gio.AsyncInitable (2), Gio.DBusInterface (3), Gio.Initable (1), ModemManager.GdbusModemTime (2)

Properties

Inherited:

Gio.DBusProxy (9), ModemManager.GdbusModemTime (1)

Signals

Inherited:

Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemTime (2)

Fields

Inherited:

Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemTime (2)

Name

Type

Access

Description

parent

ModemManager.GdbusModemTimeProxy

r

Class Details

class ModemManager.ModemTime(**kwargs)
Bases:

ModemManager.GdbusModemTimeProxy

Abstract:

No

Structure:

ModemManager.ModemTimeClass

The ModemManager.ModemTime structure contains private data and should only be accessed using the provided API.

dup_path()
Returns:

The DBus path of the ModemManager.Object. The returned value should be freed with GLib.free().

Return type:

str

Gets a copy of the DBus path of the ModemManager.Object object which implements this interface.

New in version 1.0.

get_network_time(cancellable, callback, *user_data)
Parameters:

Asynchronously requests the current network time.

When the operation is finished, callback will be invoked in the

thread-default main loop of the thread you are calling this method from. You can then call ModemManager.ModemTime.get_network_time_finish() to get the result of the operation.

See ModemManager.ModemTime.get_network_time_sync() for the synchronous, blocking version of this method.

New in version 1.0.

get_network_time_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.Modem.enable().

Raises:

GLib.Error

Returns:

A string containing the network time, or None if error is set. The returned value should be freed with GLib.free().

Return type:

str

Finishes an operation started with ModemManager.ModemTime.get_network_time().

New in version 1.0.

get_network_time_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

A string containing the network time, or None if error is set. The returned value should be freed with GLib.free().

Return type:

str

Synchronously requests the current network time.

The calling thread is blocked until a reply is received. See ModemManager.ModemTime.get_network_time() for the asynchronous version of this method.

New in version 1.0.

get_network_timezone()
Returns:

A ModemManager.NetworkTimezone that must be freed with GObject.Object.unref() or None if unknown.

Return type:

ModemManager.NetworkTimezone

Gets the network timezone information.

The values reported by self are not updated when the values in the interface change. Instead, the client is expected to call ModemManager.ModemTime.get_network_timezone() again to get a new ModemManager.NetworkTimezone with the new values.

New in version 1.0.

get_path()
Returns:

The DBus path of the ModemManager.Object object.

Return type:

str

Gets the DBus path of the ModemManager.Object which implements this interface.

New in version 1.0.

peek_network_timezone()
Returns:

A ModemManager.NetworkTimezone. Do not free the returned value, it belongs to self.

Return type:

ModemManager.NetworkTimezone

Gets the network timezone information.

The returned value is only valid until the property changes so it is only safe to use this function on the thread where self was constructed. Use ModemManager.ModemTime.get_network_timezone() if on another thread.

New in version 1.0.