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:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
Virtual Methods¶
Properties¶
- Inherited:
 
Signals¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class ModemManager.ModemTime(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
The
ModemManager.ModemTimestructure 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 withGLib.free().- Return type:
 
Gets a copy of the DBus path of the
ModemManager.Objectobject which implements this interface.New in version 1.0.
- get_network_time(cancellable, callback, *user_data)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously requests the current network time.
When the operation is finished, callback will be invoked in the
thread-default main loopof the thread you are calling this method from. You can then callModemManager.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) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.Modem.enable().- Raises:
 - Returns:
 A string containing the network time, or
Noneif error is set. The returned value should be freed withGLib.free().- Return type:
 
Finishes an operation started with
ModemManager.ModemTime.get_network_time().New in version 1.0.
- get_network_time_sync(cancellable)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.- Raises:
 - Returns:
 A string containing the network time, or
Noneif error is set. The returned value should be freed withGLib.free().- Return type:
 
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.NetworkTimezonethat must be freed withGObject.Object.unref() orNoneif unknown.- Return type:
 
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 newModemManager.NetworkTimezonewith the new values.New in version 1.0.
- get_path()¶
 - Returns:
 The DBus path of the
ModemManager.Objectobject.- Return type:
 
Gets the DBus path of the
ModemManager.Objectwhich 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:
 
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.