Top |
MMModemTime implements GDBusInterface, GInitable, GAsyncInitable and MmGdbusModemTime.
The MMModemTime is an object providing access to the methods, signals and properties of the Time interface.
The Time interface is exposed on modems which support network time retrieval.
const gchar *
mm_modem_time_get_path (MMModemTime *self
);
Gets the DBus path of the MMObject which implements this interface.
gchar *
mm_modem_time_dup_path (MMModemTime *self
);
Gets a copy of the DBus path of the MMObject object which implements this interface.
MMNetworkTimezone *
mm_modem_time_peek_network_timezone (MMModemTime *self
);
Gets the network timezone information.
self
was constructed. Use mm_modem_time_get_network_timezone()
if on another
thread.MMNetworkTimezone *
mm_modem_time_get_network_timezone (MMModemTime *self
);
Gets the network timezone information.
self
are not updated when the values in the
interface change. Instead, the client is expected to call
mm_modem_time_get_network_timezone()
again to get a new MMNetworkTimezone with the
new values. A MMNetworkTimezone that must be freed with g_object_unref()
or NULL
if unknown.
[transfer full]
void mm_modem_time_get_network_time (MMModemTime *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
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 mm_modem_time_get_network_time_finish()
to get the result of the operation.
See mm_modem_time_get_network_time_sync()
for the synchronous, blocking version of this method.
self |
A MMModemTime. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gchar * mm_modem_time_get_network_time_finish (MMModemTime *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_time_get_network_time()
.
self |
A MMModemTime. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gchar * mm_modem_time_get_network_time_sync (MMModemTime *self
,GCancellable *cancellable
,GError **error
);
Synchronously requests the current network time.
The calling thread is blocked until a reply is received. See mm_modem_time_get_network_time()
for the asynchronous version of this method.
self |
A MMModemTime. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
struct MMModemTime;
The MMModemTime structure contains private data and should only be accessed using the provided API.