Top |
MMModemSimple implements GDBusInterface, GInitable, GAsyncInitable and MmGdbusModemSimple.
The MMModemSimple is an object providing access to the methods, signals and properties of the Simple interface.
The Simple interface is exposed on modems which are not in
MM_MODEM_STATE_FAILED
state.
const gchar *
mm_modem_simple_get_path (MMModemSimple *self
);
Gets the DBus path of the MMObject which implements this interface.
Since: 1.0
gchar *
mm_modem_simple_dup_path (MMModemSimple *self
);
Gets a copy of the DBus path of the MMObject object which implements this interface.
The DBus path of the MMObject. The returned value
should be freed with g_free()
.
[transfer full]
Since: 1.0
void mm_modem_simple_connect (MMModemSimple *self
,MMSimpleConnectProperties *properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests to connect the modem using the given properties
.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_modem_simple_connect_finish()
to get the result of the operation.
See mm_modem_simple_connect_sync()
for the synchronous, blocking version of
this method.
self |
||
properties |
A MMSimpleConnectProperties bundle. |
[transfer none] |
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.0
MMBearer * mm_modem_simple_connect_finish (MMModemSimple *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_simple_connect()
.
self |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
A MMBearer, or FALSE
if error
is set. The
returned value must be freed with g_object_ref()
.
[transfer full]
Since: 1.0
MMBearer * mm_modem_simple_connect_sync (MMModemSimple *self
,MMSimpleConnectProperties *properties
,GCancellable *cancellable
,GError **error
);
Synchronously requests to connect the modem using the given properties
.
The calling thread is blocked until a reply is received. See
mm_modem_simple_connect()
for the asynchronous version of this method.
self |
||
properties |
A MMSimpleConnectProperties bundle. |
[transfer none] |
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
A MMBearer, or FALSE
if error
is set. The
returned value must be freed with g_object_ref()
.
[transfer full]
Since: 1.0
void mm_modem_simple_disconnect (MMModemSimple *self
,const gchar *bearer
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests to disconnect the modem.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_modem_simple_disconnect_finish()
to get the result of the operation.
See mm_modem_simple_disconnect_sync()
for the synchronous, blocking version
of this method.
self |
||
bearer |
Path of the bearer to disconnect, or |
[allow-none] |
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.0
gboolean mm_modem_simple_disconnect_finish (MMModemSimple *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_simple_disconnect()
.
self |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.0
gboolean mm_modem_simple_disconnect_sync (MMModemSimple *self
,const gchar *bearer
,GCancellable *cancellable
,GError **error
);
Synchronously requests to disconnect the modem.
The calling thread is blocked until a reply is received. See
mm_modem_simple_disconnect()
for the asynchronous version of this method.
self |
||
bearer |
Path of the bearer to disconnect, or |
[allow-none] |
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.0
void mm_modem_simple_get_status (MMModemSimple *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests a compilation of the status of the modem.
When the operation is finished, callback
will be invoked in the
of the thread you are calling this method from. You can then call
mm_modem_simple_get_status_finish()
to get the result of the operation.
See mm_modem_simple_get_status_sync()
for the synchronous, blocking version
of this method.
self |
||
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.0
MMSimpleStatus * mm_modem_simple_get_status_finish (MMModemSimple *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_simple_get_status()
.
self |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
A MMSimpleStatus, or FALSE
if error
is set. The
returned value must be freed with g_object_ref()
.
[transfer full]
Since: 1.0
MMSimpleStatus * mm_modem_simple_get_status_sync (MMModemSimple *self
,GCancellable *cancellable
,GError **error
);
Synchronously requests a compilation of the status of the modem.
The calling thread is blocked until a reply is received. See
mm_modem_simple_get_status()
for the asynchronous version of this method.
self |
||
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
A MMSimpleStatus, or FALSE
if error
is set. The
returned value must be freed with g_object_ref()
.
[transfer full]
Since: 1.0
struct MMModemSimple;
The MMModemSimple structure contains private data and should only be accessed using the provided API.